Create Agent
Create a new AI agent for your organization.
Authorization: Bearer <token>) or
an organization API key (x-api-key: pk_…). Anonymous calls return 401 Unauthorized. See
Authentication for the full setup.GET /v1/chat/models to get a valid modelId before creating an agent.Code examples
Creating a voice agent
To create an agent capable of handling phone calls, addvoiceEnabled: true and pick a voicePipelineMode:
Sample response
Authorizations
Body
Display name for the agent.
"Customer Support Bot"
Internal description of the agent's purpose.
"Handles tier-1 customer queries for Acme Inc."
The agent's persona and behavioral role. Used as the system prompt prefix.
"You are a helpful, concise support agent for Acme Inc."
BCP-47 language code. Controls TTS voice language selection.
"en"
Additional system-level instructions appended to the role.
"You specialize in billing, returns, and account access. Keep responses under 3 sentences."
Low-priority supplemental instructions (injected after system prompt).
UUID of the LLM to use. Get IDs from GET /v1/chat/models.
UUID of the Speech-to-Text model (voice agents only).
UUID of the Text-to-Speech model (voice agents only).
Enable voice capability. Requires voicePipelineMode when true.
Voice pipeline mode. pipeline = TTS+STT, sts = speech-to-speech, hybrid = adaptive.
pipeline, sts, hybrid ID of a knowledge store to attach for RAG-based answers.
Tools to attach to the agent at creation time.
Whether the welcome prompt can be interrupted by the user (voice only).
Response
Agent created successfully.
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
"Customer Support Bot"
"Handles tier-1 customer queries"
"You are a helpful support agent for Acme Inc."
"en"
false
true
false
"org_2abc123"
"2026-04-28T11:42:11Z"
"2026-04-28T11:42:11Z"