Skip to main content
GET
Get exact model-cost summaries for a batch of sessions

Authorizations

Authorization
string
header
required

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

Query Parameters

session_ids
string
required

Comma-separated session ids. The response preserves request order and duplicates. If any id is missing or outside the caller's organization/access policy, the complete request returns 404.

Response

Model-cost rollups for a batch of sessions, so a list view can show spend per row without one read per session.

Model-cost rollups for a batch of sessions, so a list view can show spend per row without one read per session.

session_model_costs
object[] | null
required

One entry per requested session id, in request order and repeated when an id is asked for more than once. Authorization is all-or-nothing: if any requested id is unknown or outside the caller's organization or access policy, the whole request returns 404 rather than a short array.