https://retellai.com/?utm_source=discord&utm_medium=seo logo
is there any api documentation to retrieve the pho...
# 💬・general
a
@AI Evy is there any api documentation to retrieve the phone numbers available to purchase based on an area code? There is only an endpoint to Create Phone Number that asks you to enter a phone number. But I need to know what numbers are available before so I can select it before making the call.
a
Thanks for tagging me @amiaigenerated_15069. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Get Phone Number](https://docs.retellai.com/api-references/get-phone-number) [[2] List Phone Numbers](https://docs.retellai.com/api-references/list-phone-numbers) [[3] Purchase phone number](https://docs.retellai.com/deploy/purchase-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Based on the available API documentation, there isn't a specific endpoint to retrieve available phone numbers for purchase by area code [(1) ]() [(2) ]() [(3) ]() . The available endpoints are: - Get Phone Number - retrieves details of a specific phone number you already own [(1) ]() - List Phone Numbers - lists all phone numbers you currently own [(2) ]() - Create Phone Number - purchases a new number by specifying an area code [(3) ]() The Create Phone Number API works by specifying an
area_code
parameter (3-digit integer format) and Retell automatically assigns an available number from that area code . You don't select a specific number - the system assigns one from the requested area code . Currently, Retell only supports US area codes [(1) ]() [(3) ]() . When you create a phone number, you provide the area code you want, and the system will assign an available number from that area code automatically [(3) ]() . If you need to see available numbers before purchase, you might want to contact Retell support directly, as this functionality isn't documented in the current API reference. Would you like me to provide more details about how the Create Phone Number endpoint works with area codes?