Skip to main content
PATCH
Update instructions and settings on several agents

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
agentIds
string[]

Agents to apply the operation to. Omit to use every agent the API key can access.

Maximum array length: 100
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

succeeded
number
required
failed
number
required
results
object[]
required