Endpoint
Path parameter
Query parameters
Time range resolution
The API automatically adjusts aggregation granularity based on the requested range:- More than 3 days → daily buckets
- 3 days or less → hourly buckets
Rate limits
5 requests per second per workspace.Response format
All metrics return anAnalyticsResponse object with two fields:
simple — a single scalar value
barchart — time-series data
values represents one time bucket. The keys inside values are metric-specific series names.
table — tabular summary
horizontal-barchart — ranked distribution
Same shape as table, displayed as a horizontal bar chart in the UI.
empty
Returned when there is no data for the requested time range.
Error responses
400 — invalid time rangepage_size out of bounds)
Available metrics
Execution metrics
Cost & token metrics
Costs are estimates based on publicly available model pricing. Cached LLM responses are excluded from cost calculations.
Currency of cost metrics
Model providers price their models in USD. The cost metrics above, and the conversation cost metrics below, convert these amounts into the billing currency of your organization (USD, EUR or GBP) at the European Central Bank rate for the start of the billing period. When no rate is available, amounts stay in USD andcurrency_note says so. All amounts in one response use the same currency.
- A
simplecost metric setscurrencyand puts the currency symbol inprefix. - In a
tablecost metric, eachCostcell is a cost object. model_tokens_total_cost_per_workspacereturns its bars in the same currency asmodel_tokens_total_cost.
Do not assume that cost metrics are in USD. Read
currency, or use prefix only for display.