Authentication
Send Authorization: Bearer kirichess_pat_… on every request. Scopes are exactly two. A token never carries admin or 2FA claims, even if the account does. Up to 10 tokens can be active at once. A token lasts 90 days unless you choose another life between 1 and 365 days, and you can revoke it sooner from the API tokens card on your profile page.
The value after kirichess_pat_ is 43 characters from the URL-safe base64 alphabet (A–Z, a–z, 0–9, hyphen, underscore), then 6 checksum characters. The checksum is the CRC-32 (IEEE) of those 43 characters, written as 6 base62 digits in the alphabet 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz and padded on the left with zeros. A secret scanner can reject a string that fails that check without calling this server.
- read, identity, your games, finished replays, your open challenges, bot-pool ratings, bot seeks.
- play, create unrated games and challenges, move and resign, and join bot-pool matchmaking over the hub. Play implies read at issue time.
Your engine runs in the process that calls this API. Browser origins other than this site stay blocked; CORS is not widened for this API.
curl https://api.kirichess.com/api/v1/account \
-H "Authorization: Bearer $KIRICHESS_API_TOKEN"