Reference
Operator API
The server-to-server API your backend calls: six operations for the catalog, GameSessions and diagnostics. The OpenAPI document is the source of truth; this page describes the same contract.
Base URLs and versions
| Environment | Base URL |
|---|---|
| Sandbox | https://sandbox-api.luckyeight.games |
| Stage | https://stage-api.luckyeight.games, set up on request. See The stage. |
| Staging, production | Not open yet. See Environments. |
/v1 in each path is the major version. Within v1, changes are additive only; the compatibility policy lists what that allows.
Conventions
- JSON in UTF-8, with
snake_casenames. Duplicate keys are rejected. - Requests accept only documented fields. Responses can gain fields at any time: ignore those you don’t know.
- An optional field that doesn’t apply is absent, never
null. - IDs are opaque, case-sensitive strings of up to 128 characters (
[A-Za-z0-9][A-Za-z0-9._:-]*). Don’t parse them; today they happen to be UUIDs. - Timestamps are RFC 3339 in UTC with a
Z, such as2026-10-20T12:00:00Z. - Money is an object of an ISO 4217
currencyand an integerminor_units; see Money. - Output values such as statuses, categories and capabilities are open sets: handle unknown values gracefully, never as success.
- Every operation needs the token and the signature described in Authentication and signing, plus the scope listed with it.
- Besides the errors listed with each operation, every operation can answer with the transport errors, among them
405,413 payload_too_large,415,503 service_overloadedand504 request_timeout. The OpenAPI document lists them once, inx-http-transport-policy, not in each operation’sresponses, so a client generated from it won’t know them: handle them as described in Errors. Our network edge can also answer on its own, without a problem body; see Answers that don’t come from us.
Response headers
| Header | When |
|---|---|
X-Request-Id | Always: your valid ID, or one we generated. |
Location | 201 from session creation: /v1/game-sessions/{id}. |
WWW-Authenticate | 401: exactly Bearer realm="operator-api". |
Retry-After | Seconds to wait. We always send it on 429, and on 503 only when we know a delay. The OpenAPI header component marks it optional for both; on a 429 without it, wait at least one second. |
Cache-Control: no-store | Every response. Never cache a launch URL. |
List games
GET/v1/gameslistGames · scope games:read
Games enabled for your Operator and at least one of your active Brands, sorted by case-insensitive name, then ID. Every filter matches exactly; there’s no locale fallback or country inference.
| Query parameter | Type | Description |
|---|---|---|
brand_id | ID | Only Games enabled for this Brand of yours. A foreign, unknown or inactive Brand gives an empty list. |
country | ISO 3166-1 alpha-2 | Only Games that support the country. |
currency | ISO 4217 | Only Games that support the currency. |
locale | BCP 47, 2–35 characters | Only Games that support the locale, ignoring letter case. |
client_type | desktop | mobile | Only Games for this client type. |
mode | real | demo | Only Games that offer this mode. |
category | String, 1–64 | Only Games of this exact category. |
limit | Integer 1–100 | Page size, 50 by default. Pages can be shorter. |
cursor | String, up to 1024 | next_cursor from the previous page. Valid for 15 minutes with the same filters and limit. |
200 GameListResponse. Errors: 400, 401, 403, 422 (also unknown or repeated parameters and invalid cursors), 429, 500, 503 (dependency_unavailable), and the transport errors.
Get a game
GET/v1/games/{game_id}getGame · scope games:read
One Game visible to your Operator. No query parameters.
200 GameDetails. Errors: 400, 401, 403, 404 (absent or not visible to you), 422, 429, 500, 503 (dependency_unavailable), and the transport errors.
Create a GameSession
POST/v1/game-sessionscreateGameSession · scope sessions:create
Creates a GameSession and returns a single-use launch URL. Requires Content-Type, Content-Digest and Idempotency-Key (16–128 visible ASCII characters). Within 24 hours, the same key and body return the same GameSession with a fresh launch URL; see Idempotency and retries.
Body: CreateGameSessionRequest.
201 CreateGameSessionResponse with a Location header, for a new GameSession and for an identical retry. Errors: 400, 401, 403, 404 (Brand, Game or launch combination not available to you), 409 (idempotency_conflict, game_session_not_launchable), 415, 422, 429, 500, 503 (dependency_unavailable), and the transport errors.
Get a GameSession
GET/v1/game-sessions/{game_session_id}getGameSession · scope sessions:read
The current state of one of your GameSessions, ended ones included.
200 GameSession. Errors: 400, 401, 403, 404, 422, 429, 500, 503 (dependency_unavailable), and the transport errors.
Get a Round
GET/v1/rounds/{round_id}getRound · scope rounds:read
A diagnostic, game-neutral view of one of your Rounds, readable after its GameSession ended. It reports what we last recorded and doesn’t contact your Wallet.
200 Round. Errors: 400, 401, 403, 404, 422, 429, 500, 503 (dependency_unavailable), and the transport errors.
Get a WalletTransaction
GET/v1/transactions/{transaction_id}getTransaction · scope transactions:read
Our journal record of one WalletTransaction: what we sent and the evidence we hold. It isn’t a balance and changes nothing.
200 WalletTransaction. Errors: 400, 401, 403, 404, 422, 429, 500, 503 (dependency_unavailable), and the transport errors.
Schemas
GameSummary
| Field | Type | Description |
|---|---|---|
idRequired | ID | The Game ID. |
nameRequired | String, 1–200 | Display name. |
categoryRequired | String, 1–64 | Catalog category, such as slot. Metadata only: it never changes API behavior. |
statusRequired | String | Availability: available, maintenance, deprecated or a future value. |
supported_modesRequired | Strings | real, demo. |
supported_currenciesRequired | ISO 4217 codes | Sorted. Can be empty for a demo-only Game. |
supported_localesRequired | BCP 47 tags | Sorted, ignoring case. |
supported_client_typesRequired | Strings | desktop, mobile. |
capabilitiesRequired | Strings | Game-neutral capability names in lowercase snake case, sorted. Ignore names you don’t know. |
GameDetails
Every GameSummary field, plus optional details. The contract defines them, but they aren’t returned today; handle their absence.
| Field | Type | Description |
|---|---|---|
description | String, up to 4000 | Description of the Game. |
version | String, 1–100 | The Game’s content or rules version label, not the API version. |
release_at, deprecation_at | Timestamp | Release and planned deprecation. |
limits | Array | Per currency, sorted by currency: minimum_stake and maximum_stake, both Money. |
GameListResponse
| Field | Type | Description |
|---|---|---|
itemsRequired | GameSummary[] | One page of Games. No total count is given. |
next_cursor | String | Present when another page exists. |
CreateGameSessionRequest
| Field | Type | Description |
|---|---|---|
brand_idRequired | ID | One of your Brands. |
game_idRequired | ID | A Game from your catalog. |
modeRequired | real | demo | Real-money play through your Wallet (virtual units from our test Wallet in the sandbox, test funds from your test Wallet on the stage), or demo play without a Wallet. |
playerRequired | Object |
id (required): your External Player ID, 1–256 characters.country (required): ISO 3166-1 alpha-2.currency (required in real mode; send it in demo mode too, see launch): ISO 4217.locale (required): BCP 47, 2–35 characters.ip (required): the player’s IPv4 or IPv6 address. |
operator_session_tokenReal mode | String, 1–4096 | Your token for the player’s session or Wallet context. Never returned. |
clientRequired | Object | type (required): desktop | mobile. |
return_urlsOptional | Object | lobby and cashier, both optional: HTTPS URLs registered for the Brand, or any HTTPS URL if the Brand is set up to accept any, up to 2048 characters. |
No other fields are accepted, at any level.
CreateGameSessionResponse
| Field | Type | Description |
|---|---|---|
idRequired | ID | The GameSession ID. The same on every identical retry. |
launch_urlRequired | HTTPS URL | A single-use launch URL, new in every response. A credential: never log it. |
created_atRequired | Timestamp | When the GameSession was created. The same on every retry. |
expires_atRequired | Timestamp | When this launch_url expires. Not the GameSession’s expiry. |
GameSession
| Field | Type | Description |
|---|---|---|
id, brand_id, game_idRequired | ID | The GameSession and what it plays. |
player_idRequired | ID | Our Player Reference for your player, not your External Player ID. |
modeRequired | String | real or demo. |
currencyReal mode | ISO 4217 | May be absent in demo mode. |
statusRequired | String | created, active, closed, expired, revoked. See lifecycle. |
created_at, expires_atRequired | Timestamp | Creation and the fixed end of the GameSession’s lifetime. |
activated_at | Timestamp | When the game first connected. |
closed_at | Timestamp | When the GameSession was closed; present only with the status closed. |
Round
| Field | Type | Description |
|---|---|---|
id, game_session_id, game_idRequired | ID | The Round and its context. |
statusRequired | String | The Round’s phase. See Round statuses. |
mode | String | real or demo. |
stake | Money | Real mode only. |
payout | Money | Real mode, present exactly when the Outcome is recorded; a known zero is 0. |
rules_revision_id | ID | The rules revision the Round was played under. |
started_atRequired | Timestamp | When the Round started. |
completed_at | Timestamp | Present only when the status is completed. |
closed_at | Timestamp | Present exactly when the status is terminal. |
transaction_idsRequired | ID[] | The Round’s own WalletTransactions, by creation time. |
WalletTransaction
| Field | Type | Description |
|---|---|---|
idRequired | ID | The transaction_id your Wallet saw. Retries keep it. |
round_id | ID | The Round correlation sent to your Wallet. |
typeRequired | String | debit, credit, reversal. |
statusRequired | String | pending, succeeded, rejected, indeterminate. See Diagnostic reads. |
amountRequired | Money | The exact amount sent. Zero only for a Round close. |
reasonRequired | String | gameplay, round_close, compensation. |
round_closedRequired | Boolean | The value the command carried to your Wallet. It doesn’t say whether the Round is settled: a winning Credit carries false. See Credits. |
original_transaction_idReversals | ID | The Debit a Reversal cancels. |
reversal_effect | String | On a succeeded Reversal: refunded, prevented, no_effect. |
delivery_statusRequired | String | complete, scheduled, in_flight, paused, manual_review. |
attention | String | A reason for review, such as budget_exhausted. It never changes status. |
created_at, updated_atRequired | Timestamp | Creation and the latest recorded event. |
Money
| Field | Type | Description |
|---|---|---|
currencyRequired | ISO 4217 | Three uppercase letters. |
minor_unitsRequired | 64-bit integer | The amount in the currency’s minor unit: EUR 2.50 is 250. Never a decimal or a float; stakes and payouts are never negative. |
ProblemDetails
| Field | Type | Description |
|---|---|---|
type, title, status, detail, instanceRequired | RFC 9457 | Standard fields. Don’t parse title or detail. |
codeRequired | String | The stable error code. See Operator API errors. |
request_idRequired | String | Equals the X-Request-Id header. |
retryableRequired | Boolean | Whether a retry may help. |
errors | Array | Validation issues: code, detail and at most one of pointer, parameter or header. |