v1
latestOpenAPI 3.0.12026-07-226992320.0 KBPhone Numbers
Create Phone Number
Purchases and provisions a new phone number for your account. Provide a specific phoneNumber in +E.164 format, or a countryCode (optionally areaCode) to auto-select one. Returns the provisioned number, including its sipPhoneNumber for subsequent get, update, and delete calls.
post/v1/phone-numbers
Request body
Example request
{
"friendlyName": "Support Line - US",
"countryCode": "US",
"areaCode": 415,
"phoneNumber": "+14155552671",
"inboundAgentId": "awTw7UKhOsLGiDbt",
"outboundAgentId": "awTw7UKhOsLGiDbt",
"outboundPhoneNumber": "+14155552671"
}Response
Created
Example response
{
"sipPhoneNumber": "+14155552671",
"provider": "twilio",
"inboundAgentId": "agent_D5D0p7TUs66TTAEAx",
"outboundAgentId": "agent_D5D0p7TUs66TTAEAx",
"outboundPhoneNumber": "+14155552671",
"active": true,
"friendlyName": "Support Line - US"
}