Skip to main content
GET
Get the credit balance

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer <API key>. Keys begin with sk-. A missing or invalid key answers 401 UNAUTHENTICATED. Never expose an API key in browser code.

Headers

X-Request-Id
string

Optional caller-supplied correlation ID, echoed as sent in the response header. Omit it and the service generates one. Use it for tracing and support.

Minimum string length: 1

Response

The one canonical balance value.

balance
number
required

Current spendable credit balance for the API key: the account (or organization) balance, plus the balance of an active contract assigned to an organization key, capped by the key's own credit limit, never below 0.