Skip to content

073 - Webhook Config

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

maml
{
  name: "going-hooks"
  secret: "KXUWq2K9THZPVASyb0iTNTROgc1gkL1A"
  endpoints: [
    {
      url: "https://mundane-cantaloupe.net/webhook"
      events: [
        "create"
        "update"
        "delete"
      ]
      active: true
    }

    {
      url: "https://well-lit-reach.biz//callback"
      events: [
        "payment.success"
        "payment.failed"
      ]
      active: true
    }
  ]

  retry: {
    max_attempts: 10
    backoff: "linear"
    interval: 27 # seconds
  }
  timeout: 30 # seconds
}

See Also