New chat
const url = 'http://localhost:8300/v1/studio/assistant/threads';const options = { method: 'POST', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"client_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8300/v1/studio/assistant/threads \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "client_id": "example" }'Creates an empty chat. Your previous chat (the newest with a message) gets its summary written. 409 the assistant is off while the admin has it off.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
One drawer (a browser tab)
Example generated
{ "client_id": "example"}Responses
Section titled “Responses”The chat
object
The chat’s Auto switch (starts off): safe steps run without asking
From the first message; New chat before
Working: the agent is thinking; waiting: parked on actions, cards or a run
What the parked turn waits on: actions for the tab client_id to run, cards (ids of card entries) to answer
object
object
<thread_id>:
object
(Auto mode): pipelines lets it run by itself: a generation on your machines within the Auto caps runs without its card, a safe save in a dialog (a new item) saves itself; its line starts Auto · and has Undo. Absent = false
Auto is on but this one still asks: the waiting line above its card (Auto stops here: deleting needs you, Auto paused · 8 of 8 takes this hour)
object
With Auto on, the takes Auto mode started for you in the last hour (the chip 4 of 8 takes this hour); absent with Auto off
The chat’s last message, turn end or Continue here; a summary landing does not move it. The list is newest first by it
Example
{ "state": "idle"}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
object
Example generated
{ "detail": "example"}The resource’s state forbids this
object
Example generated
{ "detail": "example"}Invalid input
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}