Webhook with delivyr_ignore

Guide on how to abort unwanted webhook requests

If you're using a 3rd party integration and don't want to report back unrelated events (such as OTP delivery receipts or Campaign CSV metrics), you can include delivyr_ignore in the payload.

When set to true, the request will be aborted and return HTTP status 601.

Basic Object Usage:

In this example, if request_id NOT defined, or $not() resolves to true

{
  "id": id,
  "rejection_code": rejection_code,
  "request_id": request_id,
  "delivyr_ignore": $not($exists(request_id)) or $not(request_id)
}

Array Usage:

If an array is detected, ONLY the first object will be inspected for delivyr_ignore

[
  {
    "id": id,
    "rejection_code": rejection_code,
    "request_id": request_id,
    "delivyr_ignore": true
  }
]

Important note: Delivyr doesn't group events in the webhooks. 1 event = 1 webhook trigger.


📘

JSONata Playground

Use the following tool to play around and determine the logic you want to deploy:

https://try.jsonata.org

📘

JSONata Boolean Functions

https://docs.jsonata.org/boolean-functions


Did this page help you?