Agents
Update Agent
Update an existing agent
PATCH
Request
Update the configuration of an existing AI voice agent. Only include fields you want to change.Headers
Bearer token for authentication. Format:
Bearer YOUR_API_KEYMust be
application/jsonPath Parameters
The unique identifier of the agent to update
Body Parameters
All fields are optional. Only include fields you want to update.A friendly name for the agent
The instructions defining the agent’s personality and behavior
The voice to use for the agent
The greeting message when calls connect
Primary language (e.g.,
en-US, es-ES)The LLM to use:
gpt-4o, gpt-4o-mini, claude-3-sonnetCreativity level (0.0-1.0)
Maximum tokens per response
How easily the user can interrupt (0.0-1.0)
Phrases that will end the call
Set to
active or inactiveCustom key-value pairs
Response
Returns the updated agent object.Error Codes
| Code | Description |
|---|---|
agent_not_found | The specified agent_id does not exist |
invalid_voice_id | The specified voice does not exist |
invalid_system_prompt | System prompt is too long or invalid |
unauthorized | You don’t have access to this agent |