Browse the docs

Deploy

Phone numbers

Every number of the account is in GET/v1/phones, whichever way it came in: a SIP trunk, or an import from Twilio or Telnyx.

The phone object

FieldMeaning
idThe phoneId campaigns and updates use
phoneNumberE.164
providersip, twilio or telnyx
isOutboundAllowedWhether a campaign can dial from it
agentThe agent answering inbound calls (id, name)
entityIdIts entity, or null when shared

Choose who answers

PATCH/v1/phones/{phoneId} sets the agent that answers inbound calls on a number, whatever its provider; null unassigns it. The same request moves the number to an entity.

JSON
{ "agentId": "550e8400-e29b-41d4-a716-446655440000" }

Connect a provider

GET/v1/phones/sip lists the SIP numbers only, and PATCH/v1/phones/sip/{phoneId} is an alias of the update above.