Demo session
POST
/v1/games/{id}/demo
Fun play: the game with no player of yours, no wallet and no session.
SignedSandboxProduction
Nothing is staked and no wallet callback follows.
Request body (optional)
| Field | Type | Required | Description |
|---|---|---|---|
| locale | string | no | en, ru-RU… translated to what the provider serves. |
| lobby_url | string | no | Where the game's "back to lobby" goes. |
| player_country | string | no | ISO 3166-1 alpha-2. |
| player_ip | string | no | The player's own address; country rules apply to a demo as to a session. |
| player_device | string | no | desktop or mobile. |
response 200
{ "launch_url": "https://provider…/demo?game=…" }Possible errors
| error | HTTP | Retry | When |
|---|---|---|---|
| NO_DEMO | 409 | no | The game has no fun-play mode. |
| GAME_UNAVAILABLE | 409 | no | The game is not in your window, whether or not it exists. |
| GAME_RESTRICTED_IN_COUNTRY | 409 | no | The game cannot be played in the player's country. |
Every endpoint can also answer UNAUTHORIZED, ADDRESS_NOT_ALLOWED, RATE_LIMITED and UPSTREAM_UNAVAILABLE. See the Error reference.
has_demo on GET /v1/games says in advance which games will answer, so a game marked false needs no demo button.
