Compute per-call usage for a trace, with descendant rollup.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Request to compute per-call usage for a trace, with descendant rollup.
This endpoint returns usage metrics for each call in the trace, where each call's metrics include the sum of its own usage plus all descendants' usage. Use this for trace view where you want to see rolled-up metrics per call.
Note: All matching calls are loaded into memory for aggregation. For very large result sets (>10k calls), consider using more specific filters or pagination at the application layer.
Filter to select calls. Typically use trace_ids to get all calls in a trace.
Additional query conditions for filtering calls.
If true, include cost calculations in the usage.
Maximum number of calls to process. Acts as a safety limit to prevent unbounded memory usage.
Successful Response
Response with per-call usage metrics (each includes descendant contributions).