Telephony API
Providers, phone numbers, and telephony stats.
- GET
/telephony/providersList telephony providers - POST
/telephony/providersCreate a provider - GET
/telephony/providers/{id}Get a provider - PATCH
/telephony/providers/{id}Update a provider - DELETE
/telephony/providers/{id}Delete a provider - POST
/telephony/providers/{id}/testTest provider credentials - GET
/telephony/numbersList phone numbers - POST
/telephony/numbersProvision a phone number - POST
/telephony/numbers/searchSearch available numbers - GET
/telephony/numbers/{id}Get a phone number - PATCH
/telephony/numbers/{id}Configure a phone number - DELETE
/telephony/numbers/{id}Release a phone number - GET
/telephony/statsTelephony stats - POST
/telephony/providers/{id}/set-defaultSet the default provider - GET
/telephony/callsList calls - POST
/telephony/callsInitiate a call - GET
/telephony/calls/{id}Get call status - POST
/telephony/calls/{id}/hangupHang up a call - POST
/telephony/calls/{id}/transferTransfer a call - POST
/telephony/calls/{id}/holdHold a call - POST
/telephony/calls/{id}/resumeResume a call - GET
/telephony/calls/{id}/eventsGet call event timeline - GET
/telephony/calls/{id}/recordingGet call recording - GET
/telephony/configGet telephony config - GET
/telephony/sip-trunkGet the BYOC SIP trunk - POST
/telephony/sip-trunkCreate or update the SIP trunk - DELETE
/telephony/sip-trunkDelete the SIP trunk - POST
/telephony/sip-trunk/testTest SIP reachability - GET
/numbersList numbers (partner façade, includes webhook wiring) - POST
/numbersBuy a number and wire it to a bot + operator webhooks in one call - PATCH
/numbers/{provider_number_id}Wire/unwire operator webhooks on an existing number - DELETE
/numbers/{provider_number_id}Release a number (carrier-side release + soft delete) - PUT
/numbers/secrets/{ref}Store/rotate a named webhook-signing secret (write-only)
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
| Name | In | Type | Description |
|---|---|---|---|
active_only | query | boolean | Default |
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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | array of object required | |
data[].id | integer | |
data[].provider_type | string | |
data[].display_name | string | |
data[].is_byoc | boolean | |
data[].is_default | boolean | |
data[].is_active | boolean | |
data[].is_validated | boolean | |
data[].last_validated_at | string | null | |
data[].validation_error | string | null | |
data[].config_schema | object | Included on single-provider GET. Accepts any keys |
data[].created_at | string (date-time) | |
data[].updated_at | string (date-time) | |
data[].settings | object | array of any | The provider's stored messaging settings. Never the full |
data[].settings.messaging_profile_id | string | number | boolean | Telnyx messaging profile id. |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
provider_type | string required | Any other value is rejected with 400. One of: |
display_name | string required | |
credentials | object required | Accepts any keys |
is_byoc | boolean | |
is_default | boolean | |
settings | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.id | integer | |
data.provider_type | string | |
data.display_name | string | |
data.is_byoc | boolean | |
data.is_default | boolean | |
data.is_active | boolean | |
data.is_validated | boolean | |
data.last_validated_at | string | null | |
data.validation_error | string | null | |
data.config_schema | object | Included on single-provider GET. Accepts any keys |
data.created_at | string (date-time) | |
data.updated_at | string (date-time) | |
data.settings | object | array of any | The provider's stored messaging settings. Never the full |
data.settings.messaging_profile_id | string | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.id | integer | |
data.provider_type | string | |
data.display_name | string | |
data.is_byoc | boolean | |
data.is_default | boolean | |
data.is_active | boolean | |
data.is_validated | boolean | |
data.last_validated_at | string | null | |
data.validation_error | string | null | |
data.config_schema | object | Included on single-provider GET. Accepts any keys |
data.created_at | string (date-time) | |
data.updated_at | string (date-time) | |
data.settings | object | array of any | The provider's stored messaging settings. Never the full |
data.settings.messaging_profile_id | string | number | boolean | Telnyx messaging profile id. |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Provider id |
Request body application/json required
| Field | Type | Description |
|---|---|---|
display_name | string | |
is_default | boolean | |
is_active | boolean | |
credentials | object | Accepts any keys |
settings | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.id | integer | |
data.provider_type | string | |
data.display_name | string | |
data.is_byoc | boolean | |
data.is_default | boolean | |
data.is_active | boolean | |
data.is_validated | boolean | |
data.last_validated_at | string | null | |
data.validation_error | string | null | |
data.config_schema | object | Included on single-provider GET. Accepts any keys |
data.created_at | string (date-time) | |
data.updated_at | string (date-time) | |
data.settings | object | array of any | The provider's stored messaging settings. Never the full |
data.settings.messaging_profile_id | string | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Provider id |
Responses
204 Deleted
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.valid | boolean | |
data.account_info | object | null | |
data.validated_at | string (date-time) | |
data.error | string | |
data.error_code | string |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | Max items to return (1-100). Default |
offset | query | integer | Number of items to skip. Default |
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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | array of object required | |
data[].id | integer | |
data[].phone_number | string | |
data[].provider_id | integer | |
data[].number_type | string | |
data[].country_code | string | |
data[].capabilities | object | Accepts any keys |
data[].caller_id_name | string | null | |
data[].status | string | |
data[].is_default | boolean | |
data[].monthly_cost | number | 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_id | integer | null | |
data[].assigned_to_type | string | null | |
data[].created_at | string (date-time) | |
meta | object | Offset pagination metadata (in the top-level meta object). |
meta.total | integer | |
meta.limit | integer | |
meta.offset | integer | |
meta.has_more | boolean |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
phone_number | string required | |
provider_id | integer | |
type | string | Default |
options | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.id | integer | |
data.phone_number | string | |
data.provider_id | integer | |
data.number_type | string | |
data.country_code | string | |
data.capabilities | object | Accepts any keys |
data.caller_id_name | string | null | |
data.status | string | |
data.is_default | boolean | |
data.monthly_cost | number | 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_id | integer | null | |
data.assigned_to_type | string | null | |
data.created_at | string (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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
country_code | string | Only Default |
area_code | string | |
contains | string | |
city | string | |
state | string | |
type | string | |
limit | integer |
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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.numbers | array of object | |
data.total_count | integer | |
data.providers | array of object |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.id | integer | |
data.phone_number | string | |
data.provider_id | integer | |
data.number_type | string | |
data.country_code | string | |
data.capabilities | object | Accepts any keys |
data.caller_id_name | string | null | |
data.status | string | |
data.is_default | boolean | |
data.monthly_cost | number | 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_id | integer | null | |
data.assigned_to_type | string | null | |
data.created_at | string (date-time) |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Phone number id |
Request body application/json required
| Field | Type | Description |
|---|---|---|
caller_id_name | string | |
is_default | boolean | |
assigned_to_id | integer | null | |
assigned_to_type | string | |
webhook_url | string | |
voice_enabled | boolean | |
sms_enabled | boolean |
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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.id | integer | |
data.phone_number | string | |
data.provider_id | integer | |
data.number_type | string | |
data.country_code | string | |
data.capabilities | object | Accepts any keys |
data.caller_id_name | string | null | |
data.status | string | |
data.is_default | boolean | |
data.monthly_cost | number | 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_id | integer | null | |
data.assigned_to_type | string | null | |
data.created_at | string (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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer required | Phone number id |
Responses
204 Released
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.active_calls | integer | |
data.today | object | Accepts any keys |
data.phone_numbers | integer | |
data.providers | array of object | |
data.providers[].type | string | |
data.providers[].validated | boolean | |
data.providers[].active | boolean |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
id | path | integer 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.message | string | |
data.provider_id | integer |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | Max items to return (1-100). Default |
offset | query | integer | Number of items to skip. Default |
status | query | string | |
direction | query | string | |
date_from | query | string | |
date_to | query | string | |
phone_number | query | string |
Responses
200 Success
Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | array of object required | |
data[].id | string | Call id (UUID). |
data[].direction | string | |
data[].from | string | |
data[].to | string | |
data[].status | string | |
data[].duration_seconds | integer | null | |
data[].initiated_at | string (date-time) | null | |
data[].answered_at | string (date-time) | null | |
data[].ended_at | string (date-time) | null | |
data[].has_recording | boolean | |
data[].agent_id | integer | null | |
data[].campaign_id | integer | null | |
data[].hangup_cause | string | null | |
data[].created_at | string (date-time) | |
meta | object | Offset pagination metadata (in the top-level meta object). |
meta.total | integer | |
meta.limit | integer | |
meta.offset | integer | |
meta.has_more | boolean |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
to | string required | Destination number (E.164). |
from | string required | Caller-ID number (must be org-owned). |
provider_id | integer | |
caller_id_name | string | |
timeout | integer | Default |
record | boolean | Default |
answering_machine_detection | boolean | Default |
metadata | object | Free-form metadata stored on the call record. The |
metadata.tcpa | object | Per-call TCPA declaration. |
metadata.tcpa.consent_basis | string | 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: |
metadata.tcpa.dnc_san | string | Your National DNC Registry Subscription Account Number. Must match ^[A-Za-z0-9-]{2,50}$; an invalid value is silently dropped. pattern |
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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.call_id | string | |
data.provider_call_id | string | null | |
data.status | string |
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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
id | path | string 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | A telephony call (transformed view). |
data.id | string | Call id (UUID). |
data.direction | string | |
data.from | string | |
data.to | string | |
data.status | string | |
data.duration_seconds | integer | null | |
data.initiated_at | string (date-time) | null | |
data.answered_at | string (date-time) | null | |
data.ended_at | string (date-time) | null | |
data.has_recording | boolean | |
data.agent_id | integer | null | |
data.campaign_id | integer | null | |
data.hangup_cause | string | null | |
data.created_at | string (date-time) |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
id | path | string required | Call id (UUID) |
Request body application/json
| Field | Type | Description |
|---|---|---|
reason | string |
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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.message | string | |
data.call_id | string |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
id | path | string required | Call id (UUID) |
Request body application/json required
| Field | Type | Description |
|---|---|---|
destination | string required | Where to send the call. A phone number must be a plain number: digits with an optional leading |
type | string | Transfer type. Only blind transfer is supported by the underlying carriers; any other value is rejected with 422 TRANSFER_TYPE_UNSUPPORTED. Always |
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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.message | string | |
data.call_id | string |
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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
id | path | string required | Call id (UUID) |
Request body application/json
| Field | Type | Description |
|---|---|---|
hold_music_url | string (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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.message | string | |
data.call_id | string |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
id | path | string 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.message | string | |
data.call_id | string |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
id | path | string 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | array of object required | |
data[].event_type | string | |
data[].event_data | object | Accepts any keys |
data[].timestamp | string (date-time) | |
data[].source | string | null |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
id | path | string 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.call_id | string | |
data.recording_url | string | |
data.duration_seconds | integer | null | |
data.recorded_at | string (date-time) | null |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.supported_providers | array of string | |
data.provider_schemas | object | Accepts any keys |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.configured | boolean | |
data.sip_trunk | object | null | |
data.sip_trunk.id | integer | |
data.sip_trunk.display_name | string | null | |
data.sip_trunk.sip_uri | string | |
data.sip_trunk.sip_auth_type | string | null | |
data.sip_trunk.sip_username | string | null | |
data.sip_trunk.sip_codecs | array of string | |
data.sip_trunk.sip_transport | string | One of: |
data.sip_trunk.sip_outbound_proxy | string | null | |
data.sip_trunk.sip_ip_whitelist | array of string | |
data.sip_trunk.sip_from_domain | string | null | |
data.sip_trunk.is_active | boolean | |
data.sip_trunk.is_validated | boolean | |
data.sip_trunk.last_validated_at | string | null | |
data.sip_trunk.validation_error | string | null | |
data.sip_trunk.created_at | string (date-time) | |
data.sip_trunk.updated_at | string (date-time) |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
sip_uri | string required | sip:host or sip:host:port. |
display_name | string | Default |
sip_auth_type | string | Default |
sip_username | string | |
sip_password | string | write-only |
sip_codecs | array of string | Default |
sip_transport | string | One of: |
sip_outbound_proxy | string | |
sip_ip_whitelist | array of string | |
sip_from_domain | string | |
is_active | boolean | Default |
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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.configured | boolean | |
data.sip_trunk | object | A BYOC SIP trunk (telephony_providers row, provider_type=sip). |
data.sip_trunk.id | integer | |
data.sip_trunk.display_name | string | null | |
data.sip_trunk.sip_uri | string | |
data.sip_trunk.sip_auth_type | string | null | |
data.sip_trunk.sip_username | string | null | |
data.sip_trunk.sip_codecs | array of string | |
data.sip_trunk.sip_transport | string | One of: |
data.sip_trunk.sip_outbound_proxy | string | null | |
data.sip_trunk.sip_ip_whitelist | array of string | |
data.sip_trunk.sip_from_domain | string | null | |
data.sip_trunk.is_active | boolean | |
data.sip_trunk.is_validated | boolean | |
data.sip_trunk.last_validated_at | string | null | |
data.sip_trunk.validation_error | string | null | |
data.sip_trunk.created_at | string (date-time) | |
data.sip_trunk.updated_at | string (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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
sip_uri | string | Omit to test the saved trunk. |
sip_transport | string | One of: |
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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.success | boolean | |
data.message | string | |
data.host | string | |
data.port | integer | |
data.response_time_ms | number | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | array of object required | |
data[].number | string | E.164 phone number Example |
data[].provider_number_id | string | Carrier-side number ID; key for DELETE |
data[].id | integer | |
data[].status | string | |
data[].bot_id | integer | null | Inbound agent answering this number |
data[].inbound_context_url | string | null | |
data[].call_result_url | string | null | |
data[].webhook_secret_ref | string | null | |
data[].created_at | string |
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key | header | string | Unique key per purchase attempt; retries with the same key replay the stored outcome. |
X-Idempotency-Key | header | string | Alias of |
Request body application/json required
| Field | Type | Description |
|---|---|---|
bot_id | integer required | Active agent that answers this number. Its |
number | string | Explicit E.164 number to buy (alternative to area_code) |
area_code | string | 3-digit NANP area code; first available number is bought |
inbound_context_url | string | null | Operator CRM endpoint POSTed {caller_phone, dialed_number} at answer time (HMAC-signed). Keep p99 well under 2s. |
call_result_url | string | null | Operator CRM endpoint POSTed the call result at call end (HMAC-signed). |
webhook_secret_ref | string | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.number | string | E.164 phone number Example |
data.provider_number_id | string | Carrier-side number ID; key for DELETE |
data.id | integer | |
data.status | string | |
data.bot_id | integer | null | Inbound agent answering this number |
data.inbound_context_url | string | null | |
data.call_result_url | string | null | |
data.webhook_secret_ref | string | null | |
data.created_at | string |
201 Success
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.number | string | E.164 phone number Example |
data.provider_number_id | string | Carrier-side number ID; key for DELETE |
data.id | integer | |
data.status | string | |
data.bot_id | integer | null | Inbound agent answering this number |
data.inbound_context_url | string | null | |
data.call_result_url | string | null | |
data.webhook_secret_ref | string | null | |
data.created_at | string |
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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
provider_number_id | path | string required |
Request body application/json required
| Field | Type | Description |
|---|---|---|
inbound_context_url | string | null | Operator CRM endpoint POSTed {caller_phone, dialed_number} at answer time (HMAC-signed). Keep p99 well under 2s. |
call_result_url | string | null | Operator CRM endpoint POSTed the call result at call end (HMAC-signed). |
webhook_secret_ref | string | 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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.number | string | E.164 phone number Example |
data.provider_number_id | string | Carrier-side number ID; key for DELETE |
data.id | integer | |
data.status | string | |
data.bot_id | integer | null | Inbound agent answering this number |
data.inbound_context_url | string | null | |
data.call_result_url | string | null | |
data.webhook_secret_ref | string | null | |
data.created_at | string |
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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
provider_number_id | path | string required |
Responses
204 Released
401 Missing or invalid API key.
Headers: X-Request-ID
Response fields
Shape 1 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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
| Name | In | Type | Description |
|---|---|---|---|
ref | path | string required | pattern |
Request body application/json required
| Field | Type | Description |
|---|---|---|
secret | string required | min length 16 · max length 512 |
Responses
200 Success
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
data | object required | |
data.ok | boolean | |
data.ref | string |
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
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.code | string required | e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED. |
error.message | string required | |
error.retry_after | integer | Seconds; present on 429 only. |
Shape 2 of 2
| Field | Type | Description |
|---|---|---|
success | boolean required | Always |
error | object required | |
error.message | string required | |
error.code | string required | Machine-readable error code, e.g. bad_request, not_found. |
error.details | object | 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