https://retellai.com/?utm_source=discord&utm_medium=seo logo
is there an api to check area code availability
# ❓・ai-evy-support
a
@AI Evy is there an api to check area code availability?
a
Thanks for tagging me @andreas.marblism. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available documentation, I don't have information about a specific API endpoint to check area code availability before purchasing a phone number. The Create Phone Number API allows you to specify an
area_code
parameter when purchasing a new number [(1) ]() , but the documentation doesn't mention a separate endpoint to query available area codes beforehand . When creating a phone number, you can include the area code like this:
Copy code
javascript
import Retell from 'retell-sdk';

const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;

const phoneNumberResponse = await client.phoneNumber.create() ;
The response includes the
area_code
field showing which area code was assigned . For more detailed information about area code availability checking, I'd recommend: - Checking the [Create Phone Number]() documentation - Visiting [Contact Sales]() - Visiting [) Would you like a general answer about how area code availability typically works with telephony APIs?
​ To learn more, see the sources I considered: [[1] Create Phone Number](https://docs.retellai.com/api-references/create-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.