Liquidsushi
04/29/2026, 9:17 PMAI Evy
04/29/2026, 9:17 PMAI Evy
04/29/2026, 9:17 PMAI Evy
04/29/2026, 9:17 PM/import-phone-number endpoint.
To import a phone number, you'll need to provide the phone number in E.164 format and a termination URI that uniquely identifies your SIP trunk. For example, with Twilio elastic SIP trunks, the termination URI always ends with ".pstn.twilio.com".
Here's the code example for importing a phone number:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: process.env['RETELL_API_KEY'], // This is the default and can be omitted
}) ;
const phoneNumberResponse = await client.phoneNumber.import({
phone_number: '+14157774444',
termination_uri: 'someuri.pstn.twilio.com',
}) ;
console.log(phoneNumberResponse.inbound_agent_id) ;
You can also configure optional authentication credentials (sip_trunk_auth_username and sip_trunk_auth_password) and bind agents to the number for inbound or outbound calls.
While Zendesk integration is mentioned as available through custom API integrations or Retell's integration partners [(2) ]() , the specific process for porting numbers from Zendesk would depend on your telephony provider setup.AI Evy
04/29/2026, 9:17 PM