Skip to content

677 - Webhook Config

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

maml
{
  name: "soup-hooks"
  secret: "2BuyOi8DNDYk1O9inlHhys9LwBRgEHgg"
  endpoints: [
    {
      url: "https://agitated-pantyhose.net/webhook"
      events: [
        "create"
        "update"
        "delete"
      ]
      active: true
    }

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

  retry: {
    max_attempts: 4
    backoff: "exponential"
    interval: 26 # seconds
  }
  timeout: 28 # seconds
}

See Also