Usage and quota
Usage ledger
The spend and token ledger: one entry per model attempt, newest first. Requires usage_read.
The window filters on when each attempt was recorded. There is no offset: narrow the window to read further back.
GET
Usage ledger
Authorizations
An API key (otsk_ + 64 hex) or a console session token.
Query Parameters
Window start, exactly YYYY-MM-DDTHH:MM:SSZ (UTC), inclusive. Send it with end_at; omit both for the current UTC calendar month.
Window end, exactly YYYY-MM-DDTHH:MM:SSZ (UTC), exclusive. Send it with start_at.
Entries to return. Defaults to 50; values above 200 are clamped to 200. 0 is refused.
Required range:
x >= 0