Bot

Handle draw offers

Create/accept/decline draw offers with the Bot API.

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

Request

  • Base URL
    https://lichess.org
  • URL
    https://lichess.org/api/bot/game/{gameId}/draw/{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 draw offer was successfully sent.

okboolean required

Changes

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