Board

Handle draw offers

Create/accept/decline draw offers.

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

Request

  • Base URL
    https://lichess.org
  • URL
    https://lichess.org/api/board/game/{gameId}/draw/{accept}
  • Auth
    OAuth 2
    Authorization code: https://lichess.org/oauth
    Token URL: https://lichess.org/api/token scopes: board: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.