Skip to main content
Returns the workspace’s credit balances and billed amounts for the current period. Amounts cover the whole workspace and are provisional. Requires workspace Read. API keys can read only their bound workspace. No query parameters or pagination are supported. Excluded/deleted repositories and unattributed usage remain included. Plan amounts and credit balances are not an atomic snapshot. An unavailable balance is not zero: check balanceAvailable, which is omitted when false. Failed plan/balance reads fail the request; unknown plan currency returns 400 (FAILED_PRECONDITION). This operation does not initiate payments.

Authorization

string
required
Bearer <key>. See Authentication.

Path parameters

string
required
GITHUB_ORGANIZATION or GITHUB_USER.
string
required
Numeric GitHub ID of the organization or user.

Response

object
string
When the response was generated (RFC 3339). Not a data freshness timestamp.

Money

An omitted Money object means no value, not zero.
string
Decimal amount in major units, e.g. "120.50". Cent values retain two decimals; USD centimill values retain five. Preserve decimal precision.
string
ISO 4217 code, e.g. "USD".