Agents
Create Agent
Create a new AI voice agent
POST
Request
Create a new AI voice agent with custom personality, voice, and behavior settings.Headers
Bearer token for authentication. Format:
Bearer YOUR_API_KEYMust be
application/jsonBody Parameters
A friendly name for the agent (e.g., “Sales Assistant”)
The instructions defining the agent’s personality, goals, and behavior
The voice to use for the agent. See available voices.
The greeting message the agent says when the call connects
Primary language for the agent (e.g.,
en-US, es-ES, fr-FR)The LLM to use:
gpt-4o, gpt-4o-mini, claude-3-sonnetCreativity level (0.0-1.0). Lower = more focused, higher = more creative.
Maximum tokens per response (affects verbosity)
How easily the user can interrupt (0.0-1.0). Higher = easier to interrupt.
Phrases that will end the call (e.g.,
["goodbye", "that's all"])Custom key-value pairs for your reference
Response
Unique identifier for the agent
The agent’s name
The voice ID
Agent status:
active, inactiveISO 8601 timestamp
Error Codes
| Code | Description |
|---|---|
invalid_voice_id | The specified voice does not exist |
agent_limit_reached | Your plan’s agent limit has been reached |
invalid_system_prompt | System prompt is too long or contains invalid content |
invalid_language | The specified language is not supported |