https://retellai.com/?utm_source=discord&utm_medium=seo logo
c
@AI Evy Hi! I'm trying to create outbound phone calls via the API from n8n but keep getting "The resource you are requesting could not be found" error. My setup: Endpoint: https://api.retellai.com/v2/create-phone-call Method: POST Using Bearer token authentication Agent ID and phone number are both verified in my dashboard The phone number has an outbound agent assigned Request body format: json{ "agent_id": "agent_xxxxx", "from_number": "+1xxxxxxxxxx", "to_number": "+1xxxxxxxxxx" } Everything looks correct in my dashboard. What could cause this "resource not found" error? Is there something I need to activate or configure for API access?
a
Thanks for tagging me @cosmickai_. 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 phone calls is ` not ` [(1) ]() . Here's the correct format for creating outbound phone calls:
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) ;
Your request body format looks correct, but make sure you're using the right endpoint URL . One additional consideration from the community: if your from_number is assigned to an agent in the dashboard, it will override your agent_id parameter in the API call [(2) ]() . Make sure the from_number isn't bound to a different agent than the one you're trying to use.
​ To learn more, see the sources I considered: [[1] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[2] Agent_ID problem (by using api)](https://discord.com/channels/1186424376300679209/1422374498459717633) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
Thanks! Can you clarify the exact REST API endpoint URL? Should it be: https://api.retellai.com/v2/create-phone-call https://api.retellai.com/v2/call/create-phone-call Something else? The formatting in your previous message had some %60 characters so I want to make sure I have it exactly right.
@AI Evy Post this in the Discord: Thanks! Can you clarify the exact REST API endpoint URL? Should it be: https://api.retellai.com/v2/create-phone-call https://api.retellai.com/v2/call/create-phone-call Something else? The formatting in your previous message had some %60 characters so I want to make sure I have it exactly right.
a
Thanks for the follow-up, @cosmickai_. I'll get back to you soon.
### Answer Based on the official documentation, the correct REST API endpoint for creating phone calls is: ** [(1) ]() Your request structure should look like this:
Copy code
json
{
  "from_number": "+14157774444",
  "to_number": "+12137774445",
  "agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD"
}
Make sure you're using: - Method: POST - Authorization header: "Bearer YOUR_API_KEY" - Content-Type: application/json The endpoint you were originally using (` is missing the
/call/
path segment, which would cause the "resource not found" error you encountered .
​ 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.
c
@AI Evy ive tried everything and claude is telling me at this point to email someone from retell Ai could you provide me with a email or phone number
a
Thanks for the follow-up, @cosmickai_. I'll get back to you soon.
### Answer You can contact Retell AI support at compliance@retellai.com [(1) ]() . You can also visit: - [Contact Sales]() - [) Based on community discussions, other users have successfully contacted support through these channels and received responses [(2) ]() .
​ To learn more, see the sources I considered: [[1] Retell | Privacy Policy](https://www.retellai.com/legal/privacy-policy) [[2] Multiple call_ids for the same call with some showing disconnects and others completing](https://discord.com/channels/1186424376300679209/1401479742523441214) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.