Skip to Content
UsageMax Docs

HTTP API

Read public usage projections and find the collector and delegated workspace contracts.

Use https://usagemax.com/api as the API base URL. The OpenAPI document defines request parameters and response shapes.

For a Python client, see the Python SDK.

Public reads

curl --fail-with-body https://usagemax.com/api/stats
curl --fail-with-body 'https://usagemax.com/api/leaderboard?period=7d&metric=tokens'
EndpointReturns
GET /api/healthService status and supported collector protocol.
GET /api/statsAggregate public network stats.
GET /api/leaderboardBounded rankings by time period and metric.
GET /api/profiles/{handle}A published profile and its aggregate model usage.
GET /api/profiles/{handle}/dailyDaily totals for a published profile.
GET /api/profiles/{handle}/daily/detailA privacy-safe breakdown grouped by model, source, or device.

Public endpoints expose published projections. Private workspace data requires delegated authorization and workspace membership. Inspect the protected-resource metadata and the OpenAPI entry for GET /api/v1/agent/workspace.

Collector access

Collector credentials are device-bound and write-scoped. Send the bearer token and x-usagemax-device-id over HTTPS. For writes, see Telemetry ingestion.

On this page