Headers
Section titled “Headers”| Header | Value | Description |
|---|---|---|
Api-Id | agent_id | AL Agent |
Api-Key | your_api_key | API KEY from us |
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})})import axios from 'axios';
const options = {method: 'POST',url: 'http://API-PROVIDER/game-lobby',headers: {'Content-Type': 'application/json','Api-Id': 'YOUR_SECRET_TOKEN','Api-Key': 'YOUR_SECRET_TOKEN',},data: {user_id: '',currency: 'KRW',language: 'EN',home_url: '',balance: 0,bet_n_min: 0,bet_n_max: 0}};
try {const { data } = await axios.request(options);console.log(data);} catch (error) {console.error(error);}
| Header | Value | Description |
|---|---|---|
Api-Id | agent_id | AL Agent |
Api-Key | your_api_key | API KEY from us |
| Parameter | Type | Required | Description |
|---|---|---|---|
user_id | string | ✅ | Your player’s unique identifier |
currency | string | ✅ | Game currency (KRW, USD, JPY, CNY, PHP, HKD, THB, VND, BDT, INR) |
language | string | ✅ | Interface language (KO, EN, CN, JP) |
bet_n_min | number | ✅ | Minimum bet for Natural (Banker/Player) |
bet_n_max | number | ✅ | Maximum bet for Natural (Banker/Player) |
home_url | string | ❌ | Return URL when player exits game |
Successful response
interface GameLobbyResponse { code: number data: { game_url: string }}The game_url is a fully authenticated link that:
Failed response
interface GameLobbyResponse { code: number message: string}Server error
interface GameLobbyResponse { code: number message: string}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 dimensionswindow.open(gameUrl, "dowinn_game", "width=1280,height=720");
// Or in new tabwindow.open(gameUrl, "_blank");window.location.href = gameUrl;After the player accesses the game_url:
login command with the player’s user_id and feedback_data1logout command with final balanceYour Casino Website → Game Lobby API → game_url → Embed in iframePlayer plays without leaving your siteMobile App → Game Lobby API → game_url → Open in WebViewSeamless in-app gaming experience