SIP trunks
Add number to SIP trunk API
Add a phone number from your carrier to a SIP trunk via POST /trunk/trunks//numbers, optionally with the agent that answers it.
POST
cURL
e164 must be in E.164 format with the plus. Set destination_key to the called number exactly as your carrier sends it in the SIP Request-URI, without a leading +; for most carriers that is the E.164 digits.Next steps
- Assign an agent to answer inbound calls to the number.
- To call out from the number, set the agent’s telephony provider to
trunkwith the Update agent API and pass the number asfrom_phone_numbertoPOST /call.
Authorizations
Body
application/json
The called number exactly as your carrier puts it in the SIP Request-URI of an inbound call, without a leading +. Required by the API; for most carriers it is the E.164 number's digits (12025550143), which is what the dashboard fills in. An inbound call matches the number on its E.164 form first, then on this key.
Minimum string length:
1Example:
"12025550143"
Response
The added number