https://retellai.com/?utm_source=discord&utm_medium=seo logo
im trying to invoke /create-phone-call but keep ge...
# ❓・ai-evy-support
n
@AI Evy im trying to invoke /create-phone-call but keep getting error 404 despite providing a agent override ID and version: 1
a
Thanks for tagging me @normanluis. I'll look through relevant sources and get back to you shortly.
### Answer For the Create Phone Call endpoint, you should use
POST /v2/create-phone-call
[(1) ]() . The correct URL is ` . Here's the exact structure from the documentation:
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 required fields for the API call are : - `from_number`: Your Retell number in E.164 format - `to_number`: The number to call in E.164 format - `override_agent_id`: Your agent ID (optional override) Common causes of 404 errors include [(2) ]() , [(3) ]() : - Using an incorrect phone number that isn't connected to your account [(2) ]() - API key issues - Invisible whitespace at the end of the URL [(4) ]() - Using a
from_number
that isn't a Retell AI phone number [(3) ]() Make sure your
from_number
is a phone number purchased from or imported to Retell [(1) ]() , and verify your agent is published and accessible [(5) ]() .
​ To learn more, see the sources I considered: [[1] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[2] Hi ,](https://discord.com/channels/1186424376300679209/1397614768440742012) [[3] Getting a 404 error when trying to use create-phone-call through HTTP in make.com](https://discord.com/channels/1186424376300679209/1370700007765704785) [[4] Discord message from @dannykimes on 2025-07-29](https://discord.com/channels/1186424376300679209/1294891368505937952/1399582499407003751) [[5] URGENT: 404 Error - Cannot Retrieve Agent agent_24a7b7382eca64e0fcbe118931 via API](https://discord.com/channels/1186424376300679209/1382991998654480505) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
n
i opened my agent on the dashboard and clicked publish, how do i confirm the agent is now published?
a
Thanks for the feedback, glad I was helpful.