Skip to main content
GET
Page session nodes and scoped model-cost summaries without loading events

Authorizations

Authorization
string
header
required

A Recursion API key, created in the console under API keys.

Path Parameters

session_id
string<uuid>
required

Session id (UUID) the cost read is scoped to. Any id in the tree; scope decides how far the read reaches from it.

Query Parameters

scope
enum<string>
default:self

self selects only this session; subtree selects this session and descendants; tree selects the complete root tree.

Available options:
self,
subtree,
tree
limit
integer
default:50
Required range: 1 <= x <= 100
page_token
string

Signed, organization/session/scope/limit/snapshot-bound continuation token.

model_cost_snapshot_token
string

Signed token returned by a model-cost detail page. Pins this companion read to the exact same organization/session/scope snapshot.

Response

One page of the session hierarchy behind a model-cost read, paginated independently of the attempt detail so a wide tree cannot crowd out attempts.

One page of the session hierarchy behind a model-cost read, paginated independently of the attempt detail so a wide tree cannot crowd out attempts.

model_cost_snapshot_token
string
required

Signed organization/session/scope-bound token that pins companion model-cost reads to this exact snapshot.

read_timestamp
string<date-time>
required

RFC 3339 timestamp of the database snapshot these rollups were read from.

scope
enum<string>
required

How far the hierarchy read reached from that session: this session alone (self), this session and its descendants (subtree), or every session under the same root (tree).

Available options:
self,
subtree,
tree
session_id
string
required

Session the read was scoped to (UUID).

session_nodes
object[] | null
required

Sessions in scope, ordered by session_path then session_id, up to the requested limit.

next_page_token
string

Continuation for the next page, passed back as page_token. Absent on the last page, and bound to this organization, session, scope, limit, and snapshot.