Justin Leon
01/19/2026, 3:46 PMAI Evy
01/19/2026, 3:46 PMAI Evy
01/19/2026, 3:47 PMjavascript
const phoneNumberResponse = await retell.phoneNumber.create({
inbound_agent_id: "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD", // replace with the agent id you want to assign
outbound_agent_id: "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD", // replace with the agent id you want to assign
}) ;
console.log(phoneNumberResponse) ;
You can assign different inbound and outbound agents to the number.
## Updating an Existing Number
If you need to change the agent assignment later, use the Update Phone Number API: [(2) ]()
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
inbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
nickname: 'Frontdesk Number',
outbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;
console.log(phoneNumberResponse.inbound_agent_id) ;
Phone numbers are yours once purchased and can be used indefinitely. [(1) ]()AI Evy
01/19/2026, 3:47 PMAI Evy
01/19/2026, 3:47 PMJustin Leon
01/19/2026, 4:06 PMJustin Leon
01/19/2026, 4:16 PMAI Evy
01/19/2026, 4:16 PMAI Evy
01/19/2026, 4:17 PMretell-twilio or retell-telnyx [(1) ]()
- These numbers are designed to bind to Retell agents for inbound and outbound calls
- You can use the Register Phone Call API to integrate with custom telephony setups, but this is for routing calls to Retell agents [(2) ]()
For the reverse scenario—using Retell numbers with external services while still making calls through Retell—the sources don't provide clear guidance on this use case.
Check out these potentially useful sources:
- [Create Phone Number]()
- [Register Phone Call]()
- [Import Phone Number]()
Would you like me to provide a general answer based on my knowledge instead?AI Evy
01/19/2026, 4:17 PMAI Evy
01/19/2026, 4:17 PM