Skip to main content
Authentication is a two-step process: exchange your account credentials for an access token (API key) once, then send that token with every subsequent request.

Step 1 — Generate your access token

Send a POST request to /api/user with your account username and password encoded as HTTP Basic Auth (base64(username:password)). See the full endpoint in Generate Access Token.

Response

Your AccessToken is your API key. Store it securely (e.g. an environment variable) and never expose it in client-side code.

Step 2 — Authenticate your requests

Send your API key in the Authorization header on every other API call. The Token scheme is recommended; Bearer and the raw key are also accepted:
string
required
Token <your_api_key> — your API key from Step 1. (Bearer <your_api_key> also works.)
Requests without a valid key return 401/403 Unauthorized. A common mistake is sending the wrong value — make sure it’s your API key, not your password. Keep the key secret; anyone with it can spend your wallet balance.