Skip to main content
GET
List sessions with insights

Authorizations

Authorization
string
header
required

Your Reason API key from Settings › API keys. New keys use reason_; legacy ara_ keys remain accepted. Keys are capability-scoped: run, mcp:read, mcp:write, secrets:read, secrets:write, sessions:read, sessions:debug, knowledge:read, memory:read, memory:write, skills:read, skills:write, repos:read, repos:write, reviews:read, reviews:write, deployment:read, analytics:read, org:read, org:write, attachments:read, attachments:write, guardrails:read, guardrails:write, network:read, network:write, automations:read, automations:write, agent_auth:read. network:read and network:write are opt-in, excluded from default keys. network:read reads the saved workspace network policy; network:write replaces custom allowed hosts and requires a current organization owner/admin. Legacy project PATCH requests containing network_allowed_hosts also require network:write plus their existing run scope and project management permission; saved project hosts do not affect current session egress. Only owners/admins can mint or manage keys with network:write; keys cannot grant themselves more authority. See /docs/network-policies for replacement semantics and runtime applicability. mcp:write manages MCP server configuration only; it does not authorize remote MCP-tool execution. sessions:read reads sessions, including the assistant, reasoning and tool activity in their events. sessions:debug is privileged: only for organization owners/admins, it expands session events to the full diagnostic projection (diagnostic event kinds, status text and raw event metadata).

Path Parameters

orgId
string
required

Organization id or slug. Resolve it with GET /v3/self.

Query Parameters

status
enum<string>
default:active

Which Sessions to list by archive state, not by run status: active for the working list, archived for archived Sessions only, all for both.

Available options:
active,
archived,
all
origin
string

Where the Sessions were started, one source or several joined by commas: ui is the Reason app, external covers CLI, MCP and API starts together, and external:cli, external:mcp or external:api picks one. Omitted, every source is listed.

Maximum string length: 100
Pattern: ^(?:ui|external|external:(?:cli|mcp|api))(?:,(?:ui|external|external:(?:cli|mcp|api)))*$
archived
enum<string>

Older spelling of status, read only when status is omitted: exclude leaves archived Sessions out, only lists just them, include lists both. With neither filter, archived Sessions are left out.

Available options:
exclude,
only,
include

Words to look for in Session titles, ignoring case and taken literally; transcripts are not searched. A search returns smaller pages, so follow end_cursor for more matches.

Required string length: 3 - 500
project_id
string<uuid>
deprecated

Deprecated: Projects are retired in favour of Reasons. Filters by an accessible Project ID in this Workspace, as returned in a Session's project_id.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
reason_id
string<uuid>

Lists only the Sessions filed under this Reason (listReasons), one you can see or one of your archived ones. The same id as project_id: send either, or both with the same value.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
first
integer
default:20

How many Sessions one page holds, up to 100 (a larger value is capped); a page of search matches holds at most 24.

limit
integer

Same as first, for clients that send limit; first wins when both are set.

after
string

Cursor from the previous page's end_cursor.

Response

A page of sessions, each carrying an insight object.

items
object[]
end_cursor
string | null
has_next_page
boolean