https://retellai.com/?utm_source=discord&utm_medium=seo logo
What is the endpoint to make a new agent
# ❓・ai-evy-support
k
@AI Evy What is the endpoint to make a new agent?
a
Thanks for tagging me @kamivermillion. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer The endpoint to create a new agent is ` using a POST request. [(1) ]() Here's an example of how to create an agent using the Retell SDK:
Copy code
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) ;
Make sure your
voice_id
and
llm_id
are correct - using an incorrect or obsolete voice ID can result in a 404 error. [(6) ]() [(7) ]()
​ To learn more, see the sources I considered: [[1] Create Agent](https://docs.retellai.com/api-references/create-agent) ​