Skip to content

Game Lobby

The Game Lobby endpoint is the entry point for launching DOWINN games within your platform. It generates a unique, authenticated game URL that can be embedded in your website using an iframe, opened in a new window, or used for direct navigation.


fetch('http://DOWINN-API/game-lobby', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Api-Id': 'YOUR_SECRET_TOKEN',
'Api-Key': 'YOUR_SECRET_TOKEN'
},
body: JSON.stringify({
user_id: '',
currency: 'KRW',
language: 'EN',
home_url: '',
balance: 0,
bet_n_min: 0,
bet_n_max: 0
})
})

ParameterTypeRequiredDescription
user_idstringYour player’s unique identifier
currencystringGame currency (KRW, USD, JPY, CNY, PHP, HKD, THB, VND, BDT, INR)
languagestringInterface language (KO, EN, CN, JP)
bet_n_minnumberMinimum bet for Natural (Banker/Player)
bet_n_maxnumberMaximum bet for Natural (Banker/Player)
home_urlstringReturn URL when player exits game

Successful response

interface GameLobbyResponse {
code: number
data: {
game_url: string
}
}

The game_url is a fully authenticated link that:

  • ✅ Automatically logs the player into the game
  • ✅ Applies betting limits you specified
  • ✅ Uses the language and currency settings
  • ✅ Can be embedded via iframe or opened in a new window

Embed the game seamlessly within your platform:

<iframe
src="{game_url}"
width="100%"
height="800px"
frameborder="0"
allow="fullscreen"
style="border: none;"
></iframe>
// Open in new window with specific dimensions
window.open(gameUrl, "dowinn_game", "width=1280,height=720");
// Or in new tab
window.open(gameUrl, "_blank");
window.location.href = gameUrl;


After the player accesses the game_url:

  1. Login Event Triggered - Your webhook receives a login command with the player’s user_id and feedback_data1
  2. Balance Retrieved - Your server responds with the player’s current balance
  3. Game Loads - Player sees the lobby with their balance displayed
  4. Gameplay - Player can browse tables and start playing
  5. Bet Events - Your webhook receives real-time bet/win/loss events
  6. Logout Event - When player exits, you receive a logout command with final balance

Your Casino Website → Game Lobby API → game_url → Embed in iframe
Player plays without leaving your site
Mobile App → Game Lobby API → game_url → Open in WebView
Seamless in-app gaming experience

📌
For a comprehensive guide on how this works, please refer to the Common and Transfer Introduction or Seamless Introduction sections within the Introduction page.