Skip to main content

Module account

Module account 

Source
Expand description

Account, user and bot endpoints.

Structs§

Autocomplete
Nb

Functions§

autocomplete
Lichess’s GET /api/player/autocomplete: players whose name starts with (then contains) term, for a type-ahead list. With object=true, {"result": [{id, name, online}]}; otherwise a JSON array of names. The computer’s accounts (ai-level-N) aren’t offered: it’s played with POST /api/challenge/ai.
bots_online
Bots seen in the last ten minutes, as NDJSON users.
email
me
GET /api/account: Lichess’s, plus what this server adds about you: roles here (admin, manager), whether your passkey check is done (staff: “checked”, “pending” or absent), how many passkeys you have and whether an Apple ID is linked (apple).
playing
upgrade
Make this account a bot. Lichess’s rules: irreversible, and only for an account that hasn’t played a game.
user