Menu

Sessions

session.get

Returns one session: its state, times and totals.

Who calls it

You → usPOST /v1/session.get

Support uses it to see if and why a session closed. Sign the call with your API key. See Authentication.

Request

FieldTypeWhat it is
sessionIdstringWhich session.

Answer

FieldTypeWhat it is
statestringactive or closed.
closedBystringcasino, player or system.
reasonstringWhy it closed.
startedAtstring, UTC timeWhen the session started.
openedAtstring, UTC timeWhen the game link was first opened. Empty means the link was never opened. It does not prove the game finished loading.
closedAtstring, UTC timeWhen it closed.
betSettingsobjectThe bets the player was allowed.
roundCountintegerRounds that ended.
betTotalintegerTotal bets of ended rounds.
winTotalintegerTotal wins of ended rounds.

Both sides can check that they counted the same.

Errors

CodeWhenYour next step
session_not_foundNo session with this sessionId in this environment.Check the id and the Environment header.

Every call can also return the codes that guard all calls. See Error codes.

Example

POST /v1/session.getExample
Request
{ "sessionId": "s-01JC8Z…" }