Sessions on every node
const url = 'https://deck.example.com/api/v1/sessions?all=false';const options = {method: 'GET', headers: {cookie: 'qd_auth=<qd_auth>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://deck.example.com/api/v1/sessions?all=false' \ --cookie qd_auth=<qd_auth>Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Include sessions that aren’t running (closed or ended), most recent first.
Include sessions that aren’t running (closed or ended), most recent first.
Only sessions active since: a date (2026-05-23) or a number of days back (180d). Implies all.
Only sessions active since: a date (2026-05-23) or a number of days back (180d). Implies all.
At most this many (default 200, or 5,000 with since).
At most this many (default 200, or 5,000 with since).
Responses
Section titled “Responses”A session as the deck serves it.
object
Where the orchestrator runs it, in the orchestrator’s own terms (herdr: a pane ID). Opaque to the deck.
Which harness runs the session.
When herdr reported it closed. A session that isn’t running and has no closed_at went away without a close
event: herdr stopped, or the machine shut down.
How a session ended, from herdr’s close events.
Its tab closed: a person closed it, or the last process in it exited.
object
The agent’s process exited. terminal_closed is false when it went back to its terminal’s shell and the tab
stayed.
object
Herdr’s agent_status, as each node forwards it.
idle: waiting for input, and the person has seen its last turn.done: idle, with a finished turn nobody has looked at yet (herdr’s blue dot).working: running a turn.blocked: waiting on the person: a permission prompt, a question (herdr’s red dot).unknown: herdr can’t tell, or the agent isn’t running.
The node is connected now. When it isn’t, everything above is as last pushed.
A link that brings the session forward in its orchestrator on the machine it runs on (herdr: herdr://open).
The orchestrator’s name, for “Open in …”.
The harness’s own menu it’s waiting on (blocked), when its node reads one through Fleetlayer.
A blocked prompt: one of the harness’s own menus (Claude Code’s question form, a permission prompt, a plan to
approve) waiting in a session, as Fleetlayer reads it (meta.prompt). The Work tab shows it as a form; the answer
goes back through Fleetlayer.
object
When it appeared, as Fleetlayer gives it.
Fleetlayer’s ID for this prompt: stable while it shows, new for every prompt. An answer names it.
question, permission or plan.
A permission or plan prompt’s choices.
object
What to answer to pick it.
A plan prompt’s plan.
A question form’s questions, in order.
object
object
What to answer to pick it.
It takes a free-text answer too.
A permission prompt’s tool, by name, and a short form of its input.
The command that resumes it, to copy until herdr’s create-and-resume is there.
Whether the agent is running now.
Herdr’s agent_status, as each node forwards it.
idle: waiting for input, and the person has seen its last turn.done: idle, with a finished turn nobody has looked at yet (herdr’s blue dot).working: running a turn.blocked: waiting on the person: a permission prompt, a question (herdr’s red dot).unknown: herdr can’t tell, or the agent isn’t running.
Example
[ { "agent": "claude", "ended": { "how": "tab_closed" }, "links": [ { "kind": "github_pr", "state": "open" } ], "open_url": null, "opens_in": null, "prompt": null, "status": "idle" }]default
Section titled “default”An error, with its message.
Every error the REST API returns, with an HTTP status.
object
Example generated
{ "error": "example"}