AI agent
Add an AI conversation attribute
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the ai:write ability
Body
application/jsondata_typestringrequiredtext, number, date, boolean or choice.
Available options:textnumberdatebooleanchoice
descriptionstringWhat to look for, for the AI, up to 500 characters.
Maximum length: 500
keystringrequiredThe attribute's key, lowercase letters, digits and underscores, such as order_number.
Maximum length: 64
labelstringrequiredWhat the team calls it, up to 80 characters, such as Order number.
Maximum length: 80
optionsstring[] | nullWith choice, the values it may take, at most 30, such as ["billing", "bug"].
Maximum items: 30
Response 201
CreateddataobjectrequiredShow child attributesHide child attributes
created_atstringrequiredWhen it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
data_typestringrequiredWhat the value is: text, number, date, boolean or choice.
descriptionstringrequiredWhat the AI looks for. Empty when not set.
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
keystringrequiredThe attribute's key, as conditions and variables name it: conversation.ai.<key>.
labelstringrequiredWhat the team calls the attribute.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
optionsstring[] | nullrequiredWith choice, the values it may take. Empty otherwise.
statusstringrequiredactive while the AI reads it, archived once it stopped.
updated_atstringrequiredWhen it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.