Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

A message, the actions' results, a card's answer, or Continue here

POST
/v1/studio/assistant/threads/{thread_id}/messages
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).

thread_id
required
string

An assistant chat’s UUID (another user’s or malformed = 404)

Media typeapplication/json
One of:
object
kind
required
Allowed value: message
client_id
required

One drawer (a browser tab)

string
/^[A-Za-z0-9_-]{8,64}$/
text
required

Trimmed; blank = 422.

string
>= 1 characters <= 4000 characters
screen
required
object
route
required
string
/^/[^\s]{0,199}$/
ids
required
object
<= 16 properties
key
additional properties
string
<= 80 characters
roles
required
Array<string>
<= 8 items
as_of
required
string format: date-time
hidden
required
boolean
actions
required

The screen actions registered now

Array<string>
<= 64 items unique items
fields
required
object
takes

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

Array<string>
<= 8 items unique items

Accepted

Media typeapplication/json
object
thread
required
object
id
required
string format: uuid
auto
required

The chat’s Auto switch (starts off): safe steps run without asking

boolean
title
required

From the first message; New chat before

string
<= 120 characters
state
required

Working: the agent is thinking; waiting: parked on actions, cards or a run

string
Allowed values: idle working waiting
client_id
required
One of:

One drawer (a browser tab)

string
/^[A-Za-z0-9_-]{8,64}$/
pending
required
One of:

What the parked turn waits on: actions for the tab client_id to run, cards (ids of card entries) to answer

object
turn
required
integer
>= 1
actions
required
Array<object>
<= 30 items
object
id
required

<thread_id>::

string
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:[1-9][0-9]{0,5}:([0-9]|[1-9][0-9])$/
name
required
string
/^[a-z][A-Za-z0-9]{0,47}$/
args
required
object
auto

(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

boolean
asks

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)

string
>= 1 characters <= 80 characters
cards
required
Array<string>
<= 4 items
caps
required
object
model_calls
required
integer
<= 40
tool_calls
required
integer
<= 100
memory_writes
required
integer
<= 8
auto_takes_hour

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

integer
created_at
required
string format: date-time
updated_at
required

The chat’s last message, turn end or Continue here; a summary landing does not move it. The list is newest first by it

string format: date-time
entry
required
One of:

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
id
required
string format: uuid
turn
required
integer
>= 1
kind
required
string
Allowed values: user assistant line card notice
at
required
string format: date-time
text

User, assistant, notice: shown as text, never HTML

string
<= 4000 characters
line
object
id
required

<thread_id>::

string
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:[1-9][0-9]{0,5}:([0-9]|[1-9][0-9])$/
status
required
string
Allowed values: running waiting done undone did_not_run failed cancelled
text
required
string
>= 1 characters <= 300 characters
undo
required
boolean
memory_id
string format: uuid
skill

A Using skill line: the skill read (tap to see: GET /v1/studio/skills/{skill})

string
/^[a-z][a-z0-9-]{0,22}$/
take_ids

A plugin tool’s line (media tools): the takes it made; its Undo deletes them (DELETE /v1/studio/takes/{take_id}), no Redo

Array<string>
>= 1 items <= 8 items unique items
sources
Array<object>
<= 5 items
object
title
required
string
<= 200 characters
url
required
string
<= 500 characters
card

Yes or Not now is a message of kind answer

object
id
required

<thread_id>::

string
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:[1-9][0-9]{0,5}:([0-9]|[1-9][0-9])$/
kind
required

Plugin: a plugin tool with a risk flag

string
Allowed values: look web_search delete plugin
title
required
string
>= 1 characters <= 120 characters
rows
required
Array<object>
<= 8 items
object
label
required
string
<= 40 characters
value
required
string
<= 300 characters
note
string
<= 300 characters
tags
required
Array<string>
>= 1 items <= 3 items
take_ids
Array<string>
<= 8 items
state
required
string
Allowed values: waiting yes not_now cancelled
error
object
code
required
string
Allowed values: cap_message cap_day cap_tokens cap_look_at answer provider off internal
text
required
string
>= 1 characters <= 500 characters
resets_at
string format: date-time
limit

The drawer unlocks once the current cap is above it

integer
steer

Absent on other entries

string
Allowed values: waiting read next
takes

Absent when none

Array<string>
<= 8 items
steer

Absent or false otherwise

boolean

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

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Not found

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

The resource’s state forbids this

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Invalid input

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

A per-resource rate limit

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}