What the caller used in a month, priced
The caller's own usage in one UTC calendar month, from the usage ledger of the people (ADR 0065): the tokens their threads used, per provider and model, and the time the commands of their runs used in a sandbox, per shape of the sandbox, with a price on each line and a priced total. There is no owner or user parameter and none will be: the route answers for the authenticated person and for nobody else, whatever their roles (as getMe does; a person whose roles grant nothing reads their own usage too). Another key in the query is a 400. The answer is never cached.
What is counted. A task (an agent's A2A task in a thread) counts once: its latest model_usage_total replaces its counts, and while it has none its model_usage calls add up (usage-v1.md). A task is counted in the UTC month of the latest event that changed it, whole, so a task that crosses a month end moves into the later month when its next event arrives and the figure of a month that has ended is not final while a task of it is open. The usage of a thread outlives the thread: erasing a thread does not remove it. Months older than usage.retentionMonths (24 by default, the current month one of them) are removed by a sweep and read as empty.
How it is priced (usage.prices of the configuration, in integers, no floating point: money is millionths of the currency unit, written with exactly six decimals). The table is the current one: changing it re-prices every month, and prices says which table priced this answer (sha256: and 16 hex digits of its canonical form; null with no table). A model line costs (inputTokens - cachedInputTokens) * input + cachedInputTokens * cachedInput + outputTokens * output per million tokens, divided once by 1 000 000 and rounded half up; cached tokens are a part of the input (capped at it), tokens written to a cache are input tokens, and reasoning tokens are output tokens: none is a charge of its own. A line matches the table's entry for the same provider (a line with none matches an entry with none) and the same model, exactly. A sandbox line costs hours * (cores * cpuCoreHour + gib * gibHour) with hours = milliseconds / 3 600 000, cores = cpuMillis / 1000 and gib = memoryBytes / 2^30, one exact fraction rounded half up; a shape that lacks cpuMillis or memoryBytes (the pod asked for none) has no price.
A line with no price is said so and is never counted as free. price is null for a model the table does not price (or any model, when there is no table), for a sandbox shape the table does not price or that has no CPU or memory request, and for a line whose arithmetic would overflow; unmeasured lists the tasks whose commands ran where the sandbox is not measured (local, devcontainer), which are never priced. total.amount is the sum of the priced lines, and total.complete is true only when no line is unpriced and nothing is unmeasured (a month with no usage at all is complete, at 0.000000); total.unpriced says what is missing. A client that shows the total shows it as "at least" when complete is false.
Authorizations
A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.
A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".
Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.
Parameters
Query Parameters
The UTC calendar month, YYYY-MM (a year from 0001 and a month from 01 to 12). The current UTC month by default. A month the ledger holds nothing for (in the future, or older than the retention) is an empty, complete answer, not an error
"2026-10""^[0-9]{4}-(0[1-9]|1[0-2])$"Responses
The caller's month