Skip to content

Set an agent's status

POST
/api/panes/{pane_id}/agent-status
Code sample: Shell / cURL
curl --request POST \
--url http://127.0.0.1:8004/api/panes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/agent-status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "state": "unknown", "agent": "example", "source": "example", "message": "example" }'

Sets the pane’s agent status explicitly, above what hooks and the screen report.

pane_id
required
string format: uuid

Pane ID

Media typeapplication/json
object
state
required

Lifecycle states for an agent occupying a pane.

This intentionally follows Herdr’s small semantic vocabulary. Failure and permission details belong in the accompanying message/notification instead of multiplying lifecycle states.

string
Allowed values: unknown idle working waiting blocked done
agent
string | null
source
string | null
message
string | null

Done

A malformed ID or JSON body

Media typetext/plain
string

Missing or wrong access token

Media typetext/plain
string

The request’s Host or Origin isn’t allowed, or the caller can’t use this route (a guest token, or btmux connect)

No such pane

A body over the size limit

Media typetext/plain
string

No Content-Type: application/json

Media typetext/plain
string

A body that doesn’t match its schema

Media typetext/plain
string