Webhook events
The events a webhook subscription can deliver, with the body and headers of each delivery.
campaign.startedCampaign startedcampaign.pausedCampaign pausedcampaign.completedCampaign completedcall.completedCampaign call completedcall.failedCampaign call failedcontact.completedCampaign contact completedcontact.failedCampaign contact failedcall.inbound.completedInbound call completedappointment.bookedAppointment bookedappointment.cancelledAppointment cancelledappointment.rescheduledAppointment rescheduledwebhook.testTest event
campaign.started
Campaign started
Sent when a campaign starts running.
Headers
| Name | In | Type | Description |
|---|---|---|---|
X-Webhook-Signature | header | string required | Lowercase hex HMAC-SHA256 of pattern |
X-Webhook-Timestamp | header | integer required | Unix time in seconds when the request was signed. It is part of the signed string. |
Delivery body application/json required
| Field | Type | Description |
|---|---|---|
event | string required | Always |
timestamp | string (date-time) required | ISO 8601 time the payload was built. This is not the value that is signed; see |
data | object required | |
data.campaign_id | integer required | |
data.campaign_name | string | null required | |
data.status | string required | Status after the change: One of: |
data.agent_id | integer | string | null required | Agent assigned to the campaign, or |
data.total_contacts | integer required |
Your response
2XX Return any 2xx status to acknowledge the delivery. Any other status, a timeout, or a connection error is recorded as a failed delivery. It is not retried.
campaign.paused
Campaign paused
Sent when a campaign is paused. data has one of two shapes. A pause made through the platform carries the campaign fields with status paused. When the platform pauses a campaign itself after a call, data carries campaign_id, reason (llm_failure_cliff), and triggering_call_id instead.
Headers
| Name | In | Type | Description |
|---|---|---|---|
X-Webhook-Signature | header | string required | Lowercase hex HMAC-SHA256 of pattern |
X-Webhook-Timestamp | header | integer required | Unix time in seconds when the request was signed. It is part of the signed string. |
Delivery body application/json required
| Field | Type | Description |
|---|---|---|
event | string required | Always |
timestamp | string (date-time) required | ISO 8601 time the payload was built. This is not the value that is signed; see |
data | object required | |
data.campaign_id | integer | |
data.campaign_name | string | null | |
data.status | string | Status after the change: One of: |
data.agent_id | integer | string | null | Agent assigned to the campaign, or |
data.total_contacts | integer | |
data.reason | string | Always |
data.triggering_call_id | string | Call control id of the call that triggered the pause. |
Your response
2XX Return any 2xx status to acknowledge the delivery. Any other status, a timeout, or a connection error is recorded as a failed delivery. It is not retried.
campaign.completed
Campaign completed
Sent when a campaign is marked completed.
Headers
| Name | In | Type | Description |
|---|---|---|---|
X-Webhook-Signature | header | string required | Lowercase hex HMAC-SHA256 of pattern |
X-Webhook-Timestamp | header | integer required | Unix time in seconds when the request was signed. It is part of the signed string. |
Delivery body application/json required
| Field | Type | Description |
|---|---|---|
event | string required | Always |
timestamp | string (date-time) required | ISO 8601 time the payload was built. This is not the value that is signed; see |
data | object required | |
data.campaign_id | integer required | |
data.campaign_name | string | null required | |
data.status | string required | Status after the change: One of: |
data.agent_id | integer | string | null required | Agent assigned to the campaign, or |
data.total_contacts | integer required |
Your response
2XX Return any 2xx status to acknowledge the delivery. Any other status, a timeout, or a connection error is recorded as a failed delivery. It is not retried.
call.completed
Campaign call completed
Sent after a campaign call ends with call status completed or voicemail.
Headers
| Name | In | Type | Description |
|---|---|---|---|
X-Webhook-Signature | header | string required | Lowercase hex HMAC-SHA256 of pattern |
X-Webhook-Timestamp | header | integer required | Unix time in seconds when the request was signed. It is part of the signed string. |
Delivery body application/json required
| Field | Type | Description |
|---|---|---|
event | string required | Always |
timestamp | string (date-time) required | ISO 8601 time the payload was built. This is not the value that is signed; see |
data | object required | |
data.campaign_id | integer required | |
data.contact_id | integer required | |
data.disposition | string required | |
data.outcome | string required | Call outcome. Falls back to |
data.duration_seconds | integer required | |
data.call_id | string | Call identifier. Omitted, with |
data.recorded | boolean | Whether a recording exists or is expected for the call. Omitted when |
data.recording_url | string | null | Absolute URL of the recording fetch endpoint, or |
Your response
2XX Return any 2xx status to acknowledge the delivery. Any other status, a timeout, or a connection error is recorded as a failed delivery. It is not retried.
call.failed
Campaign call failed
Sent after a campaign call ends with any call status other than completed or voicemail.
Headers
| Name | In | Type | Description |
|---|---|---|---|
X-Webhook-Signature | header | string required | Lowercase hex HMAC-SHA256 of pattern |
X-Webhook-Timestamp | header | integer required | Unix time in seconds when the request was signed. It is part of the signed string. |
Delivery body application/json required
| Field | Type | Description |
|---|---|---|
event | string required | Always |
timestamp | string (date-time) required | ISO 8601 time the payload was built. This is not the value that is signed; see |
data | object required | |
data.campaign_id | integer required | |
data.contact_id | integer required | |
data.disposition | string required | |
data.outcome | string required | Call outcome. Falls back to |
data.duration_seconds | integer required | |
data.call_id | string | Call identifier. Omitted, with |
data.recorded | boolean | Whether a recording exists or is expected for the call. Omitted when |
data.recording_url | string | null | Absolute URL of the recording fetch endpoint, or |
Your response
2XX Return any 2xx status to acknowledge the delivery. Any other status, a timeout, or a connection error is recorded as a failed delivery. It is not retried.
contact.completed
Campaign contact completed
Sent after a campaign call when the contact’s status becomes completed. It follows the call.completed or call.failed event for the same call.
Headers
| Name | In | Type | Description |
|---|---|---|---|
X-Webhook-Signature | header | string required | Lowercase hex HMAC-SHA256 of pattern |
X-Webhook-Timestamp | header | integer required | Unix time in seconds when the request was signed. It is part of the signed string. |
Delivery body application/json required
| Field | Type | Description |
|---|---|---|
event | string required | Always |
timestamp | string (date-time) required | ISO 8601 time the payload was built. This is not the value that is signed; see |
data | object required | |
data.campaign_id | integer required | |
data.contact_id | integer required | |
data.outcome | string required | |
data.duration_seconds | integer required |
Your response
2XX Return any 2xx status to acknowledge the delivery. Any other status, a timeout, or a connection error is recorded as a failed delivery. It is not retried.
contact.failed
Campaign contact failed
Sent after a campaign call when the contact’s status becomes failed. It follows the call.completed or call.failed event for the same call.
Headers
| Name | In | Type | Description |
|---|---|---|---|
X-Webhook-Signature | header | string required | Lowercase hex HMAC-SHA256 of pattern |
X-Webhook-Timestamp | header | integer required | Unix time in seconds when the request was signed. It is part of the signed string. |
Delivery body application/json required
| Field | Type | Description |
|---|---|---|
event | string required | Always |
timestamp | string (date-time) required | ISO 8601 time the payload was built. This is not the value that is signed; see |
data | object required | |
data.campaign_id | integer required | |
data.contact_id | integer required | |
data.outcome | string required | |
data.disposition | string required |
Your response
2XX Return any 2xx status to acknowledge the delivery. Any other status, a timeout, or a connection error is recorded as a failed delivery. It is not retried.
call.inbound.completed
Inbound call completed
Sent after an inbound call has ended and its post-call processing has run. It is not sent for outbound calls.
Headers
| Name | In | Type | Description |
|---|---|---|---|
X-Webhook-Signature | header | string required | Lowercase hex HMAC-SHA256 of pattern |
X-Webhook-Timestamp | header | integer required | Unix time in seconds when the request was signed. It is part of the signed string. |
Delivery body application/json required
| Field | Type | Description |
|---|---|---|
event | string required | Always |
timestamp | string (date-time) required | ISO 8601 time the payload was built. This is not the value that is signed; see |
data | object required | |
data.call_id | any required | Call identifier. |
data.agent_id | any required | Agent that handled the call. |
data.direction | string required | Always |
data.caller_number | string | null required | Number the call came from. |
data.caller_name | string | null required | Caller ID name, when the carrier supplied one. |
data.called_number | string | null required | Number that was called. |
data.duration_seconds | integer required | |
data.talk_duration_seconds | integer required | |
data.hangup_cause | string | null required | Hangup cause recorded for the call. |
data.hangup_source | string | null required | Which side ended the call, as recorded for the call. |
data.transcript | any required | Call transcript, or |
data.extracted_data | any required | Data extracted from the call, or |
data.recording_url | string | null required | Storage location of the recording, in the form |
Your response
2XX Return any 2xx status to acknowledge the delivery. Any other status, a timeout, or a connection error is recorded as a failed delivery. It is not retried.
appointment.booked
Appointment booked
Sent on a confirmed booking or an approved pending request.
Headers
| Name | In | Type | Description |
|---|---|---|---|
X-Webhook-Signature | header | string required | Lowercase hex HMAC-SHA256 of pattern |
X-Webhook-Timestamp | header | integer required | Unix time in seconds when the request was signed. It is part of the signed string. |
Delivery body application/json required
| Field | Type | Description |
|---|---|---|
event | string required | Always |
timestamp | string (date-time) required | ISO 8601 time the payload was built. This is not the value that is signed; see |
data | object required | |
data.appointment_id | integer | string required | |
data.start | any required | Appointment start. |
data.end | any required | Appointment end. |
data.timezone | any required | Timezone of the appointment. |
data.source | string required | Where the booking came from, as stored on the appointment, for example |
Your response
2XX Return any 2xx status to acknowledge the delivery. Any other status, a timeout, or a connection error is recorded as a failed delivery. It is not retried.
appointment.cancelled
Appointment cancelled
Sent when an appointment is cancelled or a pending request is declined.
Headers
| Name | In | Type | Description |
|---|---|---|---|
X-Webhook-Signature | header | string required | Lowercase hex HMAC-SHA256 of pattern |
X-Webhook-Timestamp | header | integer required | Unix time in seconds when the request was signed. It is part of the signed string. |
Delivery body application/json required
| Field | Type | Description |
|---|---|---|
event | string required | Always |
timestamp | string (date-time) required | ISO 8601 time the payload was built. This is not the value that is signed; see |
data | object required | |
data.appointment_id | integer required | |
data.start | any required | Appointment start. |
data.end | any required | Appointment end. |
data.timezone | any required | Timezone of the appointment. |
data.cancelled_by | string required |
One of: |
Your response
2XX Return any 2xx status to acknowledge the delivery. Any other status, a timeout, or a connection error is recorded as a failed delivery. It is not retried.
appointment.rescheduled
Appointment rescheduled
Sent when an appointment is moved to a new time.
Headers
| Name | In | Type | Description |
|---|---|---|---|
X-Webhook-Signature | header | string required | Lowercase hex HMAC-SHA256 of pattern |
X-Webhook-Timestamp | header | integer required | Unix time in seconds when the request was signed. It is part of the signed string. |
Delivery body application/json required
| Field | Type | Description |
|---|---|---|
event | string required | Always |
timestamp | string (date-time) required | ISO 8601 time the payload was built. This is not the value that is signed; see |
data | object required | |
data.appointment_id | integer | string required | |
data.old_start | any required | Start before the change. |
data.start | any required | New start. |
data.end | any required | New end. |
data.timezone | any required | Timezone of the appointment. |
Your response
2XX Return any 2xx status to acknowledge the delivery. Any other status, a timeout, or a connection error is recorded as a failed delivery. It is not retried.
webhook.test
Test event
Sent only by POST /webhooks/{id}/test. It cannot be subscribed to. It is sent with User-Agent: VoiceAI-Webhook/1.0.
Headers
| Name | In | Type | Description |
|---|---|---|---|
X-Webhook-Signature | header | string required | Lowercase hex HMAC-SHA256 of pattern |
X-Webhook-Timestamp | header | integer required | Unix time in seconds when the request was signed. It is part of the signed string. |
Delivery body application/json required
| Field | Type | Description |
|---|---|---|
event | string required | Always |
timestamp | string (date-time) required | ISO 8601 time the payload was built. This is not the value that is signed; see |
data | object required | |
data.message | string required | Always |
data.webhook_id | integer required | Id of the subscription being tested. |
Your response
2XX Return any 2xx status to acknowledge the delivery. Any other status, a timeout, or a connection error is recorded as a failed delivery. It is not retried.
Ready to build on Vosy?
API access is included with the Business and Enterprise plans. Sign up, choose a plan with API access, and create your own keys from the Vosy API page in your account. Compare plans
Get Started