lichess.org
Donate

Create URL that automatically challenges an AI

Based on FENs (or even better PGNs), I would like to create a URL that, upon clicking it, automatically starts a game between the player and the computer, based on the time control, color, etc. that I want. The best I could come up with so far is this:

lichess.org/?fen=5k2/8/8/3PK3/8/8/8/8%20w%20-%20-%200%201#ai

It's not bad, but ultimately I'd like to control which color, time control, etc. the player has. I saw that the api has a createChallenge route (lichess.org/api#tag/Challenges/operation/challengeCreate), but it requires POST requests and OAuth2.

Is there a way to create URLs with GET request parameters to achieve this?

This topic has been archived and can no longer be replied to.