Skip to main content
POST
Create webhook

Parameters

string
required
The ID of the campaign for the webhook.

Body

string
The name for the webhook.
string
required
The URL for the webhook.
string[]
required
The webhook events that you want to receive. Options aremessage.incoming, message.status, or recipient.optout (read more).
string[]
Array of phone numbers to receive events for in . If none are provided, webhook will default to all numbers assigned to the campaign.

Response

boolean
Whether the webhook was created successfully.
object
The details of the new webhook.