Skip to main content
GET
Sessions in a repository

Authorizations

Authorization
string
header
required

OAuth 2.0 authorization code flow.

Path Parameters

repo_id
string
required

Query Parameters

scope
enum<string>

Set to all to include every historically linked repo session; omit for branch/default-branch or base/head reachability

Available options:
all
branch
string

Branch to filter to; empty = the repo's default branch

base
string

Base branch or commit SHA to exclude; must be supplied with head and without branch

head
string

Head branch or commit SHA to include; must be supplied with base and without branch

cursor
string
limit
integer<int64>
default:50

Page size, clamped to 1..200

since
string

RFC 3339 lower bound on last_activity_at, inclusive (optional; unbounded by default)

until
string

RFC 3339 upper bound on last_activity_at, exclusive (optional; unbounded by default — in practice capped 100 years out, an unreachable bound for any real session)

includeFacets
boolean

Include complete scoped author, agent, and model filter choices on the first page; ignored with cursor

authorFacet
string[] | null

Match any author facet key (repeatable or comma-separated)

authorFacetNot
string[] | null

Exclude author facet keys (repeatable or comma-separated)

agent
string[] | null

Match any agent (repeatable or comma-separated)

agentNot
string[] | null

Exclude agents (repeatable or comma-separated)

model
string[] | null

Match any model (repeatable or comma-separated)

modelNot
string[] | null

Exclude models (repeatable or comma-separated)

isReview
enum<string>

Match Review sessions when true, or non-Review sessions when false

Available options:
true,
false

Case-insensitive literal substring over effective name, prompt, and agent

Response

OK

app_has_access
boolean
required
history_complete
boolean
required
history_status
string
required
next_cursor
string | null
required
repo_full_name
string
required
session_branch_exists
boolean
required
sessions
object[] | null
required
source
string
required
$schema
string<uri>
read-only

A URL to the JSON Schema for this object.

Example:

"/api/v1/schemas/RepoSessionsOutputBody.json"

facets
object