Create new game
POST/create-new-game
Use this request to create a new game. It registers new demo or real game on the server and returns the Launcher URL
for the game. You can redirect the user to this URL to start playing the game or open it in iFrame.
The currency and locale are validated against the supported sets (see Locales). An unsupported value
returns 400 with code currency_not_supported / locale_not_supported. For an unsupported locale you can set
fallbackToDefaultLocale: true to create the game with the default locale (en_us) instead of receiving the error.
If the user is blacklisted or the client has no access to the requested game, the request returns 403
(account_blocked / game_not_found).
Request
Responses
- 200
- 400
- 401
- 403
- 500
ok
Bad request — a request field is invalid: the currency is not supported
(currency_not_supported), the locale is not supported and fallbackToDefaultLocale was
not set (locale_not_supported), or a field such as initDemoBalance / returnURL /
depositURL is invalid (no code).
Wrong signature or API key.
Forbidden — the game cannot be created for this user: the user is blacklisted
(account_blocked) or the client does not have access to the requested game (game_not_found).
Server error occurred.