https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hello your URL to initiate phone calls isn't worki...
# ❓・ai-evy-support
r
@AI Evy Hello your URL to initiate phone calls isn't working: https://api.retellai.com/v2/create-phone-call I created a workflow in N8n which ends in sending a HTTP request to the URL and I continue to get 404 ERRORS resources not found. The API key is correct. I also tried to test in your documentation page and also get 404 ERROR.
a
Thanks for tagging me @robg6821. I'll look through relevant sources and get back to you shortly.
### Answer The 404 error you're encountering with the ` endpoint is a common issue that typically relates to phone number configuration [(1) ]() [(2) ]() . Based on the official documentation, the correct endpoint and request format should be [(3) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneCallResponse = await client.call.createPhoneCall({
 from_number: '+14157774444',
 to_number: '+12137774445',
}) ;
console.log(phoneCallResponse.agent_id) ;
The most common cause of this 404 error is that the
from_number
must be a phone number you own through Retell AI [(2) ]() . One user resolved their 404 error after realizing "It needed the from_number var to be a RetellAI phone number, which I hadn't given it" . Another user found that properly configuring their phone number (in their case, a Telnyx number connected to Retell) resolved the 404 error [(1) ]() [(2) ]() . Make sure: 1. Your
from_number
is actually a Retell AI phone number you own [(2) ]() 2. Your phone number is properly configured and connected to Retell [(1) ]() 3. Your Authorization header is correctly formatted as "Bearer YOUR_API_KEY" [(3) ]() If you're still getting 404 errors after verifying your phone number configuration, you may want to check that your workspace has the proper API access enabled [(1) ]() .
​ To learn more, see the sources I considered: [[1] V2 create-phone-call endpoint returns 404 Not Found — API Access?](https://discord.com/channels/1186424376300679209/1384549347605221438) [[2] Discord message from @kamalchd on 2025-08-13](https://discord.com/channels/1186424376300679209/1186462578310910112/1405244004936712222) [[3] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
The from number is configured like this +1 (856)-331-5437 will that mess it up? @User
@AI Evy
a
Thanks for the follow-up, @robg6821. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[2] Getting a 404 error when trying to use create-phone-call through HTTP in make.com](https://discord.com/channels/1186424376300679209/1370700007765704785) ​
### Answer Yes, that phone number format will cause issues [(1) ]() . The Retell AI API requires phone numbers in E.164 format, which means no spaces, parentheses, or dashes . Your number
+1 (856) -331-5437
should be formatted as
+18563315437
. According to the documentation, the
from_number
must be "The number you own in E.164 format (+country code, then number with no space, no special characters) , used as the unique identifier for phone number APIs" . Here's the correct format for your API request:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneCallResponse = await client.call.createPhoneCall({
 from_number: '+18563315437',
 to_number: '+12137774445',
}) ;
The E.164 format requirement applies to both the
from_number
and
to_number
fields . Make sure your phone number is also properly configured in your Retell dashboard and that it's a number you actually own through Retell [(2) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
Fixing the from number format fixed the issue @AI Evy
a
Thanks for the follow-up, @robg6821. I'll get back to you soon.
### Answer Great to hear that fixing the phone number format resolved your 404 error! This confirms what the Retell AI documentation specifies - phone numbers must be in E.164 format [(1) ]() . For future reference, the Create Phone Call API requires the
from_number
to be "The number you own in E.164 format. Must be a number purchased from Retell or imported to Retell" . The E.164 format means the country code followed by the number with no spaces, parentheses, or special characters . Your corrected format (+18563315437 instead of +1 (856) -331-5437) now properly follows this requirement, which is why the API call is working successfully. Thanks for confirming the solution - this will help other users who encounter the same formatting issue!
​ To learn more, see the sources I considered: [[1] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.