Compute aggregated usage for multiple root calls, 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 aggregated usage for multiple root calls.
This endpoint returns usage metrics for each requested root call, where each root's metrics include the sum of its own usage plus all descendants' usage.
Note: All matching calls are loaded into memory for aggregation. For very large result sets (>10k calls), consider batching root call IDs or using narrower filters at the application layer.
Root call IDs to aggregate. Each result key corresponds to one input call ID.
If true, include cost calculations in the usage.
Maximum number of calls to process across all traces. Acts as a safety limit to prevent unbounded memory usage.
Successful Response
Response with aggregated usage metrics per root call.