Skip to main content
PATCH
Update settings

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.

Path Parameters

Query Parameters

dryRun
enum<string>

true saves nothing and returns { dryRun: true, changes: { field: { from, to } } } with only the fields that would change.

Available options:
true,
false

Body

application/json
name
string
Maximum string length: 100
Example:

"Example SLO"

systemPrompt
string

The instructions (system prompt) the agent follows.

Maximum string length: 10000
temperature
number
Required range: 0 <= x <= 2
Example:

0.4

language
string

Language code the agent answers in, e.g. "sl" or "en".

Maximum string length: 20
modelId
string

A model id from GET /v1/agents/{agentId}/models. Must be available on the plan.

autoRetrainEnabled
boolean

Re-crawl link sources on a schedule. Scale plan only.

isPublic
boolean

Whether the widget can be embedded on any site. When false, only allowedDomains can embed it.

allowedDomains
string[]

Sites allowed to embed the widget.

Maximum array length: 100
Example:
ipLimit
number

Messages per visitor IP per timeframe.

Required range: x >= 1
ipLimitTimeframe
number

IP limit timeframe in seconds.

Required range: x >= 1
ipLimitMessage
string
Maximum string length: 500
askUserToProvideEmailAddress
boolean

Ask visitors for their email address.

preventChatWithoutEmail
boolean

Require an email before chatting.

emailDiscountIncentive
boolean

Offer a discount in exchange for an email.

discountCode
string | null
Maximum string length: 100
discountPercentage
number | null
Required range: 0 <= x <= 100
automaticDiscountEnabled
boolean

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