Skip to main content
A phone number connects your agents to the telephone network. Buy a number, bind it to the agents that handle its inbound and outbound calls, then use it as the fromNumber for outbound campaigns.

Base URL

These endpoints are served under the public /v1 prefix.

Authentication

Every request requires a workspace API key in the X-API-Key header.

Endpoints

List phone numbers

GET /v1/telephony/phone-numbers — page through the numbers in your workspace.

Buy phone number

POST /v1/telephony/phone-numbers/buy — buy a number from a provider.

Import phone numbers

POST /v1/telephony/phone-numbers/import/manual — import owned numbers with SIP termination.

Get phone number

GET /v1/telephony/phone-numbers/{id} — retrieve a single number.

Update phone number

PATCH /v1/telephony/phone-numbers/{id} — bind a number to agents.

Phone number fields

SIP configuration

sipConfig describes the SIP trunk settings for the number.

Buy a phone number

POST /v1/telephony/phone-numbers/buy requires both fields below.
Contact Persistence support for the provider values available to your workspace.
The response returns the created phone number. A 402 indicates the purchase could not be completed for billing reasons.

Bind a number to agents

PATCH /v1/telephony/phone-numbers/{id} updates a number and controls which agents handle its calls. Agent IDs come from the Agents API. After binding, isInboundReady and isOutboundReady on the phone number reflect whether the number is ready to handle calls in each direction.

Pagination and sorting

GET /v1/telephony/phone-numbers accepts these query parameters. The response wraps the results in a paged object containing items, page, perPage, totalCount, column, order, and searchText.

Errors

Errors return a code and an error message.