Skip to content

Account

Token balance of the authenticated user.

Get token balance info

Request

Retrieves the total token balance, reserved tokens, and free tokens for the user associated with the provided Bearer token.

Security
BearerAuth
Headers
Authorizationstring

Authorization header with a Bearer token, formatted as 'Bearer [JWT]' where [JWT] is the JSON Web Token used for user authentication and authorization.

Example:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.your-payload-here.signature
curl -i -X GET \
  https://api.open-atlas.com/_mock/openapi/users/check_tokens \
  -H 'Authorization: Bearer <YOUR_JWT or vantage_live_ API key_HERE>'

Responses

Token balance details retrieved successfully

Bodyapplication/json
token_balanceinteger

Total tokens on the account

Example:100
reserved_tokensinteger

Tokens held for jobs that are still running

Example:22
free_tokensinteger

token_balance minus reserved_tokens: what a new job can spend

Example:78
Response
{ "token_balance": 100, "reserved_tokens": 22, "free_tokens": 78 }