Skip to content

Analytics export

Last updated: 2026-10-28T13:54:53-03:00 (UTC-3)

Take the usage summary into a spreadsheet or your monthly report: the same view you see in Analytics, as CSV. Flag: analytics_export, which requires usage_analytics.

In the console: Usage → Export summary CSV. The file uses exactly the period and filters applied on the screen.

Through the API: GET /api/v1/admin/analytics/export, with the same filters as analytics: from, to (up to 90 days), principal, model, team, provider, key_id and operation. Each filter accepts an exact value of up to 256 bytes.

  • The summary for the period and, with analytics_comparison, the previous period of the same length.
  • Up to 20 groups per dimension (model, team, provider…), sorted by number of events.
  • Tokens reported by the provider, the coverage (token_reports), and the mean and p95 of the duration.

The X-Analytics-Truncated-Dimensions header lists the dimensions that went over 20 groups; X-Analytics-Export-Scope: summary-and-top-dimensions and X-Analytics-Dimension-Limit: 20 make the scope explicit.

Not in the file: cost, prompts, responses, credentials and the time series. For individual events, use the Request logs export; for cost, Cost estimates in Analytics.

  • Tokens are only those reported by the provider. token_reports counts events with at least one counter (including zero); missing information is not zero.
  • Duration is the gateway’s, end to end: it is not TTFT nor provider-only latency.
  • Success is HTTP 200 to 399; error, 400 or above.
  • Values that a spreadsheet would interpret as formulas are neutralized.

The same authorization as analytics. Team roles export only their own team; operator does not export usage. The response is no-store.

  • A window of up to 90 days and a 5 s query.
  • The panels are separate queries: a new event can appear between them.

m7gtw[email protected]