Skip to content
Sign in Create account

Get current balance

GET /api/billing/balance

Returns the authenticated account's prepaid balance in cents and dollars, low-balance flag, and configured threshold. The route requires the billing balance authentication middleware and accepted terms.

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 The caller does not meet the route requirements: accepted Terms of Service and Privacy Policy.

application/json object

Any keys are accepted.

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