Create a new agent in a workspace.
Creates an agent and links it to a voice provider integration identified by
provider_name and api_key. If a matching integration already exists in the
workspace it will be reused; otherwise a new one is created.
Returns the newly created agent including its Tuner ID (id), which you can use
in subsequent GET or PUT requests.
Use Tuner API key (tr_api_...) or user session token. Find your API key in Workspace Settings > API Keys.
Request schema for agent creation.
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 - 200API key for authenticating with your voice provider. Find this in your provider's account settings.
1 - 500Your voice provider's unique identifier for this agent. Find this in your provider's agent configuration.
1 - 36Brief 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'). Defaults to workspace language if omitted.
10Whether this agent handles 'inbound' (customer-initiated) or 'outbound' (agent-initiated) calls. Defaults to 'inbound'.
^(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.