cURL
Webhooks
Create Webhook
Create a new webhook
POST
cURL
Creates a new webhook subscription. Webhooks allow you to receive real-time HTTP POST notifications when specific events occur in your account.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | A descriptive name for the webhook |
url | string | Yes | The URL to receive webhook POST requests (must be a valid URL) |
events | string[] | Yes | Array of event types to subscribe to |
dispositions | number[] | No | Filter CALL_LOGGED events by disposition IDs. If provided, only calls with matching dispositions will trigger the webhook. |
Available Events
| Event | Description |
|---|---|
CALL_LOGGED | Triggered when a user logs a call, capturing relevant call details |
CONTACT_SNOOZED | Triggered when a contact is snoozed, capturing the contact and snooze details |
Example Request
Response (201)
Returns the created webhook object.Authorizations
Body
application/json
Response
201 - application/json
Webhook created successfully
The response is of type object.