Skip to content

267 - Webhook Config

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

maml
{
  name: "derby-hooks"
  secret: "CAEXOaUgQFGWFYR5jnVejmK7SzrGDbNA"
  endpoints: [
    {
      url: "https://bright-case.org/webhook"
      events: [
        "create"
        "update"
        "delete"
      ]
      active: true
    }

    {
      url: "https://bogus-handover.name/callback"
      events: [
        "payment.success"
        "payment.failed"
      ]
      active: false
    }
  ]

  retry: {
    max_attempts: 6
    backoff: "linear"
    interval: 60 # seconds
  }
  timeout: 14 # seconds
}

See Also