We need help(in n8n)

when we build a ai calling agent we will connect the by the http request that will redirect to the retell.ai to call the client but in that i am getting the The resource you are requesting could not be found

Hi @Narendra1

The resource you are requesting could not be found error typically means:

  • The endpoint URL is incorrect,
  • The HTTP method is wrong,
  • Or you’re missing required headers or parameters.

If you’re trying to initiate a phone call using Retell.ai, try the following:

  1. Method: POST

  2. URL: https://api.retell.ai/v2/sample-calls

  3. Authentication:
    Choose None in the node, but set the header manually.

  4. Headers:
    Add the following two headers:
    Authorization: Bearer YOUR_API_KEY
    Content-Type: application/json

  5. Body Content:
    Switch to RAW mode and set Content-Type to JSON. Use this structure:

{
“phone_number”: “+1234567890”,
“agent_id”: “your-agent-id”
}

Replace +1234567890 with the real number and "your-agent-id" with your actual agent ID from Retell.ai.