Headers
Section titled “Headers”| Name | Type | Required | Description |
|---|---|---|---|
Api-Id | string | ✅ | Your agent identifier |
Api-Key | string | ✅ | Your secret key |
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.
/game-lobbyPOST
| Name | Type | Required | Description |
|---|---|---|---|
Api-Id | string | ✅ | Your agent identifier |
Api-Key | string | ✅ | Your secret key |
| Property | Type | Required | Description |
|---|---|---|---|
user_id | string | ✅ | Unique user identifier |
agent_id | string | ✅ | Agent identifier |
balance | number | ✅ | User’s current balance |
currency | string | ✅ | Example: KRW, USD, JPY, CNY, PHP, HKD, THB, VND, BDT, INR |
language | string | ✅ | Example: KO = Korean, EN = English, CN = Chinese, JP = Japanese |
home_url | string | ❌ | URL to return after game session |
table_code | string | ❌ | Specific table code (if applicable) |
bet_n_min | number | ✅ | Minimum bet amount (Normal) |
bet_n_max | number | ✅ | Maximum bet amount (Normal) |
headersPOST /game-lobbyContent-Type: application/jsonApi-Id: your-agent-idApi-Key: your-secret-keybody{ "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: