fromNumber for outbound campaigns.
Base URL
These endpoints are served under the public
/v1 prefix.Authentication
Every request requires a workspace API key in theX-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.
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 acode and an error message.