Skip to main content
POST
Create a new webhook for messages

Authorizations

Authorization
string
header
required

Body

application/json
events
enum<string>[]
required
Available options:
message.received,
message.delivered
url
string<uri>
required

The endpoint that receives events from the webhook.

Example:

"https://example.com"

label
string

Webhook's label

Example:

"my webhook label"

resourceIds

The unique identifiers of the phone numbers associated with the webhook.

Pattern: ^PN(.*)$
Example:
status
enum<string>
default:enabled

The status of the webhook.

Available options:
enabled,
disabled
Example:

"enabled"

userId
string

The unique identifier of the user that creates the webhook. If not provided, default to workspace owner.

Pattern: ^US(.*)$
Example:

"US123abc"

Response

Created

data
object
required