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
- 200
- 400
- 401
- 500
The webhook was created or updated successfully
Bad request error response
Request was not authenticated response
Internal server error