List metrics broken down by dimension
Return time-series metrics broken down by a dimension. Span scope supports full filtering and dimensions; trace scope accepts no body filters and only customer or organization-key breakdowns; thread scope accepts neither filters nor a breakdown dimension. Each requested metric is a top-level key whose value is an array of time buckets.
Authentication
Use a dashboard JWT only for dashboard-authenticated endpoints. Respan API-key endpoints use the respanApiKey auth field instead.
Query parameters
Preset time range. Use this or explicit start_time / end_time.
Base date used with summary_type presets.
Bucket granularity for time-series responses.
Request
Optional POST body. Only filters is read from the body; time range controls are URL query parameters.
Metrics to return. Supported values depend on scope; when omitted the API returns number of requests, total cost, and total tokens.
Response
Metric-keyed time-series breakdown.