HTTPs request error 404

Im trying to create a https request using retell AI, I have correct API endpoint for POST https://api.retellai.com/v2/create-phone-call

Your screenshot showing a GET request!!

Also note that your screenshot is showing the Bearer key. You want to keep that secret.

As mohamed3nan mentioned you’re doing a GET, you may want to instead do a POST if you’re trying to create something.

I get the same when its post, Checked the retell docs for the post end point but doesnt like it

According to their docs
This is how you call this endpoint

Still getting the same error message :frowning:

can you please post a screenshot about the error

Expression using

Https Request

yes where is the error?!

Sorry error is below

Am basically getting n8n https request to talk to my AI voice agent but the API end point for retell doesn’t seem to work

Dude… I hope you disable that Bearer key :key: !

Critical , or someone may use it.

Could you please copy the node I shared here:

Paste it and try using it, then let me know if you get any errors.
I tested it on my end since you shared the API key, and the error I received was that the number is not valid.

Updated this but still get below error

So pasted that into the body an now i get the below, I’ve take out the api key to share

I think you have to change the body from raw to json and the structure should look like this :

{
  "from_number": "+15551234567",
  "to_number": "+15557654321",
  "agent_id": "your-agent-id",
  "metadata": {
    "customer_id": "12345",
    "order_id": "98765"
  },
  "retell_llm_dynamic_variables": {
    "user_name": "Alice",
    "preferred_product": "Widget"
  },
  "agent_version": "v1.0"
}

P.S hope you deleted and disabled that key, couse someone else may use it.

Hi Mohamed, I had the same problem and your solution worked for me, really appreciate your help!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.