List my live games
GET
/bot/games
const url = 'https://play-api.jc.id.lv/bot/games';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://play-api.jc.id.lv/bot/games \ --header 'Authorization: Bearer <token>'Every live game the caller is seated in — the polling counterpart of GameStart and the post-restart recovery path.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Live games.
Media typeapplication/json
object
games
required
Array<object>
object
gameId
required
string
seat
required
string
activeSeat
required
string
dicePending
required
boolean
timeControl
required
One of:
A single-key time-control wrapper.
object
Unlimited
required
object
A single-key time-control wrapper.
object
SuddenDeath
required
object
initialSeconds
required
integer
A single-key time-control wrapper.
object
Fischer
required
object
initialSeconds
required
integer
incrementSeconds
required
integer
A single-key time-control wrapper.
object
PerMove
required
object
secondsPerMove
required
integer
clocks
Remaining milliseconds per side as of the carrying event; null on Unlimited games.
object
white
integer
black
integer
version
required
integer
Example
{ "games": [ { "seat": "White", "activeSeat": "White" } ]}