Get started
Quick start
Go from sandbox credentials to a running game in six steps. You’ll sign real requests against our sandbox, create a demo GameSession and play it in your browser.
The sandbox runs a reference build of Golden Jaguar with test-only rules and virtual units. Its stakes and payouts aren’t those of a commercial release, and nothing in it is real money.
Before you begin
- Node.js 22 or later to run our example script. Any language with Ed25519 and SHA-256 works for your own code.
- OpenSSL 3 to create your signing key.
- Sandbox access. Contact us and mention that you want sandbox credentials. You’ll send us a few details in step 1 and receive yours in step 2.
1. Create your signing key
Every Operator API request carries an Ed25519 signature made with a private key that only you hold. Create the key pair and print the public key in the format we register: the 32 raw key bytes in unpadded base64url.
openssl genpkey -algorithm ed25519 -out operator-signing-key.pem
chmod 600 operator-signing-key.pem
openssl pkey -in operator-signing-key.pem -pubout -outform DER \
| tail -c 32 | openssl base64 -A | tr '+/' '-_' | tr -d '='
Send us the printed public key with a key ID of your choice, for example acme-sandbox-2026-10. A key ID has up to 128 characters; use letters, digits, dots, dashes and underscores. If you’ll send a lobby URL, which is optional, include it too, for example https://casino.example.com/lobby. Never send the private key.
2. Receive your sandbox credentials
We reply with the values below. Store the token like a password: it works only together with your signature, but it’s still a credential.
| Value | Sandbox |
|---|---|
| Operator API base URL | https://sandbox-api.luckyeight.games |
| Game origin of launch URLs | https://sandbox-game.luckyeight.games |
| Operator API Token | An opaque value that starts with op_test_, sent through a secure channel |
| Brand ID | The ID of the Brand we created for you |
| Launch combinations | Country DE, currency EUR, locale en-GB, on desktop and mobile |
The launch combinations are what the sandbox accepts for a GameSession, in demo mode too. They’re a sandbox setting, not a statement about where your players are.
3. Sign your first request
Work in the folder that holds operator-signing-key.pem from step 1. Download operator-request-signer.mjs, our zero-dependency signer, into it. Save the Operator API Token from step 2 in a file next to it, as plain UTF-8 text without the Bearer prefix; a trailing newline is fine. Run this command in bash or zsh, paste the token at the Token: prompt and press Enter. Nothing is shown while you paste:
(rm -f operator-token && umask 077 && printf 'Token: ' && IFS= read -rs LUCKY_TOKEN && printf '%s\n' "$LUCKY_TOKEN" > operator-token && echo)
Only you can read the file, and the token stays out of your shell history. Then point the signer at your credentials and list the games available to your Brand:
export LUCKY_API_URL=https://sandbox-api.luckyeight.games
export LUCKY_TOKEN_FILE=./operator-token
export LUCKY_KEY_FILE=./operator-signing-key.pem
export LUCKY_KEY_ID=acme-sandbox-2026-10
node operator-request-signer.mjs GET '/v1/games?brand_id=YOUR_BRAND_ID'
A 200 OK means your signature is right. The body is a page of Games:
200 OK X-Request-Id: 3f0e8f1a-6f7d-4e8c-9a3b-1d2c4b5a6e7f
{"items":[{"id":"…","name":"…","category":"slot","status":"available",
"supported_modes":["demo","real"],"supported_currencies":["EUR"],
"supported_locales":["en-GB"],"supported_client_types":["desktop","mobile"],
"capabilities":[]}]}
Keep the Game’s id for the next step. A 401 authentication_failed means the token, the key or the signature didn’t verify; the signing checklist lists the usual causes.
4. Create a demo GameSession
Save the request body as session.json. In demo mode you don’t send an Operator Session Token, and we never call a Wallet.
{
"brand_id": "YOUR_BRAND_ID",
"game_id": "GAME_ID_FROM_STEP_3",
"mode": "demo",
"player": {
"id": "quickstart-player-001",
"country": "DE",
"currency": "EUR",
"locale": "en-GB",
"ip": "203.0.113.10"
},
"client": { "type": "desktop" },
"return_urls": { "lobby": "YOUR_REGISTERED_LOBBY_URL" }
}
player.id is your own ID for the player, and player.ip is the player’s address. Leave out return_urls if you didn’t send us a lobby URL. Then send it:
node operator-request-signer.mjs POST /v1/game-sessions session.json
The script prints the Idempotency-Key it generated, then the answer:
201 Created X-Request-Id: 9b2d7c41-0e5a-4f63-8d1e-7a6b5c4d3e2f
{"id":"…","launch_url":"https://sandbox-game.luckyeight.games/launch/YOUR_BRAND_ID#code=…",
"created_at":"2026-10-20T12:00:00Z","expires_at":"2026-10-20T12:05:00Z"}
A 404 resource_not_found here usually means the combination of Brand, Game, mode, country, currency, locale and client type isn’t one we provisioned. Check the values against your launch combinations; the currency is needed in demo mode too.
5. Open the game
Open the launch_url in a new browser tab and press Play. The URL works once and expires at expires_at, a few minutes after you created it. If it expired or you reloaded the page, repeat step 4 with the same key and the same session.json. You get a fresh launch URL for the same GameSession:
LUCKY_IDEMPOTENCY_KEY=THE_KEY_FROM_STEP_4 \
node operator-request-signer.mjs POST /v1/game-sessions session.json
In the sandbox, only our own demo page may show the game in a frame, so use a new tab there. Embedding the game covers iframes and registered page origins.
6. Check the GameSession
Read the GameSession back. Once the player has pressed Play, its status is active:
node operator-request-signer.mjs GET /v1/game-sessions/YOUR_GAME_SESSION_ID
{"id":"…","brand_id":"YOUR_BRAND_ID","game_id":"…","player_id":"…","mode":"demo",
"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 reference for your player, not the player.id you sent. The GameSession’s own expires_at is hours away; only the launch URL is short-lived.