Bot

Handle takeback offers

Create/accept/decline takebacks with the Bot API.

  • yes: Propose a takeback, or accept the opponent's takeback offer.
  • no: Decline a takeback offer from the opponent.
post/api/bot/game/{gameId}/takeback/{accept}

Request

  • Base URL
    https://lichess.org
  • URL
    https://lichess.org/api/bot/game/{gameId}/takeback/{accept}
  • Auth
    OAuth 2
    Authorization code: https://lichess.org/oauth
    Token URL: https://lichess.org/api/token scopes: bot:play

Path parameters

gameIdstring required
Example:5IrD6Gzz
boolean required
OR
'yes' required

Response

The takeback offer was successfully sent.

okboolean required

Changes

No recorded changes to this operation across all 16 revisions of this API.