Operator docs Get sandbox access

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.

Version 1.0.0-draft.8OpenAPI 3.1.2Media type application/json

Base URLs and versions

EnvironmentBase URL
Sandboxhttps://sandbox-api.luckyeight.games
Stagehttps://stage-api.luckyeight.games, set up on request. See The stage.
Staging, productionNot 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_case names. 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 as 2026-10-20T12:00:00Z.
  • Money is an object of an ISO 4217 currency and an integer minor_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_overloaded and 504 request_timeout. The OpenAPI document lists them once, in x-http-transport-policy, not in each operation’s responses, 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

HeaderWhen
X-Request-IdAlways: your valid ID, or one we generated.
Location201 from session creation: /v1/game-sessions/{id}.
WWW-Authenticate401: exactly Bearer realm="operator-api".
Retry-AfterSeconds 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-storeEvery 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 parameterTypeDescription
brand_idIDOnly Games enabled for this Brand of yours. A foreign, unknown or inactive Brand gives an empty list.
countryISO 3166-1 alpha-2Only Games that support the country.
currencyISO 4217Only Games that support the currency.
localeBCP 47, 2–35 charactersOnly Games that support the locale, ignoring letter case.
client_typedesktop | mobileOnly Games for this client type.
modereal | demoOnly Games that offer this mode.
categoryString, 1–64Only Games of this exact category.
limitInteger 1–100Page size, 50 by default. Pages can be shorter.
cursorString, up to 1024next_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

FieldTypeDescription
idRequiredIDThe Game ID.
nameRequiredString, 1–200Display name.
categoryRequiredString, 1–64Catalog category, such as slot. Metadata only: it never changes API behavior.
statusRequiredStringAvailability: available, maintenance, deprecated or a future value.
supported_modesRequiredStringsreal, demo.
supported_currenciesRequiredISO 4217 codesSorted. Can be empty for a demo-only Game.
supported_localesRequiredBCP 47 tagsSorted, ignoring case.
supported_client_typesRequiredStringsdesktop, mobile.
capabilitiesRequiredStringsGame-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.

FieldTypeDescription
descriptionString, up to 4000Description of the Game.
versionString, 1–100The Game’s content or rules version label, not the API version.
release_at, deprecation_atTimestampRelease and planned deprecation.
limitsArrayPer currency, sorted by currency: minimum_stake and maximum_stake, both Money.

GameListResponse

FieldTypeDescription
itemsRequiredGameSummary[]One page of Games. No total count is given.
next_cursorStringPresent when another page exists.

CreateGameSessionRequest

FieldTypeDescription
brand_idRequiredIDOne of your Brands.
game_idRequiredIDA Game from your catalog.
modeRequiredreal | demoReal-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.
playerRequiredObject 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 modeString, 1–4096Your token for the player’s session or Wallet context. Never returned.
clientRequiredObjecttype (required): desktop | mobile.
return_urlsOptionalObjectlobby 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

FieldTypeDescription
idRequiredIDThe GameSession ID. The same on every identical retry.
launch_urlRequiredHTTPS URLA single-use launch URL, new in every response. A credential: never log it.
created_atRequiredTimestampWhen the GameSession was created. The same on every retry.
expires_atRequiredTimestampWhen this launch_url expires. Not the GameSession’s expiry.

GameSession

FieldTypeDescription
id, brand_id, game_idRequiredIDThe GameSession and what it plays.
player_idRequiredIDOur Player Reference for your player, not your External Player ID.
modeRequiredStringreal or demo.
currencyReal modeISO 4217May be absent in demo mode.
statusRequiredStringcreated, active, closed, expired, revoked. See lifecycle.
created_at, expires_atRequiredTimestampCreation and the fixed end of the GameSession’s lifetime.
activated_atTimestampWhen the game first connected.
closed_atTimestampWhen the GameSession was closed; present only with the status closed.

Round

FieldTypeDescription
id, game_session_id, game_idRequiredIDThe Round and its context.
statusRequiredStringThe Round’s phase. See Round statuses.
modeStringreal or demo.
stakeMoneyReal mode only.
payoutMoneyReal mode, present exactly when the Outcome is recorded; a known zero is 0.
rules_revision_idIDThe rules revision the Round was played under.
started_atRequiredTimestampWhen the Round started.
completed_atTimestampPresent only when the status is completed.
closed_atTimestampPresent exactly when the status is terminal.
transaction_idsRequiredID[]The Round’s own WalletTransactions, by creation time.

WalletTransaction

FieldTypeDescription
idRequiredIDThe transaction_id your Wallet saw. Retries keep it.
round_idIDThe Round correlation sent to your Wallet.
typeRequiredStringdebit, credit, reversal.
statusRequiredStringpending, succeeded, rejected, indeterminate. See Diagnostic reads.
amountRequiredMoneyThe exact amount sent. Zero only for a Round close.
reasonRequiredStringgameplay, round_close, compensation.
round_closedRequiredBooleanThe 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_idReversalsIDThe Debit a Reversal cancels.
reversal_effectStringOn a succeeded Reversal: refunded, prevented, no_effect.
delivery_statusRequiredStringcomplete, scheduled, in_flight, paused, manual_review.
attentionStringA reason for review, such as budget_exhausted. It never changes status.
created_at, updated_atRequiredTimestampCreation and the latest recorded event.

Money

FieldTypeDescription
currencyRequiredISO 4217Three uppercase letters.
minor_unitsRequired64-bit integerThe 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

FieldTypeDescription
type, title, status, detail, instanceRequiredRFC 9457Standard fields. Don’t parse title or detail.
codeRequiredStringThe stable error code. See Operator API errors.
request_idRequiredStringEquals the X-Request-Id header.
retryableRequiredBooleanWhether a retry may help.
errorsArrayValidation issues: code, detail and at most one of pointer, parameter or header.