Setup guide

Session Management

Managing game sessions is a critical aspect of the Topaz Games API integration process. Game sessions allow you to maintain the state of the game for each player, ensuring a seamless and engaging gaming experience.


Creating a Game Session

To start a game, you first need to create a session. This involves sending a request to the API with necessary details like the player's ID, the balance, and other game-related parameters.

API Call Example:

End Point: https://api.topaz-games.com/game/createGameSession

Method: POST

Content-Type: application/json

Parameters

ParamTypeDescription
game_uuidstringThe unique identifier for the game (topaz-mines, topaz-plinko or topaz-dice)
currencystringThe currency used for the player's balance. Can be EUR, USD, GBP, or CAD
session_idstringThe unique identifier for the session on your side
languagestringThe language code for the game interface (en, fr, de, es, it, pt, ru)
player_balancenumberThe player's balance in the specified currency
player_idstringThe unique identifier for the player in your system
client_idstringYour unique client ID given by Topaz

Successful Response (200):

{
    url: "https://play.topaz-games.com/mines?session_id=1234567890"
}

Previous
Request Security