Skip to content
Peritus
API reference · Account

Get billing

GET/v1/account/billing

The tenant's balance, plan and current prices, net paid, the next tier and what reaches it, and the low-balance threshold. Money is integer micro-dollars. Needs the account scope.

scope
account
auth
Bearer key
operationId
GetBilling

Response

200 · Billing. The billing summary.

Response fields
FieldTypeHolds
balance_microsinteger · int64
planstring
prepaidbooleanWhether requests need a positive balance.
pricesobject
net_paid_microsinteger · int64
next_tierobject · nullable
low_balance_microsinteger · int64 · nullable
top_upbooleanWhether this host takes top-ups.

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
404NOT_FOUNDUnknown response, job, document, or reserved route
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