Get aggregated statistics for spans/log rows in a time range. `start_time`, `end_time`, and `environment` are URL query parameters. Additional filters must be sent in the JSON body under `filters`; fields such as `log_type` are not read as summary query parameters. When `filters` is omitted or empty, the backend may use the pre-aggregated summary path; when `filters` is non-empty, it queries raw logs using the same filter object shape as List spans.
Request
This endpoint expects an object.
Response
Summary statistics for matching spans.
number_of_requestsinteger
Total number of matching spans/log rows.
total_costdouble
Total cost in USD for all matching spans/log rows.
total_tokensinteger
Total tokens across all matching spans/log rows.
total_prompt_tokensinteger
Total prompt/input tokens.
total_completion_tokensinteger
Total completion/output tokens.
avg_latencydouble
Average latency in seconds.
avg_tpsdouble
Average tokens per second.
avg_ttftdouble
Average time to first token in seconds.
scoresmap from strings to any
Aggregated score summaries grouped by evaluator ID.