This guide will walk through how to purchase a number from Retell. The numbers are managed by Retell, so you don’t have to worry about the telephony infrastructure.
Currently we only support purchase of US numbers and only support making domestic calls from the platform. If you are looking to use numbers from other countries, or to make international calls, or to use your own telephony provider, check out Custom Telephony guide.
Phone numbers are yours once purchased, and can be used indefinitely. Find numbers you own here.
You can assign different inbound and outbound agent to the number.
If you don’t want user to be able to call this number (maybe you are doing outbound and don’t want callbacks), you can leave inbound_agent_id unset.
NodePython
constphoneNumberResponse=awaitretell.phoneNumber.create({inbound_agent_id:"oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",// replace with the agent id you want to assignoutbound_agent_id:"oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",// replace with the agent id you want to assign});console.log(phoneNumberResponse);