Guides
Game catalog and launch
Find the Games your Brands may offer, create a GameSession for a player and hand the game a single-use launch URL. All calls on this page are signed Operator API requests.
Read the catalog
GET/v1/gamesScope games:read
The catalog lists only Games enabled for your Operator and for at least one of your active Brands. All filters are optional and narrow the list by exact match.
| Parameter | Matches |
|---|---|
brand_id | Games enabled for this Brand of yours. Another Operator’s Brand, or an unknown or inactive one, gives an empty list rather than an error. |
country | An ISO 3166-1 alpha-2 code, such as DE, that the Game explicitly supports. |
currency | An ISO 4217 code, such as EUR, that the Game supports. |
locale | A BCP 47 tag, such as en-GB, matched exactly apart from letter case. There’s no fallback from en-US to en. |
client_type | desktop or mobile. |
mode | real or demo. |
category | An exact category value, such as slot. |
limit | Page size from 1 to 100, 50 by default. A page can be shorter. |
cursor | The next_cursor of the previous page. |
Games come sorted by name, ignoring case, then by ID. When next_cursor is present, request the next page with the same filters and limit plus cursor. A cursor is valid for 15 minutes and only for the same filters; an expired or mismatched cursor returns 422 validation_failed, and you start again from the first page. Each page reflects the current state, so a Game can appear or disappear between pages if its availability changes.
An unknown or repeated query parameter returns 422 validation_failed. Sign the query string exactly as you send it: it’s part of the signed target URI.
GET /v1/games?brand_id=22222222-2222-4222-8222-222222222222¤cy=EUR&limit=25
{
"items": [
{
"id": "44444444-4444-4444-8444-444444444444",
"name": "Golden Jaguar",
"category": "slot",
"status": "available",
"supported_modes": ["demo", "real"],
"supported_currencies": ["EUR"],
"supported_locales": ["en-GB"],
"supported_client_types": ["desktop", "mobile"],
"capabilities": []
}
]
}
Values such as status, category, the supported modes and client types, and capabilities are open sets. Known statuses are available, maintenance and deprecated. Handle a value you don’t know as unknown, never as available. The example shows the sandbox’s reference build of Golden Jaguar; read real IDs from your catalog.
One Game
GET/v1/games/{game_id}Scope games:read
Returns the same fields. The contract also defines optional details, description, version, release_at, deprecation_at and stake limits per currency, which aren’t returned today; handle their absence. A Game that doesn’t exist and one your Operator can’t see both return 404 resource_not_found.
Create a GameSession
POST/v1/game-sessionsScope sessions:create
A GameSession authorizes one player to play one Game on one of your Brands, in one mode and, for real money, one currency. Create it from your backend when the player opens the game.
{
"brand_id": "22222222-2222-4222-8222-222222222222",
"game_id": "44444444-4444-4444-8444-444444444444",
"mode": "real",
"player": {
"id": "player-7f3a9c",
"country": "DE",
"currency": "EUR",
"locale": "en-GB",
"ip": "203.0.113.10"
},
"operator_session_token": "YOUR_PLAYER_SESSION_TOKEN",
"client": { "type": "mobile" },
"return_urls": {
"lobby": "https://casino.example.com/lobby",
"cashier": "https://casino.example.com/cashier"
}
}
| Field | Meaning |
|---|---|
brand_id, game_idRequired | Your Brand and a Game from your catalog. |
modeRequired | real for real-money play through your Wallet (virtual units from our test Wallet in the sandbox, test funds from your test Wallet on the stage), demo for play without a Wallet. |
player.idRequired | Your own ID for the player, the External Player ID: 1–256 characters, case-sensitive, never trimmed or changed. We send it back to your Wallet as player_id. Don’t use an email address or other personal data. |
player.countryRequired | ISO 3166-1 alpha-2, uppercase. |
player.currencyReal mode | ISO 4217, uppercase. All money of the GameSession uses it. Optional in demo mode by contract, but a demo GameSession without a currency can’t play a Round, and the value must match one of your launch combinations: send it in demo mode too. |
player.localeRequired | The player’s language as a BCP 47 tag, such as en-GB. |
player.ipRequired | The player’s IPv4 or IPv6 address, not your server’s. We treat it as personal data and don’t log it by default. |
operator_session_tokenReal mode | Your token for the player’s session or Wallet context, 1–4096 characters. We store it encrypted, never show it to the browser and send it back to your Wallet with balance requests and Debits, and with Credits and Reversals when we have it. Details |
client.typeRequired | desktop or mobile. |
return_urlsOptional | Your return URLs. Leave the object out, or any URL in it, when you have none. |
return_urls.lobbyOptional | An HTTPS URL registered for the Brand, compared in full, or any HTTPS URL if the Brand is set up to accept any. |
return_urls.cashierOptional | An HTTPS URL registered for the Brand as a cashier URL, or any HTTPS URL if the Brand is set up to accept any. |
The request never carries a balance: your Wallet is the only source of the player’s balance. Unknown fields, explicit null values and fields of the wrong type return 422 validation_failed with a JSON Pointer to each problem. Malformed JSON and duplicate keys return 400 malformed_request. A Brand, Game or launch combination you may not launch returns 404 resource_not_found (see Launch combinations).
A successful request returns 201 Created with a Location header for the new GameSession:
{
"id": "6d1f2c7a-3b4e-4f5a-9c8d-7e6f5a4b3c2d",
"launch_url": "https://sandbox-game.luckyeight.games/launch/22222222-2222-4222-8222-222222222222#code=…",
"created_at": "2026-10-20T12:00:00Z",
"expires_at": "2026-10-20T12:05:00Z"
}
Here expires_at is when the launch URL expires. The GameSession itself lives longer; read it with Get a GameSession.
The launch URL
The launch URL has the form https://GAME_ORIGIN/launch/BRAND_ID#code=LAUNCH_CODE. Treat it as a credential:
- It works once. The game redeems the code when the player presses Play.
- It expires at
expires_at, five minutes after issue by default and never after the GameSession expires. - The code sits in the URL fragment, so browsers don’t send it in requests or
Refererheaders. Keep it that way: don’t move it into a query string, and don’t rewrite or shorten the URL. - Pass it straight to the player’s browser over HTTPS. Don’t log it, store it, put it in analytics or share it with third parties.
Open it in an iframe or a new tab right away. Embedding the game covers both.
Idempotency and retries
Every POST /v1/game-sessions carries an Idempotency-Key: 16–128 visible ASCII characters that identify the GameSession you intend to create. Generate one per intended GameSession, store it with your record of the launch, and never put personal data in it.
| You send | We answer |
|---|---|
| A new key | 201 with a new GameSession. |
| The same key and the same body, within 24 hours | 201 with the same GameSession id and created_at, and a fresh launch URL. Unused earlier launch URLs of that GameSession stop working. |
| The same key with a different body | 409 idempotency_conflict. Nothing changes. |
| The same key and body, but the GameSession has ended or expired, or current launch policy no longer allows it | 409 game_session_not_launchable. Create a new GameSession with a new key. |
| The same key after 24 hours | Treated as a new key: a new GameSession. Don’t use a key this old as a retry. |
“The same body” means the same JSON content, including the Operator Session Token: key order and whitespace don’t matter, but every value does. If a request times out or the connection drops, you can’t tell whether we created the GameSession, so retry with the same key and body and a new signature. A retry can never create a second GameSession.
Relaunch and re-entry
A launch URL can’t be reused. When the player reloads the page, comes back from the lobby or the launch failed, get a new URL from your backend:
- Relaunch while the GameSession can still be launched, which is at most its lifetime of eight hours by default, and within 24 hours of the first attempt: repeat the original request with the same key and identical values,
player.ipand the Operator Session Token included. The player continues the same GameSession. - Create a new GameSession with a new key when the old one ended, when the player switched currency, and whenever the Operator Session Token expired or must be replaced.
The token is part of the GameSession and of its request body. A relaunch sends the old token again, so the new launch URL opens a GameSession whose Debits fail with session_invalid. Sending a new token under the old key returns 409 idempotency_conflict. To continue with a new token, issue it, then create a new GameSession with a new Idempotency-Key. Money of the old GameSession keeps settling under its own transaction IDs; you change nothing for it.
When a new launch URL is redeemed, the game client in the previous tab stops working; one GameSession runs in one place at a time. If a Round was unfinished, the game picks it up again. The game client’s session also ends 30 minutes after the player presses Play, by default, even in the middle of play; the player then needs a new launch URL to continue.
What expires, and what to do
Four lifetimes meet in one launch. The durations are today’s defaults, which are configuration and can change.
| What | Owner and lifetime | When it has expired | Recover by |
|---|---|---|---|
| LaunchCode, in the launch URL | Ours. Five minutes after issue, never after the GameSession; used up when the player presses Play. | The game can’t connect and asks for a new launch. | A relaunch: same key, same body. |
| RuntimeSession, the game client’s session after Play | Ours. 30 minutes after the player presses Play, never after the GameSession; also ends when a newer launch URL of the GameSession is redeemed. | The game stops and asks for a new launch. | A relaunch. |
| GameSession | Ours. Eight hours from creation, fixed in its expires_at; ends earlier when it’s closed or revoked. | A relaunch returns 409 game_session_not_launchable; reading it shows a terminal status. | A new GameSession with a new key. |
| Operator Session Token | Yours: you set its format and lifetime. | Your Wallet answers balance requests with an error, and new Debits with session_invalid. A relaunch doesn’t help. | A new token, then a new GameSession with a new key. |
Money of earlier Rounds keeps moving after any of these lifetimes ends: Credits, Reversals and status lookups still reach your Wallet, and you must never reject one because a lifetime ended; a repeat gets its original receipt. Only Debits stop, at their delivery deadline, which never passes the GameSession’s expiry.
GameSession lifecycle
| Status | Meaning |
|---|---|
created | Created; no launch URL has been redeemed yet. |
active | The game connected at least once. activated_at shows when. |
closed | Ended. Terminal. |
expired | Its lifetime ran out. Terminal. |
revoked | Ended by us, for example at your request. Terminal. |
A GameSession lives eight hours from creation by default. Its expires_at is fixed at creation and never extended by relaunches or retries. Treat a status you don’t know as unknown.
The end of a GameSession stops new Rounds, not settlement. A Credit or Reversal for an earlier Round can reach your Wallet after the GameSession closed or expired, and after your Operator Session Token expired. Your Wallet must still accept it. See Operator Session Token.
Get a GameSession
GET/v1/game-sessions/{game_session_id}Scope sessions:read
{
"id": "6d1f2c7a-3b4e-4f5a-9c8d-7e6f5a4b3c2d",
"brand_id": "22222222-2222-4222-8222-222222222222",
"game_id": "44444444-4444-4444-8444-444444444444",
"player_id": "0b7e3f1d-9a2c-4e6b-8d5f-1c3a5e7b9d2f",
"mode": "real",
"currency": "EUR",
"status": "active",
"created_at": "2026-10-20T12:00:00Z",
"expires_at": "2026-10-20T20:00:00Z",
"activated_at": "2026-10-20T12:00:31Z"
}
player_id is our Player Reference: an opaque ID for your player that’s valid only within your Operator. It isn’t the External Player ID you sent. Ended and expired GameSessions stay readable. The response never contains the Operator Session Token or a launch URL.