logo
API REFERENCE

/v4/game/game-url

Get Game Access URL

POST /v4/game/game-url

It returns the URL to access the game. The URL is valid for 10 minutes from creation and is for one-time use only.

When making a request, the game_symbol value can be used as the game_code from the game list.

To apply a user-specific RTP instead of the agent's RTP, specify the desired RTP in win_ratio. This value must be equal to or less than the agent's RTP. To use the agent's RTP, set win_ratio to 0 (default).

If you use a user_code from a user belonging to another agent, a PERMISSION_ERROR code is returned. If you attempt to run a game not assigned to the agent, a PROVIDER_NOT_FOUND or GAME_NOT_FOUND code is returned.

Headers

Name Value
Authorization Bearer <API_TOKEN>
Content-Type application/json
Accept application/json

Body

{
  "user_code": 400000001,
  "provider_id": 1,
  "game_symbol": "vswaysdogs",
  "lang": 1,
  "return_url": "https://lobby.slotcity.com",
  "win_ratio": 0
}
NameTypeDescription
user_codeinteger(64bit)User's Code
provider_idinteger(64bit)Provider ID
game_symbolstringGame Symbol
langinteger(32bit)Language Code Value
For more information, please refer to this page.
return_urlstringHome Url (Redirect URL when the game is closed)
win_ratiofloatRTP(Winning Rate)

Response

{
  "code": 0,
  "message": "OK",
  "data": {
    "game_url": "http://..."
  }
}
Key Type Description
code integer(32bit) Response Code
message string Response Message
game_url string Game Launch URL

Last updated 1 year ago