Skip to Content
API CallbacksAuthentication

Authentication

Called once when the game is opened, to validate the game session token created by the casino at Game launch and to read the player’s starting balance.

Request

[POST] {WALLET_URL}/
ParameterTypeRequiredDescription
actionstringyesalways authenticate
user_idintegeryesuser’s ID at the casino
tokenstring(32)yesgame run session token sent by the casino at game launch

Request body:

{ "user_id": 10000, "action": "authenticate", "token": "1a2b3c4d5e6f708192a3b4c5d6e7f809" }

Response

Response should be a json object.

{ "status": "OK", "user_id": 10000, "username": "user123", "balance": 100.05, "currency": "USD" }
ParameterTypeRequiredDescription
statusstringyesOK on success, ERROR otherwise
user_idintegeryesuser’s ID at the casino
usernamestringyesuser’s username, displayed in the game
balancefloatyesplayer’s current balance in the major currency unit
currencystring(3)yescurrency code in ISO 4217 format
Last updated on