List agents
GET
/api/agents
Code sample: Shell / cURL
curl --request GET \ --url http://127.0.0.1:8004/api/agents \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Every pane running an agent
Media typeapplication/json
Array<object>
A pane running an agent, as listed to automation.
object
pane_id
required
string format: uuid
session_id
required
string format: uuid
session_name
required
string
window_index
required
integer
window_name
required
string
cwd
string | null
status
required
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
agent
string | null
source
string | null
message
string | null
background
Background work the agent’s screen shows, such as “2 shells, 1 monitor”.
string | null
Example
[ { "status": { "state": "unknown" } }]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)