Skip to main content
POST
/
api
/
agents
{
  "config": {
    "agent_name": "Sales Rep",
    "stt_provider": "deepgram-nova-3",
    "tts_provider": "cartesia",
    "tts_voice": "f786b574-daa5-4673-aa0c-cbe3e8534c02",
    "llm_provider": "google",
    "llm_model": "gemini-2.5-flash-lite",
    "system_prompt": "You are a helpful sales representative...",
    "speak_first": true,
    "recording_enabled": true
  }
}
{
  "success": true,
  "agent": {
    "agent_id": "agent_12345",
    "agent_name": "Sales Rep",
    "stt_provider": "deepgram-nova-3",
    "created_at": "2024-01-01T00:00:00Z"
    // ... other fields
  }
}
Create a new AI voice agent with specific configuration for STT, TTS, LLM, and behavior.
config
object
required
Agent configuration object.

Response

success
boolean
Indicates if the request was successful.
agent
object
The created agent object.
{
  "config": {
    "agent_name": "Sales Rep",
    "stt_provider": "deepgram-nova-3",
    "tts_provider": "cartesia",
    "tts_voice": "f786b574-daa5-4673-aa0c-cbe3e8534c02",
    "llm_provider": "google",
    "llm_model": "gemini-2.5-flash-lite",
    "system_prompt": "You are a helpful sales representative...",
    "speak_first": true,
    "recording_enabled": true
  }
}
{
  "success": true,
  "agent": {
    "agent_id": "agent_12345",
    "agent_name": "Sales Rep",
    "stt_provider": "deepgram-nova-3",
    "created_at": "2024-01-01T00:00:00Z"
    // ... other fields
  }
}