Api
Tables API
Query available tables via the REST API.
List Tables
GET /api/tablesReturns 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
| Field | Type | Description |
|---|---|---|
tableId | string | Unique table identifier |
status | string | waiting or playing |
players | array | Seated players with chips and position |
config | object | Table configuration (blinds, buy-in, max players) |
handNumber | number | Number 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