Body
Human‑readable name for the agent.
Agent type/preset (e.g., “Conversational AI Agent”). Defaults to conversational.
Short purpose/description shown in the dashboard.
High‑level role or persona for the agent.
System instructions that guide the agent’s behavior.
Primary objective(s) the agent should optimize for.
Voice model to use for voice channels (if enabled).
Whether the agent is active immediately. Defaults to true.
Organization/workspace that owns the agent. If omitted, uses your current org.
Response
Unique identifier for the agent.
The name of the created agent.
The description of the created agent.
The role/persona of the agent.
Whether the agent is active.
Organization/workspace that owns the agent.
Voice model configured for the agent.
When the agent was created.
When the agent was last updated.
curl --location --request POST 'https://api.stateset.com/v1/agents' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
--data-raw '{
"agent_name": "Support Bot",
"agent_type": "Conversational AI Agent",
"description": "Handles order status and returns",
"role": "Customer Support Specialist",
"instructions": "Be concise, friendly, and ask for an order number when needed.",
"goal": "Resolve customer issues quickly",
"voice_model": "Asteria"
}'