Skip to main content
Returns the workspace’s effective spend limits, automatic refill settings, and spend alert state. Settings and alert spend cover the whole workspace. Requires workspace Read. API keys can read only their bound workspace. No query parameters or pagination are supported. Alert spending includes excluded/deleted repositories and unattributed usage. Reading does not change settings, trigger alerts or refill credits.

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

An omitted limit means no limit is configured. A limit of "0.00" is a configured limit of zero.
object
string
When the response was generated (RFC 3339). Not a data freshness timestamp.

SpendAlerts

string
Start of the alert period (RFC 3339).
string
End of the alert period (RFC 3339).
Money
Workspace spend tracked for the alert period.
object[]
Configured thresholds, at most 20.

Money

string
Decimal amount in major units, e.g. "50.00".
string
ISO 4217 code, e.g. "USD".