Skip to content

Token Analytics API

Monitor AI token usage, costs, and trends across models and providers.

Prefix: /api/token-analytics

Endpoints

MethodPathDescriptionRole
GET/dashboardGet summary dashboard (total tokens, cost, request count)Viewer+
GET/by-modelGet usage breakdown by AI modelViewer+
GET/by-stepGet usage breakdown by pipeline stepViewer+
GET/by-providerGet usage breakdown by provider (OpenAI, Anthropic, etc.)Viewer+
GET/cost-breakdownGet detailed cost breakdown with period comparisonViewer+
GET/trendsGet usage trends over time (daily/weekly/monthly)Viewer+

UniSync Documentation