Operator docs
Bring Lucky games
to your players.
Everything your engineers need to add our games to your casino: a signed server-to-server API, a seamless Wallet that stays on your side, and a game client you embed in your pages.
The contracts are still in draft: Operator API 1.0.0-draft.8 and Wallet API 1.0.0-draft.1. They can change before release; the changelog summarizes what changed. Today the sandbox and the stage are the only Environments, both for testing only: real-money play isn’t available yet.
Three parts, two directions
Each part of the integration has one caller and one implementer, so it’s always clear which side owns which behavior.
Operator API
Read the game catalog, create GameSessions with launch URLs, and look up Rounds and WalletTransactions when you investigate an issue.
Catalog and launch We call youWallet API
Five endpoints you host: balance, Debits, Credits, Reversals and transaction status. Your Wallet holds the authoritative balance.
Wallet integration Runs in the browserGame client
Open the launch URL in an iframe or a new tab. The game talks to our servers directly, so you never relay gameplay.
Embedding the gameWho does what
| Operator API | Wallet API | Game client | |
|---|---|---|---|
| Caller | Your backend | Lucky ∞ | The player’s browser |
| Implemented by | Lucky ∞ | You | Lucky ∞ (the game) and you (the page around it) |
| Authentication | Operator API Token plus an Ed25519 signature made with your key | A Wallet access token you issue plus an Ed25519 signature made with our key | A single-use launch code, then a session of its own |
| Your job | Sign requests, keep the IDs we return, hand the launch URL to the browser | Verify our signature, apply each transaction once per ID, return receipts | Embed the launch URL on a page origin we approved |
How a Round flows in real mode
- Your backend signs
POST /v1/game-sessionswith the player’s context and your Operator Session Token for that player. - We return a GameSession ID and a launch URL. The URL works once, for a few minutes.
- Your page opens the launch URL in an iframe or a new tab.
- The player presses Play. The game exchanges the launch code for its own session and starts each Round on our servers.
- For each Round we send your Wallet one Debit for the stake.
- When the Round’s Outcome is recorded, we send one Credit for the gross payout. A Round without a win still gets a Credit, for zero, that closes it.
- The game shows the Outcome and the balance your Wallet reported in its receipt.
In the sandbox, real mode runs on virtual units from our own test Wallet; on the stage, on test funds in your own test Wallet. Demo GameSessions follow the same launch steps but never call a Wallet. See Rounds and reconciliation for the full lifecycle and the failure cases.
What v1 covers
- Game catalog with compatibility filters
- Real and demo GameSessions with launch URLs
- A fresh launch URL when you retry session creation
- Seamless Wallet: balance, Debit, Credit, Reversal and status lookup
- Diagnostic reads of single Rounds and WalletTransactions
- Promotions such as free rounds or bonus money, and jackpots
- Partial Reversals and Reversals of Credits
- History and reporting endpoints that list many Rounds
- Events from the game to your page, such as
postMessage - Self-service credential management: we provision credentials with you
Where to go next
Quick start
Sign your first request in the sandbox and open a demo game.
Six stepsOnboarding
What you send us, what we provision, and the path we intend to production.
EnvironmentsSigning
The exact RFC 9421 profile, with test vectors and code.
AuthenticationAcceptance checks
The Wallet scenarios your implementation must pass.
TestingReady to integrate?
Tell us about your platform and we’ll set up your sandbox access.