Without selector, lists sessions across every Project in the org (and
those with no Project), newest first, filtered by the query parameters.
With selector, resolves exactly one session by full id, unique id
prefix, or title; when it matches more than one, the answer is 409 with
the candidates. A caller that already has the id should read
GET /o/{org}/p/_/sessions/{session} instead.
This route's errors use {code, message}.
Authenticate with an org API key or a signed-in session.
Path parameters
The org's slug or id. A caller with no role in the org gets 404.
Query parameters
Exact id, a unique id prefix, or a title. Switches the route into resolution mode.
Full-text match across title, prompt and content. Repeatable. Ignored with selector.
Only this Project (handle or id). A handle from another org returns no rows.
Harness as dispatched, e.g. claude or codex.
Every session today is cloud; local returns an empty list.
cloudlocalLaunch-boundary managed harnesses.
claudecodexopencodeheadlessinteractiveowner/name.
paused is a resumable session parked between turns; needs_review finished without the proof it was asked for.
queuedallocatingrunningpausedinput_requiredneeds_reviewcompletedfailedcancelledexpiredLower time bound. Relative (2h, 7d) or ISO 8601.
Upper time bound. Relative (2h, 7d) or ISO 8601.
recentcostdurationDefault "recent"When true, return only count and an empty sessions.
falseMax rows to return.
50min 1max 500Opaque pagination cursor from a previous response's next_cursor.
Responses
200The matching sessions, or the one session a selector resolved to.
400Malformed request.
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, PLAN_REQUIRED.
The machine code on routes that name it this way.
401No bearer, an unknown, revoked or expired one, or an API key on a route keys cannot call.
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, PLAN_REQUIRED.
The machine code on routes that name it this way.
404No such resource for the caller, including one that exists in an org the caller cannot see.
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, PLAN_REQUIRED.
The machine code on routes that name it this way.
409The selector matched more than one session.
AMBIGUOUS_SELECTOR34 item fields
cloudlocalDefault "cloud"Indexed short handle for prefix resolution.
Owning org; null for older sessions started outside an org.
The Project the session ran in; null for a run without one.
Launch-boundary managed harnesses.
claudecodexopencodeheadlessinteractivenullpaused is a resumable session parked between turns; needs_review finished without the proof it was asked for.
queuedallocatingrunningpausedinput_requiredneeds_reviewcompletedfailedcancelledexpiredcompletepartialfailednull0000000The person who started the run; null for older sessions with no recorded starter.
2 fields
Stored summary or last assistant text line (max 200 chars); null when there is no capture.
First 6 artifact previews from the stored manifest, in upload order (no timestamps, so no recency implied).
3 item fields
0The saved agent profile this run was dispatched from; null otherwise.