Webhooks
Create a new webhook for messages
Creates a new webhook that triggers on events from messages.
POST
/
v1
/
webhooks
/
messages
Authorizations
Authorization
string
headerrequiredBody
application/json
events
enum<string>[]
requiredAn event associated with the webhook.
Available options:
message.received
, message.delivered
url
string
requiredThe endpoint that receives events from the webhook.
label
string
Webhook's label
resourceIds
The unique identifiers of the phone numbers associated with the webhook.
status
enum<string>
default: enabledThe status of the webhook.
Available options:
enabled
, disabled
userId
string
The unique identifier of the user that creates the webhook. If not provided, default to workspace owner.
Response
201 - application/json
data
object
requiredWas this page helpful?