https://retellai.com/?utm_source=discord&utm_medium=seo logo
How do i set to E
# ❓・ai-evy-support
b
@AI Evy How do i set to E.164 Caller format
a
Thanks for tagging me @blekkk_. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Create Outbound SMS](https://docs.retellai.com/api-references/create-sms-chat) [[2] Create Batch calls](https://docs.retellai.com/deploy/make-batch-call) [[3] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) [[4] Not able to do Outbound Calls](https://discord.com/channels/1186424376300679209/1280655741723611246) [[5] How can I create an outbound call](https://retell.discourse.group/t/how-can-i-create-an-outbound-call/132) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer E.164 format is the international telephone numbering standard that Retell AI requires for phone numbers. [(1) ]() [(2) ]() [(3) ]() The format is: +[country code][area code][phone number] with no spaces, dashes, or parentheses. [(4) ]() For example: - **Correct**:
"+14157774444"
[(1) ]() - **Incorrect**:
"+1-415-777-4444"
or
"+1 415 777 4444"
[(4) ]() When making outbound calls, both
from_number
and
to_number
must be in E.164 format: [(1) ]() [(3) ]()
Copy code
javascript
const phoneCallResponse = await client.call.createPhoneCall({
 from_number: '+14157774444',
 to_number: '+12137774445',
}) ;
[(5) ]() For batch calls, ensure your CSV includes phone numbers in E.164 format in the "phone number" column. [(2) ]() If you need to bypass E.164 validation (only when using custom telephony) , add a column named
ignore e164 validation
with value
true
. **
b
@AI Evy my calls need to be formatted from local format to E.174
a
### Answer I don't have specific documentation about automatically converting local format phone numbers to E.164 format within Retell AI. However, you'll need to convert your phone numbers to E.164 format before passing them to Retell AI's API. The E.164 format is required for phone numbers in Retell AI [(1) ]() - it must be: +[country code][number with no spaces or special characters] [(2) ]() [(3) ]() For example: - US number:
"+14157774444"
[(2) ]() - The format must include the "+" symbol [(1) ]() If you're working with batch calls and have phone numbers that aren't in E.164 format, you can add a column named
ignore e164 validation
with value
true
in your CSV, but this only applies when using custom telephony, not Retell Telephony [(4) ]() [(5) ]() . For converting local format numbers to E.164, you'll need to handle this conversion in your own code before making API calls to Retell AI. This typically involves: 1. Adding the country code prefix 2. Removing any formatting characters (spaces, dashes, parentheses) 3. Adding the "+" prefix Would you like guidance on how to implement phone number conversion in your specific programming environment? **
Thanks for the follow-up, @blekkk_. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Discord message from @eusoualex on 2025-09-08](https://discord.com/channels/1186424376300679209/1186462578310910112/1414752318657794221) [[2] Create Phone Number](https://docs.retellai.com/api-references/create-phone-number) [[3] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) [[4] Create Batch calls](https://docs.retellai.com/deploy/make-batch-call) [[5] Create Batch Call](https://docs.retellai.com/api-references/create-batch-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
Yes
@AI Evy yes
a
Thanks for the follow-up, @blekkk_. I'll get back to you soon.
### Answer I can help you convert local format phone numbers to E.164 format for use with Retell AI. While Retell AI doesn't provide built-in conversion functionality, you'll need to handle this conversion in your code before making API calls. Here's how to approach it: ### E.164 Format Requirements Retell AI requires phone numbers in E.164 format: +[country code][number with no spaces or special characters] [(1) ]() [(2) ]() [(3) ]() For example:
"+14157774444"
[(1) ]() [(2) ]() ### Conversion Approach You'll need to implement conversion logic that: 1. Identifies the country code (if not present) 2. Removes formatting characters (spaces, dashes, parentheses) 3. Adds the "+" prefix 4. Combines country code + area code + number ### Example Implementation (JavaScript/Node.js)
Copy code
javascript
// Example conversion function
function convertToE164(phoneNumber, defaultCountryCode = '1') {
  // Remove all non-numeric characters
  let cleaned = phoneNumber.replace(/\D/g, '') ;
  
  // Add country code if not present
  if (!cleaned.startsWith(defaultCountryCode) ) {
    cleaned = defaultCountryCode + cleaned;
  }
  
  // Add + prefix
  return '+' + cleaned;
}

// Usage with Retell AI
const localNumber = '(415) 777-4444';
const e164Number = convertToE164(localNumber, '1') ;

const phoneCallResponse = await client.call.createPhoneCall({
  from_number: '+14157774444',
  to_number: e164Number,
}) ;
​ To learn more, see the sources I considered: [[1] Create Outbound SMS](https://docs.retellai.com/api-references/create-sms-chat) [[2] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[3] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) [[4] How can I create an outbound call](https://retell.discourse.group/t/how-can-i-create-an-outbound-call/132) ​
[(4) ]() ### For Batch Calls If you're using batch calls and need to bypass E.164 validation temporarily (only with custom telephony) , you can add a column
ignore e164 validation
with value
true
in your CSV [(2) ]() However, it's best practice to convert numbers to E.164 format before uploading. **
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.