← API reference

Webhooks API

Webhook subscriptions and delivery logs.

Each event is sent as one POST with a JSON body {event, timestamp, data} to each of the organization’s active subscriptions that lists that event. The payload of every event is documented under webhooks in this document.

Signing. Every request carries X-Webhook-Timestamp (Unix time in seconds) and X-Webhook-Signature. The signature is the lowercase hex HMAC-SHA256 of {timestamp}.{raw body}, keyed with the subscription secret. It has no prefix. To verify, take the raw request body before parsing it, compute the HMAC over the X-Webhook-Timestamp value, a ., and the raw body, and compare the result with the header. Use the header timestamp, not the timestamp field in the body.

Delivery. Each event is attempted once. There is no retry. The request times out after 5 seconds in total, with 3 seconds to connect. Redirects are not followed. Any 2xx response counts as success; anything else is a failure. The target URL is checked again at delivery time, and a target that resolves to a private or internal address is not called. Requests are sent with Content-Type: application/json and User-Agent: Vosy-Webhook/1.0, plus the subscription’s custom headers. Every attempt is recorded and can be read from GET /webhooks/{id}/logs.

Test deliveries. POST /webhooks/{id}/test sends a webhook.test event signed the same way. It differs from a real delivery: it is sent whatever the subscription’s status or events, it uses User-Agent: VoiceAI-Webhook/1.0, and it times out after 30 seconds in total, with 10 seconds to connect.

GET /webhooks

List webhook subscriptions

Auth: API key (Authorization: Bearer). Scopes: webhooks:read, webhooks:manage.

Requires one of the following scopes: webhooks:read, webhooks:manage.

Parameters

NameInTypeDescription
limitqueryinteger

Max items to return (1-100).

Default 25 · min 1 · max 100

offsetqueryinteger

Number of items to skip.

Default 0 · min 0

statusquerystring

One of: active, paused, disabled

Responses

200 Success

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataarray of object required
data[].idinteger
data[].namestring | null

Label for the subscription; defaults to the target host when omitted at creation.

data[].urlstring
data[].eventsarray of string
data[].statusstring

active = delivering; paused and disabled both stop delivery.

One of: active, paused, disabled

data[].descriptionstring | null
data[].headersobject

Accepts any keys

data[].created_atstring (date-time)
data[].updated_atstring (date-time) | null
metaobject

Offset pagination metadata (in the top-level meta object).

meta.totalinteger
meta.limitinteger
meta.offsetinteger
meta.has_moreboolean

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

POST /webhooks

Create a subscription

Auth: API key (Authorization: Bearer). Scopes: webhooks:write, webhooks:manage.

Registers a webhook endpoint. The signing secret is returned once, only on creation. It is 64 hex characters and is generated by the platform. A new subscription starts active and receives events straight away.

Validation, each failure returning 400: url must be a valid HTTPS URL of at most 2048 characters whose hostname resolves; a URL that targets localhost, or a private, reserved, or internal address or hostname, is refused. name is at most 100 characters and description at most 2000. events must be a non-empty array of known event names. headers must be an object of text values with no line breaks.

See the Webhooks tag description for how deliveries are signed and sent.

Requires one of the following scopes: webhooks:write, webhooks:manage.

Request body application/json required

FieldTypeDescription
namestring

Optional label; defaults to the target host.

max length 100

urlstring (uri) required

Must be a valid HTTPS URL. The hostname must resolve. A URL that targets localhost, or a private, reserved, or internal address or hostname, is refused with 400.

max length 2048

eventsarray of string required

Events to subscribe to. A name outside this list is refused with 400.

Delivered today: campaign.started, campaign.paused, campaign.completed, call.completed, call.failed, contact.completed, contact.failed, call.inbound.completed, appointment.booked, appointment.cancelled, appointment.rescheduled.

Accepted but not currently sent: call.started, call.answered, call.ended, call.transferred, campaign.failed, transcript.update, transcript.final, agent.response, function.called, function.result, sentiment.update. A subscription may list them, but no delivery is made for them.

Scheduling emits appointment.booked (on a confirmed booking or an approved pending request), appointment.cancelled (cancel or decline), and appointment.rescheduled. webhook.test is not a subscribable event; it is sent only by POST /webhooks/{id}/test.

min items 1

descriptionstring

max length 2000

headersobject

Extra request headers sent with each delivery. Must be an object of text values. Header names and values must not contain line breaks. Anything else is refused with 400.

Accepts any keys; each value is string

Responses

201 Subscription created

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.idinteger
data.namestring | null

Label for the subscription; defaults to the target host when omitted at creation.

data.urlstring
data.eventsarray of string
data.statusstring

active = delivering; paused and disabled both stop delivery.

One of: active, paused, disabled

data.descriptionstring | null
data.headersobject

Accepts any keys

data.created_atstring (date-time)
data.updated_atstring (date-time) | null
data.secretstring

HMAC signing secret; returned only on creation.

400 Invalid request (validation errors under error.details.validation_errors).

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

GET /webhooks/{id}

Get a subscription

Auth: API key (Authorization: Bearer). Scopes: webhooks:read, webhooks:manage.

Requires one of the following scopes: webhooks:read, webhooks:manage.

Parameters

NameInTypeDescription
idpathinteger required

Webhook id

Responses

200 Success

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.idinteger
data.namestring | null

Label for the subscription; defaults to the target host when omitted at creation.

data.urlstring
data.eventsarray of string
data.statusstring

active = delivering; paused and disabled both stop delivery.

One of: active, paused, disabled

data.descriptionstring | null
data.headersobject

Accepts any keys

data.created_atstring (date-time)
data.updated_atstring (date-time) | null

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

PATCH /webhooks/{id}

Update a subscription

Auth: API key (Authorization: Bearer). Scopes: webhooks:write, webhooks:manage.

Updates the supplied fields. A request with no recognised field returns 400.

Validation, each failure returning 400: url, when sent, must be a valid HTTPS URL whose hostname resolves; a URL that targets localhost, or a private, reserved, or internal address or hostname, is refused. name must not be empty; a longer value is cut to 100 characters. description is at most 2000 characters. events must be a non-empty array of known event names. status must be active, paused, or disabled. headers must be an object of text values with no line breaks.

Requires one of the following scopes: webhooks:write, webhooks:manage.

Parameters

NameInTypeDescription
idpathinteger required

Webhook id

Request body application/json required

FieldTypeDescription
namestring

Must not be empty. A value longer than 100 characters is cut to 100, not refused.

min length 1

urlstring (uri)

Must be a valid HTTPS URL. The hostname must resolve. A URL that targets localhost, or a private, reserved, or internal address or hostname, is refused with 400.

eventsarray of string

Events to subscribe to. A name outside this list is refused with 400.

Delivered today: campaign.started, campaign.paused, campaign.completed, call.completed, call.failed, contact.completed, contact.failed, call.inbound.completed, appointment.booked, appointment.cancelled, appointment.rescheduled.

Accepted but not currently sent: call.started, call.answered, call.ended, call.transferred, campaign.failed, transcript.update, transcript.final, agent.response, function.called, function.result, sentiment.update. A subscription may list them, but no delivery is made for them.

Scheduling emits appointment.booked (on a confirmed booking or an approved pending request), appointment.cancelled (cancel or decline), and appointment.rescheduled. webhook.test is not a subscribable event; it is sent only by POST /webhooks/{id}/test.

min items 1

statusstring

Accepted values: active, paused, disabled. Any other value is refused with 400. active = delivering; paused and disabled both stop delivery.

One of: active, paused, disabled

descriptionstring

max length 2000

headersobject

Extra request headers sent with each delivery. Must be an object of text values. Header names and values must not contain line breaks. Anything else is refused with 400.

Accepts any keys; each value is string

Responses

200 Success

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.idinteger
data.namestring | null

Label for the subscription; defaults to the target host when omitted at creation.

data.urlstring
data.eventsarray of string
data.statusstring

active = delivering; paused and disabled both stop delivery.

One of: active, paused, disabled

data.descriptionstring | null
data.headersobject

Accepts any keys

data.created_atstring (date-time)
data.updated_atstring (date-time) | null

400 Invalid request (validation errors under error.details.validation_errors).

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

DELETE /webhooks/{id}

Delete a subscription

Auth: API key (Authorization: Bearer). Scopes: webhooks:delete, webhooks:manage.

Requires one of the following scopes: webhooks:delete, webhooks:manage.

Parameters

NameInTypeDescription
idpathinteger required

Webhook id

Responses

204 Deleted

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

POST /webhooks/{id}/test

Send a test event

Auth: API key (Authorization: Bearer). Scopes: webhooks:write, webhooks:manage.

Sends one webhook.test event to the subscription URL and reports the outcome. The event is sent whatever the subscription’s status or events. This call returns 200 whether or not the delivery succeeded; read data.success. The attempt is recorded in the delivery log. A test delivery uses User-Agent: VoiceAI-Webhook/1.0 and times out after 30 seconds in total, with 10 seconds to connect. It is signed like any other delivery.

Requires one of the following scopes: webhooks:write, webhooks:manage.

Parameters

NameInTypeDescription
idpathinteger required

Webhook id

Responses

200 Success

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.successboolean
data.status_codeinteger | null
data.response_time_msinteger
data.errorstring

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

GET /webhooks/{id}/logs

Get delivery logs

Auth: API key (Authorization: Bearer). Scopes: webhooks:read, webhooks:manage.

Requires one of the following scopes: webhooks:read, webhooks:manage.

Parameters

NameInTypeDescription
idpathinteger required

Webhook id

limitqueryinteger

Max items to return (1-100).

Default 25 · min 1 · max 100

offsetqueryinteger

Number of items to skip.

Default 0 · min 0

Responses

200 Success

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataarray of object required
data[].idinteger
data[].event_typestring
data[].status_codeinteger | null
data[].successboolean
data[].errorstring | null
data[].response_time_msinteger | null
data[].created_atstring (date-time)

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

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