Skip to main content
POST
/
api
/
v1
/
dt
/
game
User Login
curl --request POST \
  --url https://api.example.com/api/v1/dt/game \
  --header 'Content-Type: application/json' \
  --data '
{
  "uuid": "e69da788a6c841d4953c475fc42bf464",
  "platform_id": "AXTES",
  "username": "player001",
  "transaction_id": "TX123456",
  "credit": "0",
  "key": "abc123hash",
  "homeUrl": "https%3A%2F%2Fwww.example.com",
  "lang": "zh-tw"
}
'
{
  "url": "https://rel-game.cog888.net?pid=R01C05&token=zL13tWjRw2d0mHJSAkNtyNgjAsfTjavP6e9gQLpsOF-&homeUrl=home&registerUrl=register&depositUrl=deposit&withdrawUrl=withdraw&extendSessionUrl=extend&lang=en-us&closeAppOnLogout=1"
}
CodeDescription
2Invalid parameter
36Server error
9999Unknown error

Body

application/json
uuid
string
required

Platform-defined unique request serial number, length >= 32 and <= 128 bytes

platform_id
string
required

Platform product ID

username
string
required

User account in game (max 23 characters, lowercase letters and numbers only)

transaction_id
string
required

Transaction serial number (1-128 characters, ASCII 32-126 printable characters only, ` and ~ are prohibited)

credit
string
required

Credit to bring into game for this login, must be 0 for seamless wallet

key
string
required

md5(username + credit + transaction_id + platform_secret)

lang
string

Language code, optional

homeUrl
string

Online casino homepage, must be encoded with encodeURIComponent

registerUrl
string

Online casino registration URL, must be encoded with encodeURIComponent

depositUrl
string

Online casino deposit URL, must be encoded with encodeURIComponent

withdrawUrl
string

Online casino withdrawal URL, must be encoded with encodeURIComponent

extendSessionUrl
string

Online casino session extension URL, must be encoded with encodeURIComponent

theme_pid
string

UI skin pid to display, default value will be shown if not provided

title
string

Product name displayed on browser tab, COG will be shown if not provided

favicon
string

Product favicon displayed on browser tab, COG favicon will be shown if not provided

logoLandscape
string

Logo displayed in lobby landscape mode, COG logo will be shown if not provided

site
string

Pass 'app' string to hide the swipe-up fullscreen overlay on mobile H5 landscape mode

Response

Success

url
string

URL to redirect to game platform