billing

Get Balance

Get current credit balance.

Without repo_id: returns the user's personal balance. With repo_id: resolves which pool (personal or team) would be debited for that repo and returns that pool's balance instead, so the UI always shows the balance that actually matters for the action the user is about to take.

get/billing/balance

Query parameters

repo_idstring nullable

When provided, returns the effective pool balance (team or personal) that would be debited for this repo.

When provided, returns the effective pool balance (team or personal) that would be debited for this repo.

Response

Successful Response

balance_centsinteger required
balance_dollarsnumber required
tier'free' | 'pro' | 'teams' | 'admin' required
poolstring
team_idstring nullable
team_namestring nullable

Changes

No recorded changes to this endpoint across all 1 revision of this API.