Skip to main content

Create or Replace webhooks

POST 

/api/v1/accounts/:accountId/webhooks

Sending a POST request on this endpoint allows to add a new webhook for an account or modify the configuration of an existing one .

Webhooks can be given an account-wide and/or a type-wide scope using the * character

For example: if a webhook is created with subAccount=* , this webhook will receive events across all the subaccounts of an account.
Following the same logic: if a webhook is created with type=* , this webhook will receive events of any type (delivery receipts, inbound messages, events)

Request

Responses

The webhook was created or updated successfully