GET /credits to inspect the authenticated organization’s available balance before kicking off more work or to display usage state in an admin UI.
Response shape
The credits response includes:organization_id: the owner of the balancetotal_available_credits: the current spendable totaltotal_expiring_in_30_days: credits that will age out soonbuckets: individual balance buckets with remaining tokens and expiration timestamps
Example
Practical uses
- Block or warn before high-volume upload bursts
- Surface expiring balances in internal tooling
- Reconcile billing and usage reports against CapOut balances