POST
/
v1
/
webhooks
/
messages

Body

application/json
events
enum<string>[]
required

An event associated with the webhook.

Available options:
message.received,
message.delivered
url
string
required

The 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: enabled

The 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
required