Skip to content
Peritus
API reference · Account

Get account usage

GET/v1/account/usage

Calls, abstentions, billable responses, latency, and model cost per day, key, preset, and capability. Needs the account scope.

scope
account
auth
Bearer key
operationId
GetAccountUsage

Parameters

Parameters
FieldInTypeRequiredLimits
fromquerystring · dateno
toquerystring · dateno

Response

200 · UsageResponse. The tenant's daily usage from one day to another, both included.

Response fields
FieldType
fromstring · date
tostring · date
planobject
rowsUsageRow[]

Rate-limit headers

RateLimit-Limit
The bucket's size.
RateLimit-Remaining
Tokens left in it.
RateLimit-Reset
Seconds until it is full.

Problems

RFC 9457 application/problem+json. An abstention is not one of these: it is a 200.

Problems
HTTPCodeWhen
400INVALID_REQUESTMalformed JSON, unknown fields, bad filter, limit exceeded
401UNAUTHENTICATEDMissing, malformed, or revoked key
403FORBIDDEN_SCOPEThe key lacks the required scope
429RATE_LIMITEDRate limit or per-tenant model cap
500INTERNAL, POLICY_ASSERT_FAILED, RESPONSE_UNREPLAYABLEServer fault. The last two also alert
503STORE_UNAVAILABLE, LLM_UNAVAILABLE, LOG_UNAVAILABLEA dependency is down or a budget tripped