Skip to content

1161 - Webhook Config

Outgoing webhook endpoint configuration. This is an example of a MAML document.

maml
{
  name: "bowling-hooks"
  secret: "WNRAgPHtgDekP8736z2hQNWdxogw3FyU"
  endpoints: [
    {
      url: "https://cheerful-precedent.net/webhook"
      events: [
        "create"
        "update"
        "delete"
      ]
      active: true
    }

    {
      url: "https://upset-marimba.net/callback"
      events: [
        "payment.success"
        "payment.failed"
      ]
      active: false
    }
  ]

  retry: {
    max_attempts: 9
    backoff: "linear"
    interval: 46 # seconds
  }
  timeout: 29 # seconds
}

See Also