Skip to content
moxon home

Tic-Tac-Toe List

The /tic-tac-toe/list endpoint lists all public games currently in progress. This endpoint does not return private or finished games.

posthttps://api.moxon.dev/v6/tic-tac-toe/list

Good to know

The list only includes public games currently in progress (not finished). Games are sorted by creation time with the most recent first. Private games are never included in this list for privacy reasons. You can join any listed game using its ID with the /tic-tac-toe/play or /tic-tac-toe/fetch endpoint.

Try itpost/v6/tic-tac-toe/list

Parameters

This endpoint does not require any parameters. It returns all currently active public games.

Code Examples

Response Fields

  • messagestring

    Status message

  • countnumber

    Total number of public games

  • gamesobject[]

    Array of public game objects

  • games[].idstring

    Game identifier

  • games[].playersstring[]

    Array of player usernames

  • games[].playersCountnumber

    Number of players in the game

  • games[].movesnumber

    Number of moves made in the game

  • games[].turnstring

    Username of the player whose turn it is

  • games[].statusstring

    Game status (waiting, ready)

  • games[].creationnumber

    Game creation timestamp (in milliseconds)

Game Statuses

StatusDescription
waitingGame has fewer than 2 players, waiting for others to join
readyGame has two players and is active

Error Handling

This endpoint does not require parameters and will not return parameter-related errors.