Usage endpoint
Export your usage history as JSON or CSV.
GET
/usage/history?days=30userReturn the last N days of per-request usage for the caller.
The response is an array of usage events, each with timestamp, model, input/output tokens, cost, tier, latency, and the optional X-HiWay-User attribution if present.
GET
/usage/export?format=csv&days=90userSame data, exported as CSV. Great for spreadsheet analysis and month-end reconciliation.
Per-user scoping
Usage endpoints are scoped to the authenticated caller. Your data is isolated — no way for another user's request to leak through a shared endpoint.