Tic-Tac-Toe Forfeit
The /tic-tac-toe/:game endpoint forfeits (abandons) a game.
deletehttps://api.moxon.dev /v5/tic-tac-toe/:game
Try itdelete/v5/tic-tac-toe/:game
curl -X DELETE \ "https://api.moxon.dev/v5/tic-tac-toe/VWXYZ" \ -H "Content-Type: application/json" \ -d '{}'Send the request to see the response here.
gamestringrequiredThe game identifier (URL parameter)
usernamestringrequiredThe username forfeiting
sessionstringrequiredThe user's session identifier
Good to know
The game parameter is part of the URL path. The other parameters are sent as a JSON body with Content-Type: application/json.
messagestringConfirmation of the forfeit
winnerstringUsername of the winner (opponent)
loserstringUsername of the player who forfeit
If parameters are missing or invalid, the API will return an error:
- 400
Session ID mismatchSession doesn't match the player
- post/v5/tic-tac-toe - Main game endpoint for making moves
- patch/v5/tic-tac-toe/:game - Play a move
- post/v5/tic-tac-toe/fetch - Retrieve current game information
- post/v5/tic-tac-toe/list - List all public games
Last updated on May 25, 2026