Skip to content
Sign in Create account

Get current balance

GET /api/v1/billing/balance

Returns the authenticated account’s prepaid balance in cents and dollars, low-balance flag, and configured threshold. Bearer-token callers need the billing.read ability; API-key callers must provide a valid API key. This read operation does not require legal acceptance.

Authenticate with an API key or a portal session token.

Responses

200 Authenticated prepaid balance and low-balance threshold.

application/json object

  • balance_cents integer required
  • balance_dollars number required
  • is_low_balance boolean required
  • low_balance_threshold_dollars number required
  • balance_micros integer required

    Exact balance in USD micro-dollars. Existing cents fields remain for compatibility.

Generated sample

{
  "balance_cents": 0,
  "balance_dollars": 0,
  "is_low_balance": true,
  "low_balance_threshold_dollars": 0,
  "balance_micros": 0
}
401 Missing or invalid bearer token.

application/json object

Any keys are accepted.

403 A bearer token is missing the billing.read ability.

application/json any

Any of

  • object
    • error string required
      Value: "token_ability_missing"
    • have array of string required
    • message string required
    • required array of string required
  • object
    • message string required
429 The request was rate limited. API-generated responses are JSON;

Response headers

  • Retry-After string header

    Seconds to wait before retrying, when provided.

  • X-RateLimit-Scope string header

    Identifies the scope of the request limit, when provided.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string