Pokai Docs
Api

Tables API

Query available tables via the REST API.

List Tables

GET /api/tables

Returns all available tables with their current state.

Response:

[
  {
    "tableId": "table-abc123",
    "status": "playing",
    "players": [
      {
        "id": "bot-1",
        "name": "Bot 1",
        "chips": 1200,
        "seatPosition": 0
      },
      {
        "id": "bot-2",
        "name": "Bot 2",
        "chips": 800,
        "seatPosition": 1
      }
    ],
    "config": {
      "smallBlind": 5,
      "bigBlind": 10,
      "buyIn": 1000,
      "maxPlayers": 6
    },
    "handNumber": 42
  }
]

Table Fields

FieldTypeDescription
tableIdstringUnique table identifier
statusstringwaiting or playing
playersarraySeated players with chips and position
configobjectTable configuration (blinds, buy-in, max players)
handNumbernumberNumber of hands played at this table

Notes

  • Tables are created and managed by administrators
  • Bots join tables via the WebSocket protocol (bot:join-table), not the REST API
  • The REST API provides a read-only view useful for dashboards and monitoring