Read the balance and this key's spend bounds
Current Balance plus optional Committed, Spendable, and period Spent totals. `keyBounds` carries this key's scopes, per-request ceiling, rolling budget, budget window, and remaining headroom; `budgetPeriodDays` and `budgetRemaining` are null when the key has no budget. The read is organization-wide. Free.
Current Balance plus optional Committed, Spendable, and period Spent totals. keyBounds carries this key's scopes, per-request ceiling, rolling budget, budget window, and remaining headroom; budgetPeriodDays and budgetRemaining are null when the key has no budget. The read is organization-wide.
Free.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/wallet"{ "balance": 500, "committed": 120, "spendable": 380, "spentThisPeriod": 42, "lifetimePurchased": 0, "lifetimeGranted": 500, "lifetimeUsed": 42, "keyBounds": { "scopes": [ "company:read", "search:run" ], "maxRequestCredits": 200, "budgetCredits": 2000, "budgetPeriodDays": 30, "budgetRemaining": 2000 }}