Get current-period consumption
Returns the current-period cost, token, and per-minute request counters for the budget. Values reflect the live Redis state for the active period bucket.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Budget id whose counters should be returned.
Response
OK
Budget id whose counters are reported.
Period the cost / tokens counters bucket against.
BUDGET_PERIOD_UNSPECIFIED, BUDGET_PERIOD_DAILY, BUDGET_PERIOD_WEEKLY, BUDGET_PERIOD_MONTHLY, BUDGET_PERIOD_YEARLY, BUDGET_PERIOD_ONE_TIME Period bucket label (e.g. "2025-05-27" for DAILY, "2025-05" for MONTHLY). Empty when no counters exist for the current period.
Cost accumulated in the current period, in USD.
Tokens accumulated in the current period. Carried as a double (not int64) so it serializes as a JSON number rather than a quoted string, matching BudgetUsage.tokens and limits.token_limit.
Requests counted in the current 60-second rolling window.