https://retellai.com/?utm_source=discord&utm_medium=seo logo
Hi team, I’m trying to trigger a call using the Re...
# ❓・ai-evy-support
t
@AI Evy Hi team, I’m trying to trigger a call using the Retell API via an external tool (n8n), but I keep getting a
404 Not Found
error when calling the
/v2/phone-call
endpoint. Here’s what I’ve checked: - ✅ API key is active and sent with the
Bearer
Authorization header - ✅ Content-Type is set to
application/json
- ✅ Endpoint used:
https://api.retellai.com/v2/phone-call
- ✅ JSON payload is properly structured - ✅ Agent ID used: starts with
agent_c670c2...
I’m trying to trigger the Agent, but I’m unsure if this agent is supported for programmatic calls. Could someone please confirm: 1. Is Agent compatible with
/v2/phone-call
? 2. Are there any permission or plan restrictions I should be aware of? 3. Is there a working sample payload or curl snippet for testing AIEVA via API? Thanks a lot 🙏
a
Thanks for tagging me @tejas_17708. I'll look through relevant sources and get back to you shortly.
### Answer The issue is with your endpoint URL. The correct endpoint for creating outbound phone calls is
/v2/create-phone-call
, not
/v2/phone-call
[(1) ]() . Here's the correct setup for n8n: Correct URL: ` Sample JavaScript code 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) ;
For n8n HTTP Request node: - Method: POST - URL: ` - Headers: -
Authorization: Bearer YOUR_RETELL_API_KEY
-
Content-Type: application/json
- Required Body fields: - `from_number`: Your Retell number in E.164 format - `to_number`: The number to call in E.164 format - Optional fields: - `override_agent_id`: Your agent ID - `metadata`: Arbitrary object for storage To answer your specific questions: 1. Agent compatibility: Any agent can be used with the create phone call endpoint via the
override_agent_id
parameter 2. Requirements: The
from_number
must be a number purchased from Retell or imported to Retell, and if using a Retell-purchased number, only US numbers are supported as destinations 3. Common 404 causes: Based on community discussions, 404 errors often occur when the
from_number
isn't properly configured as a Retell number [(2) ]() , or when there are account credit issues [(7) ]()
​ 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) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
n
Pay attention to the following, when creating a call or registering a call, if your To/From numbers don't match the agent ones - you may get a 404 error.