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
Param | Type | Description |
---|---|---|
game_uuid | string | The unique identifier for the game (topaz-mines , topaz-plinko or topaz-dice ) |
currency | string | The currency used for the player's balance. Can be EUR , USD , GBP , or CAD |
session_id | string | The unique identifier for the session on your side |
language | string | The language code for the game interface (en , fr , de , es , it , pt , ru ) |
player_balance | number | The player's balance in the specified currency |
player_id | string | The unique identifier for the player in your system |
client_id | string | Your unique client ID given by Topaz |
Successful Response (200):
{
url: "https://play.topaz-games.com/mines?session_id=1234567890"
}