Authentication
- API key:
Authorization: Bearer <API key>
Path Parameters
The ID of the experiment to get summary statistics for.
Query Parameters
Filter start time (ISO format).
Filter end time (ISO format).
POST Request Body (Optional)
For advanced filtering, you can send a POST request with filters in the body:=or"": Exact match!=or"not": Not equal>,>=,<,<=or"gt","gte","lt","lte": Numeric comparisonscontains: String contains (case-insensitive)startsWith: String starts withendsWith: String ends withinorIN: Value in listnot_inorNOT IN: Value not in list
Examples
Response
total_count: Total number of traces matching filterstotal_cost: Sum of all trace costs (in dollars)total_tokens: Sum of all tokens (input + output)total_prompt_tokens: Sum of all input tokenstotal_completion_tokens: Sum of all output tokensavg_latency: Average latency across all traces (in seconds)
- Uses same filtering logic as list endpoint for consistency
- Returns zeros if no traces match the filters
- Supports both GET and POST methods (POST for advanced filtering)
- Efficient aggregation without loading individual trace data