Skip to content

868 - Webhook Config

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

maml
{
  name: "pendant-hooks"
  secret: "s5NdLzrStLnSeAfLIBsOYZcwZKJypEFb"
  endpoints: [
    {
      url: "https://spherical-scarification.com//webhook"
      events: [
        "create"
        "update"
        "delete"
      ]
      active: true
    }

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

  retry: {
    max_attempts: 9
    backoff: "linear"
    interval: 53 # seconds
  }
  timeout: 14 # seconds
}

See Also