Skip to content

2961 - Webhook Config

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

maml
{
  name: "editor-hooks"
  secret: "hdsy1uy384nBgZdxB0v68Y58QsJc6Rcq"
  endpoints: [
    {
      url: "https://fantastic-stay.com//webhook"
      events: [
        "create"
        "update"
        "delete"
      ]
      active: true
    }

    {
      url: "https://fair-vicinity.info/callback"
      events: [
        "payment.success"
        "payment.failed"
      ]
      active: false
    }
  ]

  retry: {
    max_attempts: 3
    backoff: "linear"
    interval: 5 # seconds
  }
  timeout: 19 # seconds
}

See Also