4e064cf81dae
latestOpenAPI 3.1.02026-08-131831,331960.0 KBGet spans summary
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.
Query parameters
Start of time range (ISO 8601).
End of time range (ISO 8601).
Filter by environment (prod or test).
Headers
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.
Request body
Response
Summary statistics for matching spans.