Tic-Tac-Toe Forfeit
The /tic-tac-toe/forfeit endpoint forfeits (abandons) a game.
posthttps://api.moxon.dev /v6/tic-tac-toe/forfeit
Changed in 6.0.0
This endpoint moved from DELETE to POST, and its identifier left the URL: game is now sent in the JSON body. PATCH and DELETE no longer exist anywhere in the API.
Try itpost/v6/tic-tac-toe/forfeit
curl -X POST \ "https://api.moxon.dev/v6/tic-tac-toe/forfeit" \ -H "Content-Type: application/json" \ -d '{}'Send the request to see the response here.
gamestringrequiredThe game identifier
usernamestringrequiredThe username forfeiting
sessionstringrequiredThe user's session identifier
Good to know
All parameters are sent as a JSON body with Content-Type: application/json.
messagestringConfirmation of the forfeit
winnerstring|nullUsername of the winner (opponent),
nullif the player was alone in the gameloserstringUsername of the player who forfeit
The game is deleted after a forfeit.
If parameters are missing or invalid, the API will return an error:
- 400
Please provide a username (?username={username})Theusernameparameter is missing - 400
Please provide a valid session ID (&session={ID})Thesessionparameter is missing - 400
Please provide a game ID (&game={ID})Thegameparameter is missing - 400
Game not foundThe game does not exist - 400
Session ID mismatchSession doesn't match the player - 400
You are not a player in this gameThe player is not part of this game
- Online Tic-Tac-Toe - How a game works and migrating from v4 and v5
- post/v6/tic-tac-toe/play - Play a move
- post/v6/tic-tac-toe/fetch - Retrieve current game information
- post/v6/tic-tac-toe/list - List all public games
Last updated on October 17, 2026