https://retellai.com/?utm_source=discord&utm_medium=seo logo
Having Issues With The List-Calls Api
# ❓・bug-report
a
It sounds like the curl command is correct, so the 404 in n8n is almost certainly the URL path or method not matching what Retell expects. I can help you map the exact working curl format into the n8n HTTP node so it hits the right endpoint. One quick check: are you using the identical base URL and version path from the curl (e.g., /v1/calls or /api/v1/calls)? Even a small mismatch triggers 404. Send me the exact curl or your node URL and I’ll fix it for you. @peter.pk07
p
Hi @Adrian Praise, thank you so much for getting back to me. The exact URL I'm using is: https://api.retellai.com/v2/list-calls. The exact curl command I'm using is: curl --request POST \ --url https://api.retellai.com/v2/list-calls \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "filter_criteria": { "agent_id": [ "agent_oBeDLoLOeuAbiuaMFXRtDOLriT12345" ], "call_status": [ "ended" ], "call_type": [ "phone_call" ], "direction": [ "inbound" ], "user_sentiment": [ "Positive" ], "call_successful": [ true ], "start_timestamp": { "upper_threshold": 1738475421000, "lower_threshold": 1738475411000 } }, "sort_order": "descending", "limit": 50, "pagination_key": "" }' Thanks in advance.
a
Thanks for sharing the exact URL and curl — that helps a lot. Since the curl works but n8n returns 404, the issue is almost always how n8n formats the request, not the endpoint itself. The /v2/list-calls path is correct, so my approach will be to replicate the curl exactly inside n8n: same POST method, same headers, and JSON body — then check for hidden formatting issues like missing Content-Type, whitespace in the URL, or n8n converting the body to form-data. I can fix this for you quickly and show you the correct n8n setup step by step. We can move privately and I’ll help you get it working. @peter.pk07
p
You are the best! Im open to that. I will DM you right now.