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

The batch's director chat (the newest 500 messages, oldest first), with the director's state

GET
/v1/studio/batches/{batch_id}/chat
curl --request GET \
--url http://localhost:8300/v1/studio/batches/example/chat \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <x-api-key>'

. Every message of the chat (at most 500). New ones arrive on the batch’s event stream as chat events (GET …/events); the director’s state on batch events (Batch.director). 404 for a batch whose pipeline has no director, and for another user’s batch.

batch_id
required
string

Batch UUID (malformed = 404)

The chat

Media typeapplication/json
object
batch_id
required
string format: uuid
director
required
object
node
required

The director agent node

string
state
required

Idle: asleep until a message or a row ends; waiting: its turn’s call is queued or held (Pause); thinking: a call or its tools run; off: the batch ended or max_wakes reached (POST …/chat is 409)

string
Allowed values: idle waiting thinking off
wakes
required
integer
max_wakes
required
integer
>= 1 <= 500
messages
required

The newest 500, oldest first

Array<object>
<= 500 items

One message of a batch’s director chat

object
id
required
string format: uuid
role
required

Notice: the director’s system line (a row it added or changed was rejected, with the reason; a cap ended its wake)

string
Allowed values: user director notice
text
required
string
<= 4000 characters
at
required
string format: date-time
wake
required

Director and notice: the wake it came from; null for the user’s

integer | null
>= 1
tool_calls
required

Director: the wake’s tool calls

Array<object>
<= 64 items

One tool call an agent made, as run

object
id
required
string
tool
required
string
Allowed values: gallery_search memory_read memory_write library_read rows_add rows_edit route set_items
args
required
object
result
required
object | null
error
required
string | null
rows
required

Rows it added or changed in that wake

Array<integer>
<= 64 items

Example

{
"director": {
"state": "idle"
},
"messages": [
{
"role": "user",
"tool_calls": [
{
"tool": "gallery_search"
}
]
}
]
}

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"
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}