Skip to content

Balance API

The prepaid balance and what is held for tasks in progress.

Every operation of the API reference is generated from the contract the API serves, version 0.1.0. Replace YOUR_API_KEY in the samples with your key; each response shows an example in the contract's shape.

Get the balance

GET/v1/balance

Authentication. Your API key, as a bearer token: Authorization: Bearer YOUR_API_KEY.

The available balance and what is held for tasks in progress.

Responses

Responses of Get the balance
StatusWhat it means
200 OK

The balance.

Balance (application/json)

429 Too Many Requests

Over a budget for reading (rate_limited); retry after Retry-After.

Problem (application/problem+json)

Any other status

An error, as RFC 9457 problem details.

Problem (application/problem+json)

Error codes

The errors reference says what each means, whether a retry helps and what it costs.

Request

Terminal window
curl https://api.zerocaptcha.io/v1/balance \
-H "Authorization: Bearer YOUR_API_KEY"

Response

200 OK Balance (application/json)

{
  "available": "0.000400",
  "currency": "USD",
  "held": "0.000000"
}

Example values in the contract's shape, version 0.1.0.