← API reference

Webhook events

The events a webhook subscription can deliver, with the body and headers of each delivery.

campaign.started

Campaign started

Sent when a campaign starts running.

Headers

NameInTypeDescription
X-Webhook-Signatureheaderstring required

Lowercase hex HMAC-SHA256 of {X-Webhook-Timestamp}.{raw body}, keyed with the subscription secret. No prefix.

pattern ^[0-9a-f]{64}$

X-Webhook-Timestampheaderinteger required

Unix time in seconds when the request was signed. It is part of the signed string.

Delivery body application/json required

FieldTypeDescription
eventstring required

Always campaign.started

timestampstring (date-time) required

ISO 8601 time the payload was built. This is not the value that is signed; see X-Webhook-Timestamp.

dataobject required
data.campaign_idinteger required
data.campaign_namestring | null required
data.statusstring required

Status after the change: running for campaign.started, paused for campaign.paused, completed for campaign.completed.

One of: running, paused, completed

data.agent_idinteger | string | null required

Agent assigned to the campaign, or null.

data.total_contactsinteger 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

NameInTypeDescription
X-Webhook-Signatureheaderstring required

Lowercase hex HMAC-SHA256 of {X-Webhook-Timestamp}.{raw body}, keyed with the subscription secret. No prefix.

pattern ^[0-9a-f]{64}$

X-Webhook-Timestampheaderinteger required

Unix time in seconds when the request was signed. It is part of the signed string.

Delivery body application/json required

FieldTypeDescription
eventstring required

Always campaign.paused

timestampstring (date-time) required

ISO 8601 time the payload was built. This is not the value that is signed; see X-Webhook-Timestamp.

dataobject required
data.campaign_idinteger
data.campaign_namestring | null
data.statusstring

Status after the change: running for campaign.started, paused for campaign.paused, completed for campaign.completed.

One of: running, paused, completed

data.agent_idinteger | string | null

Agent assigned to the campaign, or null.

data.total_contactsinteger
data.reasonstring

Always llm_failure_cliff

data.triggering_call_idstring

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

NameInTypeDescription
X-Webhook-Signatureheaderstring required

Lowercase hex HMAC-SHA256 of {X-Webhook-Timestamp}.{raw body}, keyed with the subscription secret. No prefix.

pattern ^[0-9a-f]{64}$

X-Webhook-Timestampheaderinteger required

Unix time in seconds when the request was signed. It is part of the signed string.

Delivery body application/json required

FieldTypeDescription
eventstring required

Always campaign.completed

timestampstring (date-time) required

ISO 8601 time the payload was built. This is not the value that is signed; see X-Webhook-Timestamp.

dataobject required
data.campaign_idinteger required
data.campaign_namestring | null required
data.statusstring required

Status after the change: running for campaign.started, paused for campaign.paused, completed for campaign.completed.

One of: running, paused, completed

data.agent_idinteger | string | null required

Agent assigned to the campaign, or null.

data.total_contactsinteger 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

NameInTypeDescription
X-Webhook-Signatureheaderstring required

Lowercase hex HMAC-SHA256 of {X-Webhook-Timestamp}.{raw body}, keyed with the subscription secret. No prefix.

pattern ^[0-9a-f]{64}$

X-Webhook-Timestampheaderinteger required

Unix time in seconds when the request was signed. It is part of the signed string.

Delivery body application/json required

FieldTypeDescription
eventstring required

Always call.completed

timestampstring (date-time) required

ISO 8601 time the payload was built. This is not the value that is signed; see X-Webhook-Timestamp.

dataobject required
data.campaign_idinteger required
data.contact_idinteger required
data.dispositionstring required
data.outcomestring required

Call outcome. Falls back to disposition when no outcome was set.

data.duration_secondsinteger required
data.call_idstring

Call identifier. Omitted, with recorded and recording_url, when the call record cannot be resolved.

data.recordedboolean

Whether a recording exists or is expected for the call. Omitted when call_id is.

data.recording_urlstring | null

Absolute URL of the recording fetch endpoint, or null when the call was not recorded. It is not a file link: fetching it needs a Bearer token with the calls:recordings scope, and it returns 404 until the file exists. Omitted when call_id is.

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

NameInTypeDescription
X-Webhook-Signatureheaderstring required

Lowercase hex HMAC-SHA256 of {X-Webhook-Timestamp}.{raw body}, keyed with the subscription secret. No prefix.

pattern ^[0-9a-f]{64}$

X-Webhook-Timestampheaderinteger required

Unix time in seconds when the request was signed. It is part of the signed string.

Delivery body application/json required

FieldTypeDescription
eventstring required

Always call.failed

timestampstring (date-time) required

ISO 8601 time the payload was built. This is not the value that is signed; see X-Webhook-Timestamp.

dataobject required
data.campaign_idinteger required
data.contact_idinteger required
data.dispositionstring required
data.outcomestring required

Call outcome. Falls back to disposition when no outcome was set.

data.duration_secondsinteger required
data.call_idstring

Call identifier. Omitted, with recorded and recording_url, when the call record cannot be resolved.

data.recordedboolean

Whether a recording exists or is expected for the call. Omitted when call_id is.

data.recording_urlstring | null

Absolute URL of the recording fetch endpoint, or null when the call was not recorded. It is not a file link: fetching it needs a Bearer token with the calls:recordings scope, and it returns 404 until the file exists. Omitted when call_id is.

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

NameInTypeDescription
X-Webhook-Signatureheaderstring required

Lowercase hex HMAC-SHA256 of {X-Webhook-Timestamp}.{raw body}, keyed with the subscription secret. No prefix.

pattern ^[0-9a-f]{64}$

X-Webhook-Timestampheaderinteger required

Unix time in seconds when the request was signed. It is part of the signed string.

Delivery body application/json required

FieldTypeDescription
eventstring required

Always contact.completed

timestampstring (date-time) required

ISO 8601 time the payload was built. This is not the value that is signed; see X-Webhook-Timestamp.

dataobject required
data.campaign_idinteger required
data.contact_idinteger required
data.outcomestring required
data.duration_secondsinteger 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

NameInTypeDescription
X-Webhook-Signatureheaderstring required

Lowercase hex HMAC-SHA256 of {X-Webhook-Timestamp}.{raw body}, keyed with the subscription secret. No prefix.

pattern ^[0-9a-f]{64}$

X-Webhook-Timestampheaderinteger required

Unix time in seconds when the request was signed. It is part of the signed string.

Delivery body application/json required

FieldTypeDescription
eventstring required

Always contact.failed

timestampstring (date-time) required

ISO 8601 time the payload was built. This is not the value that is signed; see X-Webhook-Timestamp.

dataobject required
data.campaign_idinteger required
data.contact_idinteger required
data.outcomestring required
data.dispositionstring 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

NameInTypeDescription
X-Webhook-Signatureheaderstring required

Lowercase hex HMAC-SHA256 of {X-Webhook-Timestamp}.{raw body}, keyed with the subscription secret. No prefix.

pattern ^[0-9a-f]{64}$

X-Webhook-Timestampheaderinteger required

Unix time in seconds when the request was signed. It is part of the signed string.

Delivery body application/json required

FieldTypeDescription
eventstring required

Always call.inbound.completed

timestampstring (date-time) required

ISO 8601 time the payload was built. This is not the value that is signed; see X-Webhook-Timestamp.

dataobject required
data.call_idany required

Call identifier.

data.agent_idany required

Agent that handled the call.

data.directionstring required

Always inbound

data.caller_numberstring | null required

Number the call came from.

data.caller_namestring | null required

Caller ID name, when the carrier supplied one.

data.called_numberstring | null required

Number that was called.

data.duration_secondsinteger required
data.talk_duration_secondsinteger required
data.hangup_causestring | null required

Hangup cause recorded for the call.

data.hangup_sourcestring | null required

Which side ended the call, as recorded for the call.

data.transcriptany required

Call transcript, or null when there is none.

data.extracted_dataany required

Data extracted from the call, or null.

data.recording_urlstring | null required

Storage location of the recording, in the form s3://bucket/key when the file is in object storage, otherwise the recording URL on the call record, or null. An s3:// value is a reference, not a downloadable link.

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

NameInTypeDescription
X-Webhook-Signatureheaderstring required

Lowercase hex HMAC-SHA256 of {X-Webhook-Timestamp}.{raw body}, keyed with the subscription secret. No prefix.

pattern ^[0-9a-f]{64}$

X-Webhook-Timestampheaderinteger required

Unix time in seconds when the request was signed. It is part of the signed string.

Delivery body application/json required

FieldTypeDescription
eventstring required

Always appointment.booked

timestampstring (date-time) required

ISO 8601 time the payload was built. This is not the value that is signed; see X-Webhook-Timestamp.

dataobject required
data.appointment_idinteger | string required
data.startany required

Appointment start.

data.endany required

Appointment end.

data.timezoneany required

Timezone of the appointment.

data.sourcestring required

Where the booking came from, as stored on the appointment, for example agent_call or web.

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

NameInTypeDescription
X-Webhook-Signatureheaderstring required

Lowercase hex HMAC-SHA256 of {X-Webhook-Timestamp}.{raw body}, keyed with the subscription secret. No prefix.

pattern ^[0-9a-f]{64}$

X-Webhook-Timestampheaderinteger required

Unix time in seconds when the request was signed. It is part of the signed string.

Delivery body application/json required

FieldTypeDescription
eventstring required

Always appointment.cancelled

timestampstring (date-time) required

ISO 8601 time the payload was built. This is not the value that is signed; see X-Webhook-Timestamp.

dataobject required
data.appointment_idinteger required
data.startany required

Appointment start.

data.endany required

Appointment end.

data.timezoneany required

Timezone of the appointment.

data.cancelled_bystring required

host for a cancel from the dashboard or a declined request, attendee for a self-service cancel, agent otherwise.

One of: host, attendee, agent

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

NameInTypeDescription
X-Webhook-Signatureheaderstring required

Lowercase hex HMAC-SHA256 of {X-Webhook-Timestamp}.{raw body}, keyed with the subscription secret. No prefix.

pattern ^[0-9a-f]{64}$

X-Webhook-Timestampheaderinteger required

Unix time in seconds when the request was signed. It is part of the signed string.

Delivery body application/json required

FieldTypeDescription
eventstring required

Always appointment.rescheduled

timestampstring (date-time) required

ISO 8601 time the payload was built. This is not the value that is signed; see X-Webhook-Timestamp.

dataobject required
data.appointment_idinteger | string required
data.old_startany required

Start before the change.

data.startany required

New start.

data.endany required

New end.

data.timezoneany 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

NameInTypeDescription
X-Webhook-Signatureheaderstring required

Lowercase hex HMAC-SHA256 of {X-Webhook-Timestamp}.{raw body}, keyed with the subscription secret. No prefix.

pattern ^[0-9a-f]{64}$

X-Webhook-Timestampheaderinteger required

Unix time in seconds when the request was signed. It is part of the signed string.

Delivery body application/json required

FieldTypeDescription
eventstring required

Always webhook.test

timestampstring (date-time) required

ISO 8601 time the payload was built. This is not the value that is signed; see X-Webhook-Timestamp.

dataobject required
data.messagestring required

Always This is a test webhook delivery

data.webhook_idinteger 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