Billing
Workspace-level credit reporting. Unlike the rest of the API, these operations are not scoped to a project — they report the whole workspace's prepaid credits: the same balance the run, generation, and assistant gates spend against.
| Operation | What it does |
|---|---|
get_credits | The current credit balance: spendable total, this month's plan allowance and what's left of it, and the never-expiring purchased balance. |
list_billing_history | Credit additions — credit-pack purchases + plan/admin grants — newest first. |
list_credit_usage | Credit consumption — a per-area rollup for the cycle plus recent usage debits. |
Per-member consumption is available at GET /api/v1/ops/credits/usage/by-member, MCP list_credit_usage_by_member, or testvibe credits usage --by-member. API-key spend is attributed to its owner; automation and unattributed usage are represented separately.