Roll up token and cost totals for a batch of sessions
Rolls up token counts and cost for the sessions named in sessionIdAny and returns one row per session. Ids that do not exist in this organization are omitted rather than erroring, so compare the row count against what you asked for. The request is rejected if it names more ids than the per-request maximum.
Authorizations
A Recursion API key, created in the console under API keys.
Headers
Optional tenant consistency check. When present, it must name the tenant bound to the API key, including when x-organization-id is default.
1Organization in which to act. Required for a tenant-scoped API key. Optional for an organization-scoped key, where it must name that same organization. The value may be an organization id or default.
1Query Parameters
Comma-separated session ids to roll up, matching the ids returned by GET /v2/sessions. Ids that do not exist in this organization or are outside the caller's access policy are omitted from the response rather than erroring.
1 - 1000 elementsResponse
OK
One roll-up row per requested session id that the caller can see. An empty array when none of the requested ids resolved. Ids naming nothing visible are omitted, so the result may be shorter than sessionIdAny and the order should not be assumed to match.