Skip to content
GET
/api/v1/sessions
curl --request GET \
--url 'https://deck.example.com/api/v1/sessions?all=false' \
--cookie qd_auth=<qd_auth>
node
string
all

Include sessions that aren’t running (closed or ended), most recent first.

boolean

Include sessions that aren’t running (closed or ended), most recent first.

since

Only sessions active since: a date (2026-05-23) or a number of days back (180d). Implies all.

string

Only sessions active since: a date (2026-05-23) or a number of days back (180d). Implies all.

limit

At most this many (default 200, or 5,000 with since).

integer format: int64

At most this many (default 200, or 5,000 with since).

Media typeapplication/json
Array<object>

A session as the deck serves it.

object
address

Where the orchestrator runs it, in the orchestrator’s own terms (herdr: a pane ID). Opaque to the deck.

string | null
agent
required

Which harness runs the session.

string
Allowed values: claude codex
closed_at

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.

string | null
cwd
string | null
ended
Any of:

How a session ended, from herdr’s close events.

One of:

Its tab closed: a person closed it, or the last process in it exited.

object
how
required
string
Allowed value: tab_closed
last_activity
string | null
links
required
Array<object>
object
added_at
required
string
kind
required
string
Allowed values: github_pr shortcut_story linear_issue link
ref

owner/repo#1234, sc-6450, ENG-12.

string | null
source
required

agent, or the detector’s name.

string
state
Any of:
string
Allowed values: open merged closed done
title
string | null
url
required
string
node
required
string
node_online
required

The node is connected now. When it isn’t, everything above is as last pushed.

boolean
open_url

A link that brings the session forward in its orchestrator on the machine it runs on (herdr: herdr://open).

string | null
opens_in

The orchestrator’s name, for “Open in …”.

string | null
page
string | null
paragraph
string | null
project
string | null
prompt

The harness’s own menu it’s waiting on (blocked), when its node reads one through Fleetlayer.

Any of:

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
at

When it appeared, as Fleetlayer gives it.

string | null
id
required

Fleetlayer’s ID for this prompt: stable while it shows, new for every prompt. An answer names it.

string
kind
required

question, permission or plan.

string
options

A permission or plan prompt’s choices.

Array<object>
default:
object
description
string | null
label
required
string
n
required

What to answer to pick it.

integer format: uint32
plan

A plan prompt’s plan.

string | null
questions

A question form’s questions, in order.

Array<object>
default:
object
header
string | null
multiSelect
boolean
options
Array<object>
default:
object
description
string | null
label
required
string
n
required

What to answer to pick it.

integer format: uint32
other

It takes a free-text answer too.

boolean
question
required
string
tool

A permission prompt’s tool, by name, and a short form of its input.

string | null
tool_input
string | null
pushed_at
required
string
resume_command

The command that resumes it, to copy until herdr’s create-and-resume is there.

string | null
running
required

Whether the agent is running now.

boolean
sentence
string | null
session_id
required
string
status
required

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.
string
Allowed values: idle done working blocked unknown
status_changed_at
required
string
tab
string | null
workspace
string | null

Example

[
{
"agent": "claude",
"ended": {
"how": "tab_closed"
},
"links": [
{
"kind": "github_pr",
"state": "open"
}
],
"open_url": null,
"opens_in": null,
"prompt": null,
"status": "idle"
}
]

An error, with its message.

Media typeapplication/json

Every error the REST API returns, with an HTTP status.

object
error
required
string

Example generated

{
"error": "example"
}