Sessions
session.get
Returns one session: its state, times and totals.
Who calls it
You → us
POST /v1/session.getSupport uses it to see if and why a session closed. Sign the call with your API key. See Authentication.
Request
| Field | Type | What it is |
|---|---|---|
sessionId | string | Which session. |
Answer
| Field | Type | What it is |
|---|---|---|
state | string | active or closed. |
closedBy | string | casino, player or system. |
reason | string | Why it closed. |
startedAt | string, UTC time | When the session started. |
openedAt | string, UTC time | When the game link was first opened. Empty means the link was never opened. It does not prove the game finished loading. |
closedAt | string, UTC time | When it closed. |
betSettings | object | The bets the player was allowed. |
roundCount | integer | Rounds that ended. |
betTotal | integer | Total bets of ended rounds. |
winTotal | integer | Total wins of ended rounds. |
Both sides can check that they counted the same.
Errors
| Code | When | Your next step |
|---|---|---|
session_not_found | No 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
Request
{ "sessionId": "s-01JC8Z…" }