Create a new AI voice agent with specific configuration for STT, TTS, LLM, and behavior.
Your API key for authentication.
Must be application/json.
Permissions
agents:create (admin, agent_manager)
Request Body
The name of the agent (1-100 characters).
Speech-to-Text provider (e.g., deepgram, deepgram-nova-3, aws).
Text-to-Speech provider (e.g., elevenlabs, cartesia, deepgram).
Voice ID for the selected TTS provider.
LLM provider (e.g., openai, anthropic, google).
Model ID (e.g., gpt-4o, gemini-2.5-flash-lite).
The system prompt that defines the agent’s persona and instructions (10-10000 characters).
Primary language for the agent (e.g., EN, ES).
Whether the agent should speak first when the call connects.
Enable the built-in end call tool for the agent.
Temperature setting for the LLM (0.0 to 2.0).
Fallback LLM provider when primary fails.
Fallback LLM model when primary fails.
Enable call recording for this agent.
Enable AMD (Answering Machine Detection).
Message to leave if a voicemail is detected.
Delay in seconds before speaking the voicemail message (1.0-5.0).
List of custom tool IDs to attach to this agent.
List of knowledge base document IDs to attach to this agent.
assigned_phone_number_ids
List of phone number IDs to assign to this agent.
Response
Indicates if the request was successful.
Human-readable success message.
The created agent object (AgentData).
{
"agent_name": "Sales Rep",
"stt_provider": "deepgram",
"tts_provider": "elevenlabs",
"tts_voice": "21m00Tcm4TlvDq8ikWAM",
"llm_provider": "openai",
"llm_model": "gpt-4o",
"system_prompt": "You are a helpful sales representative...",
"language": "EN",
"speak_first": true,
"recording_enabled": true
}
{
"success": true,
"message": "Agent created successfully",
"data": {
"agent_id": "agent_a1b2c3d4e5f6",
"agent_name": "Sales Rep",
"language": "EN",
"stt_provider": "deepgram",
"tts_provider": "elevenlabs",
"tts_voice": "21m00Tcm4TlvDq8ikWAM",
"llm_provider": "openai",
"llm_model": "gpt-4o",
"system_prompt": "You are a helpful sales representative...",
"speak_first": true,
"end_call_tool": false,
"llm_temperature": 0.7,
"recording_enabled": true,
"voicemail_detection": false,
"voicemail_response_delay": 2.0,
"custom_tools": [],
"kb_document_ids": [],
"assigned_phone_number_ids": [],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}