Skip to content
dimmiDocs

AI agent

Change shared AI settings

PATCH/api/v1/ai/settings

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the ai:write ability

Body

application/json
answer_key_idstring

Provider key every agent answers with until it picks its own, starting with aik_, such as aik_01jx2m8k4t. Find it with GET /ai/keys. Send null to clear it.

Maximum length: 64

answer_modelstring

Model every agent answers with until it picks its own, one of the models the answer key lists, at most 120 characters, such as "claude-haiku-5-5". Send null to clear it.

Maximum length: 120

classifier_key_idstring

Provider key that sorts each customer message before an agent answers, starting with aik_, such as aik_01jx2m8k4t. Find it with GET /ai/keys. Send null to clear it.

Maximum length: 64

classifier_modelstring

Model that sorts each customer message, one of the models the classifier key lists, at most 120 characters, such as "claude-haiku-5-5". Send null to clear it.

Maximum length: 120

fallback_key_idstring

Provider key used when an agent's answer key fails, starting with aik_, such as aik_01jx2m8k4t. Find it with GET /ai/keys. Send null to clear it.

Maximum length: 64

fallback_modelstring

Model used when an agent's answer model fails, one of the models the fallback key lists, at most 120 characters, such as "claude-haiku-5-5". Send null to clear it.

Maximum length: 120

monthly_cap_usdnumber

Most the workspace may spend on dimmi in a month, in US dollars, 0 to 100000, such as 250. 0 or null means no cap. Raising it lifts a pause the old cap caused.

Format: double · Minimum: 0 · Maximum: 100000

Response 200

OK
dataobjectrequired
Show child attributes
answer_key_idstring | nullrequired

Id of the provider key every agent answers with until it picks its own (starts with aik_). Null when none is set.

answer_modelstring | nullrequired

The model every agent answers with until it picks its own. Null when none is set.

classifier_key_idstring | nullrequired

Id of the provider key that sorts each customer message before an agent answers (starts with aik_). Null when none is set.

classifier_modelstring | nullrequired

The model that sorts each customer message. Null when none is set.

fallback_key_idstring | nullrequired

Id of the provider key used when an agent's answer key fails (starts with aik_). Null when there is none.

fallback_modelstring | nullrequired

The model used when an agent's answer model fails. Null when there is none.

monthly_spend_cap_microsinteger | nullrequired

Most the workspace may spend on dimmi in a month, in millionths of a US dollar. Null when there is no cap.

Format: int64

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.