Silvio
01/26/2026, 9:49 PMAI Evy
01/26/2026, 9:49 PMAI Evy
01/26/2026, 9:49 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponse = await client.agent.retrieve('16b980523634a6dc504898cda492e939') ;
console.log(agentResponse.agent_id) ;
[(4) ]()
Option 3: Use the MCP Server integration
If you want Claude to create agents directly, you can set up the Retell AI MCP Server connection. This allows Claude to create agents properly through the API rather than generating JSON files that may not match the required format. [(5) ]()
The key issue is that external LLMs don't always generate the agent JSON correctly—the format must match Retell's exact specifications. [(1) ]()AI Evy
01/26/2026, 9:49 PMAI Evy
01/26/2026, 9:49 PMSilvio
01/26/2026, 9:52 PM