API

PagesSession

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/organizations/{org_slug}/pages/sessions create Composed transcript search page
GET /api/v1/organizations/{org_slug}/pages/sessions list Organization sessions page contract
GET /api/v1/organizations/{org_slug}/pages/session/{session_id} load Fullscreen session detail page contract

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

pages_sessions, err := client.PagesSession(nil).List(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(pages_sessions)
pages_session, err := client.PagesSession(nil).Load(map[string]any{"id": "example_id", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(pages_session)
created, err := client.PagesSession(nil).Create(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local pages_sessions, err = client:PagesSession():list({ organization_id = "example" })
local pages_session, err = client:PagesSession():load({ id = "example_id", organization_id = "example" })
local created, err = client:PagesSession():create({ organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$pages_sessions = $client->PagesSession()->list(["organization_id" => "example"]);
$pages_session = $client->PagesSession()->load(["id" => "example_id", "organization_id" => "example"]);
$created = $client->PagesSession()->create(["organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

pages_sessions = client.PagesSession().list({"organization_id": "example"})
pages_session = client.PagesSession().load({"id": "example_id", "organization_id": "example"})
created = client.PagesSession().create({ "organization_id": "example" })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

pages_sessions = client.PagesSession.list({ "organization_id" => "example" })
pages_session = client.PagesSession.load({ "id" => "example_id", "organization_id" => "example" })
created = client.PagesSession.create({ "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const pages_sessions = await client.PagesSession().list({ organization_id: "example" })
const pages_session = await client.PagesSession().load({ id: "example_id", organization_id: "example" })
const created = await client.PagesSession().create({ organization_id: "example" })

Fields

Field Type Required Description
adapter string No Adapter
created_at one,string,null Yes Created At
cursor string No Cursor
ended_at one,string,null Yes Ended At
external_session_id string Yes External Session Id
facets object Yes Facets
from string No From
github_access_warnings array No Github Access Warnings
harness string Yes Harness id the session presents as (codex, claude-code, cursor, roder, grok): the captured envelope's harness when recorded, else the adapter's canonical harness.
id string Yes Id
last_activity_at one,string,null Yes When the session last did anything: the newest checkpoint capture, else the session end, else its start.
last_checkpoint_at one,string,null Yes Last Checkpoint At
limit integer No Limit
markers array Yes Markers
max_bytes integer No Max Bytes
mode string No Mode
offset integer No Offset
pagination object Yes Pagination
query string No Query
repo string No Repo
repository any Yes Repository
search any No Search
search_enabled boolean No Search Enabled
session any Yes Identical serialization to the org sessions page's expanded session, so the web reuses one session-detail builder.
sessions array Yes Sessions
started_at one,string,null Yes Started At
stats object Yes Stats
status string No Status
title one,string,null Yes Title
to string No To
token_stats any Yes Token Stats
transcript_index any Yes Transcript Index
transcript_stats any Yes Transcript Stats
updated_at one,string,null Yes Updated At
user any Yes User
user_id string No User Id

create

POST /api/v1/organizations/{org_slug}/pages/sessions

Operation ID: post_api_v1_organizations_org_slug_pages_sessions.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes

Request body

application/json

Property Type Required Description
adapter string No
cursor string No
from string No
limit integer No
max_bytes integer No
mode enum: hybrid, keyword, semantic No
offset integer No
query string No
repo string No
status string No
to string No
user_id string No

Responses

200: Composed transcript search page

application/json

Property Type Required Description
facets object Yes
facets.adapters array of string Yes
facets.repositories array of object and object Yes
facets.users array of object and object Yes
pagination object Yes
pagination.has_more boolean Yes
pagination.limit integer Yes
pagination.offset integer Yes
search object or object No
search_enabled boolean No
session object and object or null Yes
sessions array of object and object Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

list

GET /api/v1/organizations/{org_slug}/pages/sessions

Operation ID: api_v1_pages_sessions.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo query string No Repository slug filter.
adapter query string No Agent adapter/harness filter (codex, claude, cursor, roder, grok).
user_id query string No Public id of the session owner to filter by.
status query string No Session status filter (active, completed, abandoned).
from query string No ISO8601 lower bound (inclusive) on session started_at.
to query string No ISO8601 upper bound (inclusive) on session started_at.
offset query integer No
limit query integer No
session query string No Public id of a session to expand with its checkpoint timeline.

Responses

200: Organization sessions page contract

application/json

Property Type Required Description
facets object Yes
facets.adapters array of string Yes
facets.repositories array of object and object Yes
facets.users array of object and object Yes
pagination object Yes
pagination.has_more boolean Yes
pagination.limit integer Yes
pagination.offset integer Yes
search object or object No
search_enabled boolean No
session object and object or null Yes
sessions array of object and object Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

GET /api/v1/organizations/{org_slug}/pages/session/{session_id}

Operation ID: get_api_v1_organizations_org_slug_pages_session_session_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
session_id path string Yes
checkpoint query string No Public id of a specific uploaded checkpoint to resolve the transcript against. Defaults to the session's latest uploaded checkpoint.
around_event query integer No Search citation event index; requires checkpoint and event_digest.
event_digest query string No Verifies that the cited event still matches before opening the page.

Responses

200: Fullscreen session detail page contract

application/json

Property Type Required Description
github_access_warnings array of object No
github_access_warnings[].checked_at string Yes
github_access_warnings[].installation_id string Yes
github_access_warnings[].label string Yes
github_access_warnings[].reason string Yes
github_access_warnings[].repository string Yes
github_access_warnings[].state enum: unknown, available, unavailable Yes
markers array of object Yes
markers[].checkpoint_id string Yes
markers[].event_count integer Yes
markers[].event_index integer Yes
markers[].git_commit_sha string Yes 40-hex Git commit this checkpoint was sealed at; null when unsealed.
markers[].github_commit_url string Yes Where that commit lives on GitHub, built from the repository's GitHub address. Null when the checkpoint is unsealed or the repository has no GitHub address.
markers[].label string Yes
markers[].linked_commit_ids array of string Yes
markers[].sequence_number integer Yes
session object and object Yes Identical serialization to the org sessions page's expanded session, so the web reuses one session-detail builder. Jump-to data lives in markers, not on these checkpoints.
token_stats object or null Yes
transcript_index object or null Yes
transcript_stats object or null Yes
401: Unauthorized
403: Forbidden
404: The session does not exist in a repository the caller can read

application/json

Property Type Required Description
error string Yes
422: Unprocessable entity
502: Bad gateway