Skip to main content
The Analytics API lets you retrieve workspace metrics programmatically using the same data that powers the in-app analytics dashboards. All queries are scoped to the workspace identified by your API key.
For interactive endpoint documentation with request/response examples, see the API reference.
Authentication follows the same API key mechanism used across all v1 endpoints — refer to the API reference for details.

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 an AnalyticsResponse object with two fields:

simple — a single scalar value

barchart — time-series data

Each item in 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 range
422 — validation error (e.g. page_size out of bounds)
429 — rate limit exceeded

Available metrics

Execution metrics

Cost & token metrics

Costs are estimates based on publicly available model pricing. Cached LLM responses are excluded from cost calculations.

Conversation metrics

API usage metrics

Knowledge base metrics


Examples

Total flow runs for January 2026

Response:

LLM token usage by model (last 7 days)

Response:

Paginated API call log

Response: