Update an existing agent.
Updates the agent’s fields and, if provider_name or api_key change,
re-links the agent to the appropriate integration.
All body fields are required. To leave a field unchanged, re-send its current value.
Use Tuner API key (tr_api_...) or user session token. Find your API key in Workspace Settings > API Keys.
Request schema for agent update (agent fields only).
Display name for the agent (e.g., 'Support Bot', 'Sales Agent').
1 - 200Voice provider this agent is connected to (e.g., 'retell', 'vapi'). Must match a provider name supported by Tuner.
1 - 200Your voice provider's unique identifier for this agent. Find this in your provider's agent configuration.
1 - 36API key for authenticating with your voice provider. Find this in your provider's account settings.
1 - 500Brief description of what this agent does (e.g., 'Handles billing inquiries').
BCP 47 language tag for the agent's primary language (e.g., 'en', 'es', 'fr'). Omit to leave unchanged.
10Whether this agent handles 'inbound' (customer-initiated) or 'outbound' (agent-initiated) calls.
^(inbound|outbound)$System prompt or instructions given to the agent.
Agent workflow configuration as a JSON object (must be JSON-serializable).
Successful Response
Agent schema for API responses with nested relationships.
Tuner's internal numeric ID for this agent.
ID of the voice provider integration this agent uses.
Display name of the agent.
'inbound' for customer-initiated calls, 'outbound' for agent-initiated calls.
Your voice provider's unique identifier for this agent.
ISO 8601 timestamp when the agent was created.
ISO 8601 timestamp when the agent was last updated.
Brief description of what this agent does.
BCP 47 language tag for the agent's primary language (e.g., 'en', 'es').
System prompt or instructions given to the agent.
Agent workflow configuration. Must be valid JSON.
Name of the voice provider for this agent's integration.
Timestamp when the agent was deleted. Null if the agent is active.
ID of the user who created this agent.
ID of the user who last updated this agent.
Integration schema with nested provider object.