Skip to content

1271 - Webhook Config

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

maml
{
  name: "relative-hooks"
  secret: "zDfEg4nciiZMkqaNIQVB3oIaqLJJA5HE"
  endpoints: [
    {
      url: "https://appropriate-morbidity.org//webhook"
      events: [
        "create"
        "update"
        "delete"
      ]
      active: true
    }

    {
      url: "https://athletic-plastic.biz/callback"
      events: [
        "payment.success"
        "payment.failed"
      ]
      active: true
    }
  ]

  retry: {
    max_attempts: 5
    backoff: "linear"
    interval: 7 # seconds
  }
  timeout: 17 # seconds
}

See Also