Get a session
curl --request GET \ --url http://127.0.0.1:8004/api/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Session ID
Responses
Section titled “Responses”The session with its windows, panes, and layouts
object
object
object
cwd is on another host.
object
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.
Background work the agent’s screen shows, such as “2 shells, 1 monitor”.
Names the running agent instance, so a client can target it.
When the agent entered its current state, in Unix seconds.
A pane’s place in a git repo.
object
The repo’s common git dir, shared by all its worktrees.
None when HEAD is detached.
The repo’s main worktree rather than a linked one.
The native editor over a pane, the same in every tab.
object
Open files (absolute paths), in tab order.
object
object
object
Example
{ "runtime": { "type": "local" }, "windows": [ { "panes": [ { "agent_status": { "state": "unknown" }, "unread": { "level": "info" } } ], "layout": { "type": "leaf" } } ]}A malformed ID
Missing or wrong access token
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 session