Skip to main content
POST
Create an agent

Authorizations

Authorization
string
header
required

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

Headers

Idempotency-Key
string

Any unique string (e.g. a UUID). Retrying with the same key within 24 hours replays the first response instead of repeating the change.

Body

application/json
name
string

Required unless websiteUrl is given.

Maximum string length: 100
websiteUrl
string

Names the agent after the site and adds the site as a link source, then starts training.

Example:

"https://example.com"

Response

id
string
required
Example:

"clx1agent"

name
string
required
Example:

"Example SLO"

systemPrompt
string
required

The instructions (system prompt).

temperature
number
required
Example:

0.4

language
string | null
required
Example:

"sl"

model
string
required

Model value; see modelDetails.

Example:

"gpt-5.5-mini"

modelDetails
object
required
lastTrainedAt
string<date-time> | null
required
autoRetrainEnabled
boolean
required
isPublic
boolean
required

Embeddable on any site when true.

allowedDomains
string[]
required
ipLimit
number
required
ipLimitTimeframe
number
required

Seconds.

ipLimitMessage
string
required
emailCapture
object
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required