https://retellai.com/?utm_source=discord&utm_medium=seo logo
Help: api.retell.ai DNS in Turkey + 404 on agent e...
# ❓・bug-report
h
Hey folks! We’re integrating retell-sdk and running into two quick blockers: api.retell.ai doesn’t resolve from Turkey (DNS errors like getaddrinfo ENOTFOUND). api.retellai.com does resolve, but agent creation endpoints return 404 (e.g., “Cannot POST /v2/agent”). Could someone confirm: The canonical API base we should use? The correct agent creation endpoint path/version? Any known regional DNS/WAF issue from Türkiye or recommended workaround (alt host, IP, proxy, allowlist)? Context: Node.js v22.18.0, retell-sdk 4.41.0, deployed on Vercel.
@User
o
If you want to create an agent you can use this API end point https://api.retellai.com/create-agent
let me know if you still get the same error
n
Hi, thanks for the information. I've updated my code to use the endpoint you provided: POST https://api.retellai.com/create-agent Unfortunately, this still results in a error. I am using a simple, legacy payload structure as the provided documentation link (docs.retellai.com) is not working. To eliminate any confusion, could you please provide a complete and working cURL example for creating an agent? That would be extremely helpful. Also, could you confirm if the DNS issue with api.retellai.com is expected? My system still cannot resolve that domain. Thank you for your help. https://cdn.discordapp.com/attachments/1409107175602917448/1409273833801912390/Ekran_Resmi_2025-08-24_23.29.18.png?ex=68acc809&is=68ab7689&hm=69d517ebf18b84094d014e48cfa472322a850ffd4ac6cc67343ef63344297d13&
o
curl --request POST \ --url https://api.retellai.com/create-agent \ --header 'Authorization: Bearer key_9' \ --header 'Content-Type: application/json' \ --data '{ "response_engine": { "type": "retell-llm", "llm_id": "llm_e" }, "voice_id": "11labs-Adrian" }'
Change the Key , llm_id , with a vaild one that already exit , and make sure the api key is correct , and the voice id is correct and there is now white spaces.
h
thx omar we handle it and we ll try again and let you know if it works @nissssssssssssssssy pls update here
n
hi omar, I can successfully create an LLM via /create-llm, but when I try to create an agent via POST /agents, I get 404 Not Found. Here’s what I’m using: Base URL: https://api.retellai.com Authorization: Bearer token (RETELL_API_KEY) payload example: { "name": "Test Agent", "voice_id": "11labs-Aiden", "response_engine": { "type": "retell-llm", "llm_id": "llm_55...................281e" }, "greeting_message": "Hello.", "config": {}, "webhook_url": "https://my............/webhook"
1. SDK Approaches Retell SDK 4.43.0 (latest version) – tested SDK Agent Creation – consistently returns 404 SDK LLM Creation – fails, falls back to Direct API 2. API Endpoints Tested LLM Creation Endpoints: /create-retell-llm → SUCCESS /v2/create-retell-llm → 404 /v2/llm → 404 /create-llm → 404 /llm → 404 Agent Creation Endpoints: /create-agent → 404 (as suggested by documentation) /v2/create-agent → 404 /agent → 404 /v2/agent → 404
3. Failed Parts Agent Creation – all endpoints return 404 SDK integration – keeps pointing to old endpoints API documentation – endpoints seem outdated
my questions: What is the current Direct API endpoint for creating agents? What is the correct payload format for agent creation? Is it possible to create agents using Direct API only, without SDK fallback?
o
404 doesn't always mean the end point doesn't exist sometimes it means one of your parameters is incorrect like my there is llm id doesn't exist on your workspace
Do in general if you want to create an agent you will need to use llm id , you have two options you can get it from another agent or you can create a new llm and use it's id
And you can create llm without SDK with the API
This one
After you create the llm you can create an agent using this API