Game Sessions
Casino game sessions related endpoints
Returns the latest played game sessions for the given user
The results are sorted by the started date of the session descending. This means that the most recent game session will be at the top of the response.
If the user does not exist or has no sessions played then an empty list is returned.
The user to get game sessions for.
0Number of game sessions to return.
10Select whether the game sessions returned should be distinct based on game id. The allowed methods are: daily: If a game has more than one sessions per day, then for each specific day, only one session of this game is returned. none: Returns all game sessions for all games as they are. unique: Returns only one session per game.
dailyPossible values: Include game sessions that lasted more than the given value (in seconds). If not set no such filtering will be applied
60Sessions up to this timestamp will be taken into account
nowSessions after this timestamp will be taken into account
Optional filtering of the games to retrieve. It expects a string
adhering to the filtering format, as described in the filtering
section, e.g. enabled:eq:1.
enabled:eq:1Possible values: Optional selection of the object fields to retrieve. It expects a comma
separated list of strings, as described in the field selection section,
e.g. game_id,game_name.
game_idPossible values: The operator to use for querying data. Notice that this is applied only if your account has access to multiple operators. In a different case the assigned operator to your account is used and the value of this field is ignored.
The bookmaker id to use for querying data. Notice that this is applied only
if your account has access to multiple operators. In a different case
the assigned operator to your account is used and the value of this
field is ignored. Note that this parameter is used together with the
sub_bookmaker_id parameter.
The sub-bookmaker id to use for querying data. Notice that this is applied only
if your account has access to multiple operators. In a different case
the assigned operator to your account is used and the value of this
field is ignored. Note that this parameter is used together with the
bookmaker_id parameter.
Custom client header, the value should be the name of the group the user belongs to
Authentication method to be used, supported values [vaix, iam]. Defaults to vaix
OK
Bad Request
Unauthorized
Forbidden
Not Acceptable
Request Entity Too Large
Unprocessable Entity
Too Early
Internal Server Error
GET /api/casino/game_sessions/latest?user=0 HTTP/1.1
Host: api.vaix.ai
Authorization: Bearer YOUR_SECRET_TOKEN
x-vaix-client-id: text
Accept: */*
{
"data": [
{
"game_id": "gates_of_olympus_ogs"
},
{
"game_id": "fruit_party_2_ogs"
}
],
"status": "success"
}Was this helpful?