POST
/
v1
/
webhooks
/
messages

Authorizations

Authorization
string
headerrequired

Body

application/json
events
enum<string>[]
required

An event associated with the webhook.

Available options:
message.received,
message.delivered
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
url
string
required

The endpoint that receives events from the webhook.

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