Skip to main content
POST
cURL
Creates a new voice AI agent. Returns HTTP 201 with { "agent_id": "...", "state": "created" }.
The quickest path is creating an agent in the dashboard (Auto Build) and copying its ID. Use the API when you need to programmatically provision agents at scale or integrate agent creation into your deployment pipeline.

Minimal example

The smallest body that produces a working English conversation agent:
Minimal request body
201 Response

Common 400 errors

Next steps

After creating an agent, place a call with POST /call using the returned agent_id. See the API Quickstart for a complete end-to-end example.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Creates a new agent

agent_config
object
required

Configuration of the agent

agent_prompts
object
required

Prompts to be provided to the agent. It can have multiple tasks of the form task_<task_id>

Response

agent created response

agent_id
string<uuid>
state
enum<string>
Available options:
created
Example:

"created"