v1
latestOpenAPI 3.0.12026-07-226992320.0 KBPhone Numbers
Import Phone Number
Imports an existing phone number via SIP trunking (BYO). Provide the number in +E.164 format along with SIP credentials (trunkUsername, trunkPassword, terminationSipURI). Returns the imported number, including its sipPhoneNumber.
post/v1/phone-numbers/import
Request body
Example request
{
"friendlyName": "BYO - Main Office Line",
"phoneNumber": "+14155552671",
"inboundAgentId": "awTw7UKhOsLGiDbt",
"outboundAgentId": "awTw7UKhOsLGiDbt",
"trunkUsername": "my_trunk_user",
"trunkPassword": "tr!nkP@ssword",
"terminationSipURI": "sip.telnyx.com",
"outboundPhoneNumber": "+14155552671"
}Response
Created
Example response
{
"sipPhoneNumber": "+14155552671",
"inboundAgentId": "D5D0p7TUs66TTAEAx",
"outboundAgentId": "D5D0p7TUs66TTAEAx",
"outboundPhoneNumber": "+14155552671",
"active": true,
"terminationSipURI": "sip.telnyx.com",
"friendlyName": "Support Line - US"
}