Skip to content

Tic-Tac-Toe List

The /tic-tac-toe/list endpoint lists all public games currently in progress.

Parameters

This endpoint does not require any parameters.

Request Example

bash
curl -X POST "https://api.sylvain.pro/v3/tic-tac-toe/list"

Response

json
{
  "games": [
        {
          "game": "VWXYZ",
          "players": ["User1", "User2"],
          "status": "in_progress",
          "created_at": "2025-01-21T10:30:00.000Z"
        },
        {
          "game": "ABCDE",
          "players": ["User3"],
          "status": "waiting",
          "created_at": "2025-01-21T10:35:00.000Z"
        }
    ],
  "total": 2
}

Response Fields

FieldDescription
gamesArray of public game objects
games[].gameGame identifier
games[].playersArray of player usernames
games[].statusGame status (waiting, in_progress)
games[].created_atGame creation timestamp
totalTotal number of public games

Game Statuses

StatusDescription
waitingGame has one player, waiting for opponent
in_progressGame has two players and is active

Error Handling

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