Skip to main content
agents

Create Chat

POST
/api/agents/{company_name}/chats
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

company_namestringrequired

Body

application/json
languageenum<string>required

App language when chat is created

Available options: en, de, fr, es, it, pt, nl, pl, cs, da, sv, fi, nb, et, lt, lv, sk, sl, bg, ru, uk, el, tr, hu, ja, ko, zh, id
template_idstring | null

ID of the template to modify for the chat

titlestring | null

Name of the chat

Response

application/json

Successful Response

created_bystringrequired
datestringrequired
history_countintegerrequired
idstringrequired
Required string length: 24 - 24
Pattern: ^[0-9a-f]{24}$
Example: 5eb7cf5a86d9755df3a6c593
languageenum<string>required
Available options: en, de, fr, es, it, pt, nl, pl, cs, da, sv, fi, nb, et, lt, lv, sk, sl, bg, ru, uk, el, tr, hu, ja, ko, zh, id
preview_modelobject | string[] | null
statusenum<string>required
Available options: ready, in_progress, failed
template_idstring | nullrequired
titlestring | nullrequired