Skip to content
dimmiDocs

AI agent

Add an AI conversation attribute

POST/api/v1/ai/conversation-attributes

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the ai:write ability

Body

application/json
data_typestringrequired

text, number, date, boolean or choice.

Available options:textnumberdatebooleanchoice

descriptionstring

What to look for, for the AI, up to 500 characters.

Maximum length: 500

keystringrequired

The attribute's key, lowercase letters, digits and underscores, such as order_number.

Maximum length: 64

labelstringrequired

What the team calls it, up to 80 characters, such as Order number.

Maximum length: 80

optionsstring[] | null

With choice, the values it may take, at most 30, such as ["billing", "bug"].

Maximum items: 30

Response 201

Created
dataobjectrequired
Show child attributes
created_atstringrequired

When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

data_typestringrequired

What the value is: text, number, date, boolean or choice.

descriptionstringrequired

What the AI looks for. Empty when not set.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

keystringrequired

The attribute's key, as conditions and variables name it: conversation.ai.<key>.

labelstringrequired

What the team calls the attribute.

objectstringrequired

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

optionsstring[] | nullrequired

With choice, the values it may take. Empty otherwise.

statusstringrequired

active while the AI reads it, archived once it stopped.

updated_atstringrequired

When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

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.