BraydenRowland
10/13/2025, 5:58 AMAI Evy
10/13/2025, 5:59 AMAI Evy
10/13/2025, 5:59 AM/create-agent [(2) ]() . Here's the exact code structure from the documentation:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.create({
response_engine: { llm_id: 'llm_234sdertfsdsfsdf', type: 'retell-llm' },
voice_id: '11labs-Adrian',
}) ;
console.log(agentResponse.agent_id) ;
Common causes of 404 errors:
1. Incorrect voice_id - A community member reported getting a 404 error when using an outdated or incorrect voice ID from an online example [(1) ]() . Make sure your voice_id is valid and current.
2. Incorrect llm_id - Ensure your LLM ID is correctly formatted and exists .
3. API authentication - Verify your API key format is correct: "Bearer YOUR_API_KEY" [(2) ]() .
Since you mentioned phone numbers and Retell LLM URLs are working properly, focus on verifying that both your voice_id and llm_id in the request body are correct and currently available in your Retell dashboard.
Try using a different voice ID from your dashboard to see if that resolves the issue, as this approach worked for the community member who experienced the same problem [(1) ]() .AI Evy
10/13/2025, 5:59 AMAI Evy
10/13/2025, 5:59 AM