A message, the actions' results, a card's answer, or Continue here
const url = 'http://localhost:8300/v1/studio/assistant/threads/example/messages';const options = { method: 'POST', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"kind":"message","client_id":"example","text":"example","screen":{"route":"example","ids":{"additionalProperty":"example"},"roles":["example"],"as_of":"2026-04-15T12:00:00Z","hidden":true,"actions":["example"],"fields":{}},"takes":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"]}'};
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/example/messages \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "kind": "message", "client_id": "example", "text": "example", "screen": { "route": "example", "ids": { "additionalProperty": "example" }, "roles": [ "example" ], "as_of": "2026-04-15T12:00:00Z", "hidden": true, "actions": [ "example" ], "fields": {} }, "takes": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'The turn’s steps arrive on …/events); a chat parked on actions of a tab that went away resumes first, each of them did_not_run (the tab was closed). results and answer resume the parked turn; they are accepted only from the tab that runs it (client_id, else 409 this chat is working in another tab) and only for the ids it waits on (409 nothing waits on <id>). continue moves the chat to this tab (Continue here): its pending actions are sent to it, the other tab turns read-only; no command is written. 409 the assistant is off; 429 above the admin’s messages a minute (at most <n> messages a minute, steers count); 422 for a blank text or a screen summary over 16 000 characters. A daily cap is not a 4xx: the message is kept and the step’s error says when it starts again. turn is working, or waiting on that tab’s actions, joins the running answer (steer true): it is stored the turn reads it at its next step (read), or, when the turn ends first, it starts the next turn (next, several in order as one). stop (same tab) ends the running turn at its next step: the rest of its calls do not run; idle, it does nothing (202).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”An assistant chat’s UUID (another user’s or malformed = 404)
Request Bodyrequired
Section titled “Request Bodyrequired”object
One drawer (a browser tab)
Trimmed; blank = 422.
object
object
The screen actions registered now
object
Images you attached (pasted, dropped or picked with the paperclip, uploaded first): your own ready takes, else 422 takes: <id> is not one of your takes; shown above your words
object
One drawer (a browser tab)
object
<thread_id>:
object
object
The screen as the actions left it (after a navigate, the new screen)
object
object
The screen actions registered now
object
object
One drawer (a browser tab)
<thread_id>:
object
Continue: Continue here; stop: end the running turn at its next step
One drawer (a browser tab)
Responses
Section titled “Responses”Accepted
object
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
One stored entry of a chat: your message, the assistant’s words, an action line, a card, a notice (the remote provider’s, an error)
object
User, assistant, notice: shown as text, never HTML
object
<thread_id>:
A Using skill line: the skill read (tap to see: GET /v1/studio/skills/{skill})
A plugin tool’s line (media tools): the takes it made; its Undo deletes them (DELETE /v1/studio/takes/{take_id}), no Redo
object
Yes or Not now is a message of kind answer
object
<thread_id>:
Plugin: a plugin tool with a risk flag
object
object
The drawer unlocks once the current cap is above it
Absent on other entries
Absent when none
Absent or false otherwise
Example
{ "thread": { "state": "idle" }, "entry": { "kind": "user", "line": { "status": "running" }, "card": { "kind": "look", "state": "waiting" }, "error": { "code": "cap_message" }, "steer": "waiting" }}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
object
Example generated
{ "detail": "example"}Not found
object
Example generated
{ "detail": "example"}The resource’s state forbids this
object
Example generated
{ "detail": "example"}Invalid input
object
Example generated
{ "detail": "example"}A per-resource rate limit
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}