Skip to main content
POST
Create an AI agent

Authorizations

Authorization
string
header
required

A project API key, created in the dashboard.

Headers

Idempotency-Key
string

A unique key that makes the request safe to retry, such as a V4 UUID. 1 to 255 printable ASCII characters.

Required string length: 1 - 255

Body

application/json

Unknown parameters, including inside ai, return 422.

name
string
required
Required string length: 1 - 125
business_name
string | null

Trimmed. null or an empty string clears it.

Maximum string length: 100
timezone
string

An IANA time zone name, such as America/Toronto. Offsets and abbreviations aren't accepted.

Maximum string length: 64
ai
object

All parameters are optional, and only the ones you pass change. Unknown parameters return 422.

Response

The new agent.

object
any
required
id
string
required
Example:

"3132353852"

type
string
required

Always ai_agent. Chatbots are at /chatbots.

Allowed value: "ai_agent"
name
string
required
Example:

"Support agent"

status
enum<string>
required

Suspended agents can be retrieved and deleted, but not updated.

Available options:
active,
suspended
business_name
string | null
required

The name of the business the agent represents.

Example:

"Acme"

timezone
string
required

An IANA time zone name.

Example:

"America/Toronto"

created_at
string<date-time> | null
required
ai
object
required

The AI settings of an AI agent.