← API reference

Telephony API

Providers, phone numbers, and telephony stats.

GET /telephony/providers

List telephony providers

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

Requires one of the following scopes: telephony:read, telephony:manage. These routes also accept an authenticated browser session.

Parameters

NameInTypeDescription
active_onlyqueryboolean

Default true

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[].provider_typestring
data[].display_namestring
data[].is_byocboolean
data[].is_defaultboolean
data[].is_activeboolean
data[].is_validatedboolean
data[].last_validated_atstring | null
data[].validation_errorstring | null
data[].config_schemaobject

Included on single-provider GET.

Accepts any keys

data[].created_atstring (date-time)
data[].updated_atstring (date-time)
data[].settingsobject | array of any

The provider's stored messaging settings. Never the full settings value that was written: only messaging_profile_id is returned, and only when it is set on a provider this organization owns. Otherwise this is an empty array ([]), including for shared platform providers.

data[].settings.messaging_profile_idstring | number | boolean

Telnyx messaging profile id.

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 /telephony/providers

Create a provider

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

Requires one of the following scopes: telephony:write, telephony:manage. These routes also accept an authenticated browser session.

Request body application/json required

FieldTypeDescription
provider_typestring required

Any other value is rejected with 400.

One of: byoc, telnyx, twilio, signalwire, bandwidth, plivo, vonage, sip

display_namestring required
credentialsobject required

Accepts any keys

is_byocboolean
is_defaultboolean
settingsobject

Accepts any keys

Responses

201 Provider 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.provider_typestring
data.display_namestring
data.is_byocboolean
data.is_defaultboolean
data.is_activeboolean
data.is_validatedboolean
data.last_validated_atstring | null
data.validation_errorstring | null
data.config_schemaobject

Included on single-provider GET.

Accepts any keys

data.created_atstring (date-time)
data.updated_atstring (date-time)
data.settingsobject | array of any

The provider's stored messaging settings. Never the full settings value that was written: only messaging_profile_id is returned, and only when it is set on a provider this organization owns. Otherwise this is an empty array ([]), including for shared platform providers.

data.settings.messaging_profile_idstring | number | boolean

Telnyx messaging profile id.

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 /telephony/providers/{id}

Get a provider

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

Requires one of the following scopes: telephony:read, telephony:manage. These routes also accept an authenticated browser session.

Parameters

NameInTypeDescription
idpathinteger required

Provider 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.provider_typestring
data.display_namestring
data.is_byocboolean
data.is_defaultboolean
data.is_activeboolean
data.is_validatedboolean
data.last_validated_atstring | null
data.validation_errorstring | null
data.config_schemaobject

Included on single-provider GET.

Accepts any keys

data.created_atstring (date-time)
data.updated_atstring (date-time)
data.settingsobject | array of any

The provider's stored messaging settings. Never the full settings value that was written: only messaging_profile_id is returned, and only when it is set on a provider this organization owns. Otherwise this is an empty array ([]), including for shared platform providers.

data.settings.messaging_profile_idstring | number | boolean

Telnyx messaging profile id.

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 /telephony/providers/{id}

Update a provider

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

Requires one of the following scopes: telephony:write, telephony:manage. These routes also accept an authenticated browser session.

Parameters

NameInTypeDescription
idpathinteger required

Provider id

Request body application/json required

FieldTypeDescription
display_namestring
is_defaultboolean
is_activeboolean
credentialsobject

Accepts any keys

settingsobject

Accepts any keys

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.provider_typestring
data.display_namestring
data.is_byocboolean
data.is_defaultboolean
data.is_activeboolean
data.is_validatedboolean
data.last_validated_atstring | null
data.validation_errorstring | null
data.config_schemaobject

Included on single-provider GET.

Accepts any keys

data.created_atstring (date-time)
data.updated_atstring (date-time)
data.settingsobject | array of any

The provider's stored messaging settings. Never the full settings value that was written: only messaging_profile_id is returned, and only when it is set on a provider this organization owns. Otherwise this is an empty array ([]), including for shared platform providers.

data.settings.messaging_profile_idstring | number | boolean

Telnyx messaging profile id.

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 /telephony/providers/{id}

Delete a provider

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

Requires one of the following scopes: telephony:delete, telephony:manage. These routes also accept an authenticated browser session.

Parameters

NameInTypeDescription
idpathinteger required

Provider 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 /telephony/providers/{id}/test

Test provider credentials

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

Requires one of the following scopes: telephony:write, telephony:manage. These routes also accept an authenticated browser session.

Parameters

NameInTypeDescription
idpathinteger required

Provider 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.validboolean
data.account_infoobject | null
data.validated_atstring (date-time)
data.errorstring
data.error_codestring

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 /telephony/numbers

List phone numbers

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

Requires one of the following scopes: telephony:read, telephony:manage. These routes also accept an authenticated browser session.

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

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[].phone_numberstring
data[].provider_idinteger
data[].number_typestring
data[].country_codestring
data[].capabilitiesobject

Accepts any keys

data[].caller_id_namestring | null
data[].statusstring
data[].is_defaultboolean
data[].monthly_costnumber | null

Omitted unless the caller may see billing. Billing is for organization owners and admins: an API key sees it only while the user who created it is an owner or admin of the key's organization (a platform super-admin creator counts as an owner), checked on every request.

data[].assigned_to_idinteger | null
data[].assigned_to_typestring | null
data[].created_atstring (date-time)
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 /telephony/numbers

Provision a phone number

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

Requires one of the following scopes: telephony:write, telephony:manage. These routes also accept an authenticated browser session. Buying a number is billing: 403 unless the caller may see billing for this organization (its owner or admin, or an API key created in it by one who currently is). 403 also when the plan phone-number limit is reached. 503 NUMBER_FEE_UNAVAILABLE when the organization's monthly number fee can't be read; nothing is ordered.

Request body application/json required

FieldTypeDescription
phone_numberstring required
provider_idinteger
typestring

Default local

optionsobject

Accepts any keys

Responses

201 Number provisioned

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.phone_numberstring
data.provider_idinteger
data.number_typestring
data.country_codestring
data.capabilitiesobject

Accepts any keys

data.caller_id_namestring | null
data.statusstring
data.is_defaultboolean
data.monthly_costnumber | null

Omitted unless the caller may see billing. Billing is for organization owners and admins: an API key sees it only while the user who created it is an owner or admin of the key's organization (a platform super-admin creator counts as an owner), checked on every request.

data.assigned_to_idinteger | null
data.assigned_to_typestring | null
data.created_atstring (date-time)

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

503 The monthly fee the number would be billed at could not be read, so the number was not ordered. error.code is NUMBER_FEE_UNAVAILABLE. Safe to retry.

POST /telephony/numbers/search

Search available numbers

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

Requires one of the following scopes: telephony:write, telephony:manage. These routes also accept an authenticated browser session. Number search is available for US numbers only: an unsupported country_code returns 400.

Request body application/json

FieldTypeDescription
country_codestring

Only US is supported. Case and surrounding whitespace are ignored. Any other value, or a non-string, is rejected with 400.

Default US

area_codestring
containsstring
citystring
statestring
typestring
limitinteger

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.numbersarray of object
data.total_countinteger
data.providersarray of object

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

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

GET /telephony/numbers/{id}

Get a phone number

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

Requires one of the following scopes: telephony:read, telephony:manage. These routes also accept an authenticated browser session.

Parameters

NameInTypeDescription
idpathinteger required

Phone number 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.phone_numberstring
data.provider_idinteger
data.number_typestring
data.country_codestring
data.capabilitiesobject

Accepts any keys

data.caller_id_namestring | null
data.statusstring
data.is_defaultboolean
data.monthly_costnumber | null

Omitted unless the caller may see billing. Billing is for organization owners and admins: an API key sees it only while the user who created it is an owner or admin of the key's organization (a platform super-admin creator counts as an owner), checked on every request.

data.assigned_to_idinteger | null
data.assigned_to_typestring | 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

PATCH /telephony/numbers/{id}

Configure a phone number

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

Requires one of the following scopes: telephony:write, telephony:manage. These routes also accept an authenticated browser session.

Parameters

NameInTypeDescription
idpathinteger required

Phone number id

Request body application/json required

FieldTypeDescription
caller_id_namestring
is_defaultboolean
assigned_to_idinteger | null
assigned_to_typestring
webhook_urlstring
voice_enabledboolean
sms_enabledboolean

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.phone_numberstring
data.provider_idinteger
data.number_typestring
data.country_codestring
data.capabilitiesobject

Accepts any keys

data.caller_id_namestring | null
data.statusstring
data.is_defaultboolean
data.monthly_costnumber | null

Omitted unless the caller may see billing. Billing is for organization owners and admins: an API key sees it only while the user who created it is an owner or admin of the key's organization (a platform super-admin creator counts as an owner), checked on every request.

data.assigned_to_idinteger | null
data.assigned_to_typestring | null
data.created_atstring (date-time)

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 /telephony/numbers/{id}

Release a phone number

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

Requires one of the following scopes: telephony:delete, telephony:manage. These routes also accept an authenticated browser session.

Parameters

NameInTypeDescription
idpathinteger required

Phone number id

Responses

204 Released

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 /telephony/stats

Telephony stats

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

Requires one of the following scopes: telephony:read, telephony:manage. These routes also accept an authenticated browser session.

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.active_callsinteger
data.todayobject

Accepts any keys

data.phone_numbersinteger
data.providersarray of object
data.providers[].typestring
data.providers[].validatedboolean
data.providers[].activeboolean

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 /telephony/providers/{id}/set-default

Set the default provider

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

Marks a provider as the org default. Rejects shared/platform providers or any provider not owned by the org (404).

Requires one of the following scopes: telephony:write, telephony:manage. Session authentication also works for browser (dashboard) contexts; this operation documents the Bearer path.

Parameters

NameInTypeDescription
idpathinteger required

Provider id

Responses

200 Default updated

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.messagestring
data.provider_idinteger

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 /telephony/calls

List calls

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

Offset-paginated call list with optional filters.

Requires one of the following scopes: telephony:read, telephony:manage. Session authentication also works for browser (dashboard) contexts; this operation documents the Bearer path.

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
directionquerystring
date_fromquerystring
date_toquerystring
phone_numberquerystring

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[].idstring

Call id (UUID).

data[].directionstring
data[].fromstring
data[].tostring
data[].statusstring
data[].duration_secondsinteger | null
data[].initiated_atstring (date-time) | null
data[].answered_atstring (date-time) | null
data[].ended_atstring (date-time) | null
data[].has_recordingboolean
data[].agent_idinteger | null
data[].campaign_idinteger | null
data[].hangup_causestring | null
data[].created_atstring (date-time)
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 /telephony/calls

Initiate a call

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

Places an outbound call. COMPLIANCE-GATED and fails closed: the destination is screened against the DNC list (federal + internal), the from number must be an active org-owned number (Truth-in-Caller-ID Act), and the call must fall within the TCPA calling window evaluated in the recipient's local time. A destination on the DNC list, a from number the organization does not own, a call outside the calling window, or a call refused by the consent check returns 403. If DNC verification is unavailable the call is refused with 500. A call that passes these checks but is then not placed (for example the organization is not active, or the carrier fails the call) also returns 500.

Requires one of the following scopes: telephony:write, telephony:manage. Session authentication also works for browser (dashboard) contexts; this operation documents the Bearer path.

Request body application/json required

FieldTypeDescription
tostring required

Destination number (E.164).

fromstring required

Caller-ID number (must be org-owned).

provider_idinteger
caller_id_namestring
timeoutinteger

Default 30

recordboolean

Default false

answering_machine_detectionboolean

Default false

metadataobject

Free-form metadata stored on the call record. The tcpa key is reserved: the platform overwrites it with the attestation of record for this dial. Only consent_basis and dnc_san are read from your input, and only if they pass validation; every other key you place under tcpa is discarded. A non-object metadata value is preserved as caller_metadata.

metadata.tcpaobject

Per-call TCPA declaration. acknowledged, acknowledged_via (always api_terms_of_service), acknowledged_at and acknowledged_by (always null on a Bearer path) are set by the platform and ignored if supplied. Omitted fields fall back to nothing -- unlike POST /calls, this endpoint does not read your org's compliance defaults.

metadata.tcpa.consent_basisstring

Legal basis for calling this recipient. Case-insensitive; an unrecognised value is silently dropped rather than rejected, leaving the attestation without a consent basis.

One of: prior_express_written_consent, existing_business_relationship, informational, b2b, other

metadata.tcpa.dnc_sanstring

Your National DNC Registry Subscription Account Number. Must match ^[A-Za-z0-9-]{2,50}$; an invalid value is silently dropped.

pattern ^[A-Za-z0-9-]{2,50}$

Responses

201 Call initiated

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.call_idstring
data.provider_call_idstring | null
data.statusstring

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

500 The call was not placed. error.code is internal_error. Returned when DNC verification is unavailable (safe to retry), when the organization is not active, or when the carrier fails the call.

GET /telephony/calls/{id}

Get call status

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

Requires one of the following scopes: telephony:read, telephony:manage. Session authentication also works for browser (dashboard) contexts; this operation documents the Bearer path.

Parameters

NameInTypeDescription
idpathstring required

Call id (UUID)

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

A telephony call (transformed view).

data.idstring

Call id (UUID).

data.directionstring
data.fromstring
data.tostring
data.statusstring
data.duration_secondsinteger | null
data.initiated_atstring (date-time) | null
data.answered_atstring (date-time) | null
data.ended_atstring (date-time) | null
data.has_recordingboolean
data.agent_idinteger | null
data.campaign_idinteger | null
data.hangup_causestring | 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

POST /telephony/calls/{id}/hangup

Hang up a call

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

Requires one of the following scopes: telephony:write, telephony:manage. Session authentication also works for browser (dashboard) contexts; this operation documents the Bearer path.

Parameters

NameInTypeDescription
idpathstring required

Call id (UUID)

Request body application/json

FieldTypeDescription
reasonstring

Responses

200 Terminated

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.messagestring
data.call_idstring

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

500 The carrier did not end the call. error.code is internal_error.

POST /telephony/calls/{id}/transfer

Transfer a call

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

Requires one of the following scopes: telephony:write, telephony:manage. Session authentication also works for browser (dashboard) contexts; this operation documents the Bearer path.

Parameters

NameInTypeDescription
idpathstring required

Call id (UUID)

Request body application/json required

FieldTypeDescription
destinationstring required

Where to send the call. A phone number must be a plain number: digits with an optional leading +, separated only by spaces, dots, dashes or parentheses, optionally behind tel: (in any case). With a + it must have 7-15 digits and not start with 0, and a +1 number must have exactly 10 digits after the 1 with an area code not starting with 0 or 1. Without a + it must be a 10-digit US number, or 11 digits starting with 1, with the same area-code rule. The number is dialed in E.164 form, so (415) 555-1234 and tel:415.555.1234 are both dialed as +14155551234. Anything else is rejected with 422 TRANSFER_TARGET_INVALID, including tel: parameters such as ;ext=22 or ;phone-context=, an opening parenthesis whose next digit is 0, even outside a bracket pair, such as a trunk prefix (+44 (0) 20 7946 0958, +44 (020) 7946 0958), #, *, pauses (, or w), keypad letters (1-800-FLOWERS), labels (415-555-1234 (office)), percent-encoding, tabs and any non-ASCII character (such as a non-breaking space, an en dash or 9). Emergency and service numbers are rejected the same way: a dial of up to 11 digits starting with 911, 112 or 999, or of up to 9 digits starting with 933 or 988, each optionally behind up to two 9s or 1s (+1 911, +9 911 1234); a dial of up to 9 digits starting with another N11 code such as 411; any dial starting with 999, except behind 91; and a +1 number whose area code or exchange is N11, such as +1 415 411 1234 (a toll-free number's exchange is allowed). A longer number that only contains such digits, such as +14155550911 or +7 (911) 123-45-67, is dialed. A SIP URI must have the form sip:user@host[:port][;transport=udp|tcp|tls], where user is an extension (2-6 digits, no leading 0) or a name starting with a letter (up to 32 of letters, digits, ., _, -), port is 5060 or 5061, and host is on the organization's SIP transfer allow-list (managed by Vosy). An extension is rejected if it starts with 911, 112, 999, 933, 988 or another N11 code such as 411, at the start or behind any one digit and then up to two 9s or 1s (911, 8911, 2110, 91411); a name is rejected if it contains 911, 112, 999, 933 or 988 once ., _ and - are removed (e911, room-1-1-2). ext:NNNN (same extension rule) dials that extension on the organization's configured PBX. Any other SIP-shaped value (for example sips:, URI headers, or a bare user@host) is rejected with 422 TRANSFER_TARGET_INVALID; a SIP host that is not allowed is rejected with 422 TRANSFER_TARGET_NOT_ALLOWED; if the allow-list cannot be read the request is refused with 503 TRANSFER_TARGET_UNVERIFIED.

typestring

Transfer type. Only blind transfer is supported by the underlying carriers; any other value is rejected with 422 TRANSFER_TYPE_UNSUPPORTED.

Always blind · Default blind

Responses

200 Transfer initiated

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.messagestring
data.call_idstring

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).

422 The transfer was refused. error.code is TRANSFER_TARGET_INVALID (destination is SIP-shaped but not an accepted form, is a service code such as 911, or is a phone number that is not a plain number that can be dialed in E.164 form), TRANSFER_TARGET_NOT_ALLOWED (SIP host not on the organization's allow-list, or no PBX configured for ext:), TRANSFER_TYPE_UNSUPPORTED (type other than blind), or UNSUPPORTED_CARRIER (the call's carrier cannot transfer).

429 Rate limit exceeded.

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

503 The destination is a SIP URI or ext: and the organization's SIP settings could not be read, so it was not checked. error.code is TRANSFER_TARGET_UNVERIFIED. Safe to retry.

501 The call's carrier cannot transfer through this API. error.code is USE_WEBHOOK (the carrier transfers by webhook redirect instead) or SIP_NOT_CONFIGURED (custom SIP calls have no transfer support). Retrying will not help.

POST /telephony/calls/{id}/hold

Hold a call

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

Requires one of the following scopes: telephony:write, telephony:manage. Session authentication also works for browser (dashboard) contexts; this operation documents the Bearer path.

Parameters

NameInTypeDescription
idpathstring required

Call id (UUID)

Request body application/json

FieldTypeDescription
hold_music_urlstring (uri)

Responses

200 On hold

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.messagestring
data.call_idstring

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

500 The carrier did not hold the call. error.code is internal_error. Also returned when the call's carrier cannot hold a call through this API; retrying will not help then.

POST /telephony/calls/{id}/resume

Resume a call

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

Requires one of the following scopes: telephony:write, telephony:manage. Session authentication also works for browser (dashboard) contexts; this operation documents the Bearer path.

Parameters

NameInTypeDescription
idpathstring required

Call id (UUID)

Responses

200 Resumed

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.messagestring
data.call_idstring

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

500 The carrier did not resume the call. error.code is internal_error. Also returned when the call's carrier cannot resume a call through this API; retrying will not help then.

GET /telephony/calls/{id}/events

Get call event timeline

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

Requires one of the following scopes: telephony:read, telephony:manage. Session authentication also works for browser (dashboard) contexts; this operation documents the Bearer path.

Parameters

NameInTypeDescription
idpathstring required

Call id (UUID)

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[].event_typestring
data[].event_dataobject

Accepts any keys

data[].timestampstring (date-time)
data[].sourcestring | 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

GET /telephony/calls/{id}/recording

Get call recording

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

Recording URL/metadata. Returns 404 when no recording exists for the call.

Requires one of the following scopes: telephony:read, telephony:manage. Session authentication also works for browser (dashboard) contexts; this operation documents the Bearer path.

Parameters

NameInTypeDescription
idpathstring required

Call id (UUID)

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.call_idstring
data.recording_urlstring
data.duration_secondsinteger | null
data.recorded_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

GET /telephony/config

Get telephony config

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

Supported provider types and their credential/config schemas.

Requires one of the following scopes: telephony:read, telephony:manage. Session authentication also works for browser (dashboard) contexts; this operation documents the Bearer path.

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.supported_providersarray of string
data.provider_schemasobject

Accepts any keys

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 /telephony/sip-trunk

Get the BYOC SIP trunk

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

Returns the org's single BYOC SIP trunk (or configured: false).

Requires one of the following scopes: telephony:read, telephony:manage. Session authentication also works for browser (dashboard) contexts; this operation documents the Bearer path.

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.configuredboolean
data.sip_trunkobject | null
data.sip_trunk.idinteger
data.sip_trunk.display_namestring | null
data.sip_trunk.sip_uristring
data.sip_trunk.sip_auth_typestring | null
data.sip_trunk.sip_usernamestring | null
data.sip_trunk.sip_codecsarray of string
data.sip_trunk.sip_transportstring

One of: udp, tcp, tls

data.sip_trunk.sip_outbound_proxystring | null
data.sip_trunk.sip_ip_whitelistarray of string
data.sip_trunk.sip_from_domainstring | null
data.sip_trunk.is_activeboolean
data.sip_trunk.is_validatedboolean
data.sip_trunk.last_validated_atstring | null
data.sip_trunk.validation_errorstring | null
data.sip_trunk.created_atstring (date-time)
data.sip_trunk.updated_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

429 Rate limit exceeded.

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

POST /telephony/sip-trunk

Create or update the SIP trunk

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

Creates the SIP trunk if none exists, otherwise updates it. Returns the saved trunk (HTTP 200).

Requires one of the following scopes: telephony:write, telephony:manage. Session authentication also works for browser (dashboard) contexts; this operation documents the Bearer path.

Request body application/json required

FieldTypeDescription
sip_uristring required

sip:host or sip:host:port.

display_namestring

Default SIP Trunk

sip_auth_typestring

Default credentials

sip_usernamestring
sip_passwordstring

write-only

sip_codecsarray of string

Default ["PCMU","PCMA"]

sip_transportstring

One of: udp, tcp, tls · Default udp

sip_outbound_proxystring
sip_ip_whitelistarray of string
sip_from_domainstring
is_activeboolean

Default true

Responses

200 Saved

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.configuredboolean
data.sip_trunkobject

A BYOC SIP trunk (telephony_providers row, provider_type=sip).

data.sip_trunk.idinteger
data.sip_trunk.display_namestring | null
data.sip_trunk.sip_uristring
data.sip_trunk.sip_auth_typestring | null
data.sip_trunk.sip_usernamestring | null
data.sip_trunk.sip_codecsarray of string
data.sip_trunk.sip_transportstring

One of: udp, tcp, tls

data.sip_trunk.sip_outbound_proxystring | null
data.sip_trunk.sip_ip_whitelistarray of string
data.sip_trunk.sip_from_domainstring | null
data.sip_trunk.is_activeboolean
data.sip_trunk.is_validatedboolean
data.sip_trunk.last_validated_atstring | null
data.sip_trunk.validation_errorstring | null
data.sip_trunk.created_atstring (date-time)
data.sip_trunk.updated_atstring (date-time)

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

DELETE /telephony/sip-trunk

Delete the SIP trunk

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

Soft-deletes the org's SIP trunk (404 if none configured).

Requires one of the following scopes: telephony:delete, telephony:manage. Session authentication also works for browser (dashboard) contexts; this operation documents the Bearer path.

Responses

204 Soft-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 /telephony/sip-trunk/test

Test SIP reachability

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

Tests SIP endpoint reachability. Tests the supplied sip_uri, or the saved trunk when the body is empty. SSRF-guarded: private/reserved/loopback/IMDS hosts are rejected. When testing the saved trunk, updates its validation status.

Requires one of the following scopes: telephony:write, telephony:manage. Session authentication also works for browser (dashboard) contexts; this operation documents the Bearer path.

Request body application/json

FieldTypeDescription
sip_uristring

Omit to test the saved trunk.

sip_transportstring

One of: udp, tcp, tls · Default udp

Responses

200 Reachable

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.messagestring
data.hoststring
data.portinteger
data.response_time_msnumber | 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

429 Rate limit exceeded.

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

GET /numbers

List numbers (partner façade, includes webhook wiring)

Auth: API key (Authorization: Bearer).

Responses

200 Success

Response fields
FieldTypeDescription
successboolean required

Always true

dataarray of object required
data[].numberstring

E.164 phone number

Example +14155551234

data[].provider_number_idstring

Carrier-side number ID; key for DELETE

data[].idinteger
data[].statusstring
data[].bot_idinteger | null

Inbound agent answering this number

data[].inbound_context_urlstring | null
data[].call_result_urlstring | null
data[].webhook_secret_refstring | null
data[].created_atstring

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

429 Rate limit exceeded.

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

POST /numbers

Buy a number and wire it to a bot + operator webhooks in one call

Auth: API key (Authorization: Bearer).

Requires scope telephony:write or telephony:manage. Send an Idempotency-Key header per buy — a retried request with the same key will not order a second number (a stored outcome, including a stored error, is replayed; use a fresh key for a genuinely new attempt). X-Idempotency-Key is accepted as an alias of the header. A first purchase answers 201; a replayed successful purchase answers 200 with the same body.

Only the organization's owners and admins, or an API key one of them created in it, can buy numbers; other callers get 403. A 403 is also returned when the plan's phone number limit is reached. A 503 with code NUMBER_FEE_UNAVAILABLE is returned when the number fee cannot be determined; nothing is ordered and the request can be retried.

Parameters

NameInTypeDescription
Idempotency-Keyheaderstring

Unique key per purchase attempt; retries with the same key replay the stored outcome.

X-Idempotency-Keyheaderstring

Alias of Idempotency-Key. Used only when Idempotency-Key is not sent.

Request body application/json required

FieldTypeDescription
bot_idinteger required

Active agent that answers this number. Its agent_direction must be inbound or both.

numberstring

Explicit E.164 number to buy (alternative to area_code)

area_codestring

3-digit NANP area code; first available number is bought

inbound_context_urlstring | null

Operator CRM endpoint POSTed {caller_phone, dialed_number} at answer time (HMAC-signed). Keep p99 well under 2s.

call_result_urlstring | null

Operator CRM endpoint POSTed the call result at call end (HMAC-signed).

webhook_secret_refstring | null

Named secret (stored via PUT /numbers/secrets/{ref}) used to sign both webhooks. Required while any webhook URL is set.

Responses

200 Replay of an earlier successful purchase made with the same idempotency key. No new number is ordered.

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.numberstring

E.164 phone number

Example +14155551234

data.provider_number_idstring

Carrier-side number ID; key for DELETE

data.idinteger
data.statusstring
data.bot_idinteger | null

Inbound agent answering this number

data.inbound_context_urlstring | null
data.call_result_urlstring | null
data.webhook_secret_refstring | null
data.created_atstring

201 Success

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.numberstring

E.164 phone number

Example +14155551234

data.provider_number_idstring

Carrier-side number ID; key for DELETE

data.idinteger
data.statusstring
data.bot_idinteger | null

Inbound agent answering this number

data.inbound_context_urlstring | null
data.call_result_urlstring | null
data.webhook_secret_refstring | null
data.created_atstring

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

503 The number fee could not be determined (NUMBER_FEE_UNAVAILABLE). Nothing was ordered. Safe to retry.

PATCH /numbers/{provider_number_id}

Wire/unwire operator webhooks on an existing number

Auth: API key (Authorization: Bearer).

Only webhook wiring is updatable; a field present in the body is applied, explicit null clears it.

Parameters

NameInTypeDescription
provider_number_idpathstring required

Request body application/json required

FieldTypeDescription
inbound_context_urlstring | null

Operator CRM endpoint POSTed {caller_phone, dialed_number} at answer time (HMAC-signed). Keep p99 well under 2s.

call_result_urlstring | null

Operator CRM endpoint POSTed the call result at call end (HMAC-signed).

webhook_secret_refstring | null

Named secret (stored via PUT /numbers/secrets/{ref}) used to sign both webhooks. Required while any webhook URL is set.

Responses

200 Success

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.numberstring

E.164 phone number

Example +14155551234

data.provider_number_idstring

Carrier-side number ID; key for DELETE

data.idinteger
data.statusstring
data.bot_idinteger | null

Inbound agent answering this number

data.inbound_context_urlstring | null
data.call_result_urlstring | null
data.webhook_secret_refstring | null
data.created_atstring

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

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 /numbers/{provider_number_id}

Release a number (carrier-side release + soft delete)

Auth: API key (Authorization: Bearer).

Parameters

NameInTypeDescription
provider_number_idpathstring required

Responses

204 Released

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

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

PUT /numbers/secrets/{ref}

Store/rotate a named webhook-signing secret (write-only)

Auth: API key (Authorization: Bearer).

The secret value (16-512 chars) is envelope-encrypted at rest and never returned by any API.

Parameters

NameInTypeDescription
refpathstring required

pattern ^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,99}$

Request body application/json required

FieldTypeDescription
secretstring required

min length 16 · max length 512

Responses

200 Success

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.okboolean
data.refstring

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

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