org.lichess.puzzle.getNextRanked

Fetches the next ranked puzzle for the authenticated player. Each puzzle needs to be solved or failed before requesting another; if the player already holds an unresolved ranked puzzle, that same puzzle (with a freshly re-signed challenge) is returned so a client that lost its token can recover it.

Repository @pds.dad did:plc:rnpkyqnmsw4ipey6eotbdnnf not from the namespace authority
Details · query
Kindquery
Authoritypuzzle.lichess.org
Indexed

Query

query · GET

Output

application/json

challenge

requiredstring

Opaque signed token (JWT/HMAC/ed25519) encoding puzzleId, player DID, rating+RD snapshot, puzzle rating, nonce, and expiry. Passed back verbatim to submitAttempt. Empty for casual if you choose not to issue one.

  • maxLength: 4096

puzzle

requiredref

The puzzle to solve. The player must find the continuation after the puzzle's first move (moves[0]).

ranked

requiredboolean

Echoes whether this puzzle is scored.

Errors

OutstandingPuzzle

The player already has an unresolved ranked puzzle. Submit or let it time out before requesting another. This is what blocks request-peek-reroll grinding.

NoPuzzleAvailable

No puzzle matched the requested filters.

PlayerLimited

The player is temporarily blocked from ranked play. The message includes the RFC 3339 timestamp when the limit lifts. Submitting an already-outstanding puzzle still works.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • org.lichess.puzzle.submitAttempt

    procedure not from the namespace authority

    Submits the outcome of a ranked puzzle previously issued by getNextRanked. The challenge token issued with the puzzle must be passed back verbatim, along with the full solution line the player played. The server validates those moves against the puzzle's actual solution: the attempt counts as solved only if they match. Applies the Glicko-2 rating update and returns the player's new rating, plus a detached signature (sig) proving the server judged the moves; the client should store it in its org.

  • org.lichess.puzzle.getLeaderboard

    query not from the namespace authority

    The ranked leaderboard, best rating first. Only established players appear: provisional ratings (high deviation), players with too few rated attempts, and players currently limited from ranked play are excluded.

  • org.lichess.puzzle.attempt

    record not from the namespace authority

    A record of a user's attempt at solving an org.lichess.puzzle. Ranked attempts carry a detached signature (sig) from the service proving the submitted moves were judged server-side. Rating is not part of the record: it is each scoring service's (appview's) own business.