API Reference
Usage & Credits
Check credit balances, per-project usage, transaction history, plan and subscription.
Laatst bijgewerkt:
Usage, Credits & Subscription API
Inspect credit balances, plan limits, active subscription, and the credit transaction ledger for the authenticated user.
Summary
GET /api/v1/usage/summaryReturns current credits, infrastructure usage, active plan, billing period, and the credits consumed during the current period.
Per-project Usage
GET /api/v1/usage/projectsTransaction Ledger
GET /api/v1/usage/transactions?page=1&limit=50&type=refinementPaginated list of credit debits and credits. Optionaltype filter limits the result to one transaction type.
Current Plan
GET /api/v1/user/planCurrent Subscription
GET /api/v1/subscriptions/currentSafe fields only — Stripe customer and subscription IDs are never exposed through the public API.