https://retellai.com/?utm_source=discord&utm_medium=seo logo
I am getting "The resource you are requesting coul...
# ❓・ai-evy-support
m
@AI Evy I am getting "The resource you are requesting could not be found" this error when I am trying to add my voice agent in n8n using http request node and I am using the post https://api.retellai.com/v2/create-phone-call.
a
Thanks for tagging me @muhammadsaqlain_73001. I'll look through relevant sources and get back to you shortly.
### Answer The 404 "Not Found" error when calling the create-phone-call endpoint typically occurs due to several common issues. Based on community discussions, this usually means one of these problems: the phone number is not connected correctly, the API key is wrong, or the agent ID is incorrect [(1) ]() [(2) ]() [(3) ]() . For the create-phone-call endpoint, ensure you're using the correct request format [(4) ]() :
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) ;
When using HTTP requests directly (like in n8n) , make sure you're using POST method and include these headers [(3) ]() : - Authorization: Bearer YOUR_API_KEY - Content-Type: application/json The request body should follow this format :
Copy code
json
{
  "from_number": "+14157774444",
  "to_number": "+12137774445",
  "override_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD"
}
Common troubleshooting steps [(2) ]() [(3) ]() : 1. Verify your phone number is properly configured in your Retell dashboard 2. Ensure your API key has the correct permissions 3. Confirm your agent ID exists and is active 4. Check that phone numbers are in E.164 format (+country code followed by number) If you're using a custom SIP provider like Telnyx, make sure it's properly connected following the integration documentation [(2) ]() .
​ To learn more, see the sources I considered: [[1] Discord message from @taafy on 2025-08-24](https://discord.com/channels/1186424376300679209/1186462578310910112/1409280648685817877) [[2] V2 create-phone-call endpoint returns 404 Not Found — API Access?](https://discord.com/channels/1186424376300679209/1384549347605221438) [[3] Is https://api.retellai.com/v2/create-phone-call endpoint working?](https://discord.com/channels/1186424376300679209/1399425818010194091) [[4] 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.
m
If my agent is not published yet and I have not assigned the number yet so could this be the reason of this error?
@AI Evy If my agent is not published yet and I have not assigned the number yet so could this be the reason of this error?
a
Thanks for the follow-up, @muhammadsaqlain_73001. I'll get back to you soon.
### Answer Yes, both of these issues could be causing your 404 error. For the create-phone-call endpoint, you need: 1. **A valid phone number**: The
from_number
parameter requires a number that you own in E.164 format and must be purchased from Retell or imported to Retell [(1) ]() . 2. **A published agent**: Based on the community discussions, unpublished agents can cause API access issues, including 404 errors when trying to retrieve or use them [(2) ]() . When creating a phone call, the API requires a valid
from_number
that's properly configured in your account [(1) ]() . If you haven't assigned or purchased a phone number yet, the API won't be able to process your request. For the agent, while you can use the
override_agent_id
parameter in your request body , the agent needs to be accessible via the API. Community reports show that unpublished agents sometimes don't appear in API calls, returning "Found agents: 0" and causing 404 errors [(2) ]() . To resolve this: 1. Purchase or import a phone number through the Retell dashboard 2. Publish your agent 3. Ensure your phone number is properly bound to an agent using the inbound_agent_id or outbound_agent_id parameters [(3) ]() [(4) ]() You can bind agents to phone numbers when creating [(3) ]() or updating [(4) ]() them using parameters like
inbound_agent_id
and
outbound_agent_id
.
​ To learn more, see the sources I considered: [[1] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[2] Agent exists and is published, but API returns "Found agents: 0"](https://discord.com/channels/1186424376300679209/1392892371313754164) [[3] Create Phone Number](https://docs.retellai.com/api-references/create-phone-number) [[4] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.