Skip to content

Common API Introduction

API server (DOWINN) provides a simplified wrapper API that handles all the complex encryption, encoding, and hashing processes for you. You just need to send straightforward requests with your credentials and data.


  • Route: /game-lobby
  • Method: POST

PropertyTypeRequiredDescription
user_idstringUnique user identifier
agent_idstringAgent identifier
balancenumberUser’s current balance
currencystringExample: KRW, USD, JPY, CNY, PHP, HKD, THB, VND, BDT, INR
languagestringExample: KO = Korean, EN = English, CN = Chinese, JP = Japanese
home_urlstringURL to return after game session
table_codestringSpecific table code (if applicable)
bet_n_minnumberMinimum bet amount (Normal)
bet_n_maxnumberMaximum bet amount (Normal)
Terminal window
headers
POST /game-lobby
Content-Type: application/json
Api-Id: your-agent-id
Api-Key: your-secret-key
body
{
"user_id": "karlphp01",
"agent_id": "your-agent-id",
"balance": 0,
"currency": "PHP",
"language": "EN",
"home_url": "",
"table_code": "",
"bet_n_min": 100,
"bet_n_max": 1000000
}
interface IGameLobby {
code: number
response_data: {
game_url: string
}
}
{
"code": 0,
"response_data": {
"game_url": "https://game_url.com/api/game_lobby/?token=eyJhbGciOiJIUzI1NiIs..."
}
}
{
"https": {
"200": "successful request",
"202": "failed request",
"500": "internal error"
},
"codes": {
"0": "successful request",
"1": "error occured",
"2": "missing data",
"3": "invalid key",
"4": "data format error",
"5": "expired request",
"6": "invalid agent",
"9": "blocked user",
"100": "data value error",
"101": "permission denied",
"102": "insufficient balance",
"103": "integration failure"
},
"history_types": {
"ALL": "all",
"END": "ended",
"ING": "ongoing"
}
}
const axios = require('axios');
const headers = {
'Content-Type': 'application/json',
'Api-Id': 'your-agent-id',
'Api-Key': 'your-secret-key',
};
const body = {
user_id: 'testuserid',
agent_id: 'your-agent-id',
balance: 0,
currency: 'PHP',
language: 'EN',
home_url: '',
table_code: '',
bet_n_min: 100,
bet_n_max: 1000000
};
try {
const response = await axios.post(
'https://DOWINN-API/game-lobby',
body,
{ headers }
);
console.log(response.data);
/*
{
"code": 0,
"response_data": {
"game_url": "https://game_url.com/api/game_lobby/?token=eyJhbGciOiJIUzI1NiIs..."
}
}
*/
} catch (error) {
console.error('Error:', error.response?.data || error.message);
}



Choose your integration type: