Launch Game in Demo Mode

post

Launch a game in demo mode (fun mode). Fun mode allows users to try the game using virtual currency, providing a real experience of the gameplay without using real funds.

Authorizations
Body
referencestringRequired

Game reference (e.g., Monkey)

languagestringRequired

Player language in ISO 639-1 format (e.g., en, fr). See ISO 639-1 for valid codes.

currency_codestringRequired

Currency code in ISO 4217 format (e.g., EUR, USD). See ISO 4217 for valid codes.

lobby_urlstringRequired

URL to redirect back to the operator site.

is_mobilebooleanRequired

True if it's a mobile client.

is_demobooleanRequired

True for demo mode.

Responses
200

Successfully returned demo game URL.

application/json
post
POST /api/play HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 130

{
  "reference": "Monkey",
  "language": "en",
  "currency_code": "EUR",
  "lobby_url": "https://www.google.com",
  "is_mobile": false,
  "is_demo": true
}
{
  "status": "success",
  "game_url": "/game/play?session_token=8888"
}

Last updated