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": "<string>",
  "platform_id": "<string>",
  "username": "<string>",
  "transaction_id": "<string>",
  "credit": "<string>",
  "key": "<string>",
  "lang": "<string>",
  "homeUrl": "<string>",
  "registerUrl": "<string>",
  "depositUrl": "<string>",
  "withdrawUrl": "<string>",
  "extendSessionUrl": "<string>",
  "theme_pid": "<string>",
  "title": "<string>",
  "favicon": "<string>",
  "logoLandscape": "<string>",
  "site": "<string>"
}
'
{
  "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
10Duplicate transaction ID
36Server error
9999Unknown error

Body

application/json
uuid
string
required

Platform-defined unique request ID, 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 ID (1-128 characters, ASCII 32-126 printable characters only, ` and ~ not allowed)

credit
string
required

Credit to bring into game for this login

key
string
required

md5(username + credit + transaction_id + platform secret key)

lang
string

Language code (see appendix 'Language Codes'), optional

homeUrl
string

Online casino home page URL, must be encodeURIComponent encoded

registerUrl
string

Online casino registration URL, must be encodeURIComponent encoded

depositUrl
string

Online casino deposit URL, must be encodeURIComponent encoded

withdrawUrl
string

Online casino withdrawal URL, must be encodeURIComponent encoded

extendSessionUrl
string

Online casino extend session URL, must be encodeURIComponent encoded

theme_pid
string

UI skin pid to display, default value if not provided

title
string

Product name shown in browser tab, defaults to COG

favicon
string

Product favicon shown in browser tab, defaults to COG favicon

logoLandscape
string

Logo displayed in landscape lobby, defaults to COG logo

site
string

Pass 'app' string, will not show swipe-up fullscreen overlay on mobile H5 landscape

Response

Success

url
string

URL to redirect to game platform