LootDash runs the games; your platform keeps the money. Your server opens a game for a player with one API call and shows it in an iframe. While the player plays, LootDash calls your wallet to read the balance, take bets and pay wins. Every call we make is signed with a secret only you and we hold, and comes from a fixed IP address.
Updated 10 November 2026 — see the changelog.
How it works
-
Your server calls
POST /operator/v1/launch, signed with your API key, with the player's id and gets back alaunchUrl. -
You open
launchUrlfor the player in an iframe or a new window. -
The game reads the player's balance from your wallet and, as the player
plays, sends you
bet,cashoutandcancelBet. If you ask for it, it also tells you which bets lost (lose). -
You apply each of them exactly once and answer
2xx. What we do with any other answer is described in step 6.
| Direction | Calls | Authentication |
|---|---|---|
| You → LootDash |
GET /operator/v1/games, POST /operator/v1/launch
|
HMAC signature with your API key in the X-LD-* headers,
optionally from your allowed IPs
|
| LootDash → you | User info, bet, cashout, cancel-bet, lose (optional) |
HMAC signature in x-signature, sent from our fixed IP
|
Credentials
You send us
-
Wallet base URL (HTTPS), e.g.
https://wallet.yourcasino.com/lootdash. We add the paths from step 4 to it. - The games you want enabled.
- Your own paths for bet, cashout, cancel-bet and lose, only if the defaults do not suit you.
- Whether you want lose (optional): a message for every bet that lost. It is off unless you ask.
- Your servers' outgoing IP addresses (optional, recommended). We then accept your API calls only from them.
We send you
-
Operator ID — your name in our system, e.g.
yourcasino. -
API key: a key ID
ldk_<24 hex>and an API secretlds_<64 hex>. You sign your calls to us with them (step 3); the secret itself is never sent. - Signing secret (64 hex characters) — lets you verify our calls to you. It is a different secret from the API secret.
- Our outgoing IP address — allow it on your wallet endpoints.
Launch a game
API base URL: https://api.douxgames.com. Call it from your server
only.
Sign every request
Every call to /operator/v1 carries four headers. The signature is an
HMAC-SHA256, keyed with your API secret, over six lines joined by
\n (no trailing newline).
| Header | Value |
|---|---|
| X-LD-Key-Id | Your key ID. |
| X-LD-Timestamp | Unix time in seconds. We accept 5 minutes either way: keep your clock on NTP. |
| X-LD-Nonce |
A new random value for every request, retries included: 16 to 64
characters of A-Z a-z 0-9 _ -.
|
| X-LD-Signature |
v1= followed by the lowercase hex HMAC.
|
v1
POST ← the method, upper case
/operator/v1/launch ← path and query exactly as sent, no host
1760000000 ← X-LD-Timestamp
b7Kq2x9LmP4vT1sR ← X-LD-Nonce
903c64c4fe0c... ← lowercase hex SHA-256 of the raw body
-
The HMAC key is the whole API secret as we gave it,
lds_included. -
Hash the exact bytes you send: serialize the JSON once and send that same
string. A request with no body hashes the empty string
(
e3b0c442...b855). - A nonce can be used once. A retry is a new request: sign it again with a new nonce and timestamp.
import crypto from "node:crypto";
const KEY_ID = process.env.LOOTDASH_KEY_ID; // ldk_...
const SECRET = process.env.LOOTDASH_API_SECRET; // lds_...
function signHeaders(method, target, body = "") {
const timestamp = String(Math.floor(Date.now() / 1000));
const nonce = crypto.randomBytes(16).toString("hex");
const bodyHash = crypto.createHash("sha256").update(body, "utf8").digest("hex");
const stringToSign = ["v1", method, target, timestamp, nonce, bodyHash].join("\n");
const signature = crypto.createHmac("sha256", SECRET).update(stringToSign, "utf8").digest("hex");
return {
"X-LD-Key-Id": KEY_ID,
"X-LD-Timestamp": timestamp,
"X-LD-Nonce": nonce,
"X-LD-Signature": "v1=" + signature,
};
}
// Serialize the body once, sign those bytes, send the same string.
const body = JSON.stringify({ playerId: "player-1001", game: "crash", currency: "EUR" });
const res = await fetch("https://api.douxgames.com/operator/v1/launch", {
method: "POST",
headers: { "Content-Type": "application/json", ...signHeaders("POST", "/operator/v1/launch", body) },
body,
});
function lootdash_headers(string $method, string $target, string $body = ''): array {
$timestamp = (string) time();
$nonce = bin2hex(random_bytes(16));
$stringToSign = implode("\n", ['v1', $method, $target, $timestamp, $nonce, hash('sha256', $body)]);
return [
'X-LD-Key-Id: ' . getenv('LOOTDASH_KEY_ID'),
'X-LD-Timestamp: ' . $timestamp,
'X-LD-Nonce: ' . $nonce,
'X-LD-Signature: v1=' . hash_hmac('sha256', $stringToSign, getenv('LOOTDASH_API_SECRET')),
];
}
// Serialize the body once, sign those bytes, send the same string.
$body = json_encode(['playerId' => 'player-1001', 'game' => 'crash', 'currency' => 'EUR']);
$ch = curl_init('https://api.douxgames.com/operator/v1/launch');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => array_merge(
['Content-Type: application/json'],
lootdash_headers('POST', '/operator/v1/launch', $body)
),
]);
$response = curl_exec($ch);
Check your code against this example before calling us:
| Input | Value |
|---|---|
| API secret |
lds_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
|
| Method, path |
POST /operator/v1/launch
|
| Timestamp, nonce |
1760000000, b7Kq2x9LmP4vT1sR
|
| Body |
{"playerId":"player-42","game":"crash","currency":"EUR"}
|
| Body SHA-256 |
903c64c4fe0c27991a2d1aa700dec5f7ee6bc06a65516bdabffdabfcf58659be
|
| X-LD-Signature |
v1=048a6d831c08b097a383788f9ce0294ed1ebd0a683f80233daff0a36e20bcf50
|
Check your setup
GET /operator/v1/me
X-LD-Key-Id: ldk_3f9a1c0e7b2d4a6f8e1c5b90
X-LD-Timestamp: 1760000000
X-LD-Nonce: n0nce-for-get-0001
X-LD-Signature: v1=...
{
"operatorId": "yourcasino",
"keyId": "ldk_3f9a1c0e7b2d4a6f8e1c5b90",
"platform": null,
"enabledGames": ["crash", "mines"]
}
List your games
GET /operator/v1/games
X-LD-Key-Id: ldk_...
X-LD-Timestamp: ...
X-LD-Nonce: ...
X-LD-Signature: v1=...
{
"games": [
{ "code": "crash", "name": "Loot Dash" },
{ "code": "mines", "name": "Loot Trap" },
{ "code": "chicken-run", "name": "Loot Run" },
{ "code": "slots", "name": "Loot Spin" }
]
}
Only the games enabled for you are listed.
Open a game for a player
POST /operator/v1/launch
Content-Type: application/json
X-LD-Key-Id: ldk_...
X-LD-Timestamp: ...
X-LD-Nonce: ...
X-LD-Signature: v1=...
{"playerId":"player-1001","game":"crash","currency":"EUR"}
{
"launchUrl": "https://<game-host>/?token=eyJhbGciOiJIUzI1NiJ9...¤cy=EUR",
"token": "eyJhbGciOiJIUzI1NiJ9...",
"expiresAt": "2026-10-08T22:15:00.000Z",
"expiresInSeconds": 43200,
"game": "crash",
"currency": "EUR",
"playerId": "player-1001"
}
| Field | Meaning |
|---|---|
| playerId |
Your id for the player: 1 to 128 characters, no spaces. It is in the
signed body, so nobody can change it in transit. Use a stable id, not a
session id; it is case-sensitive. We send it back as
userId in every wallet call and in the user-info path. The
player is created on first launch.
|
| game |
A code from GET /operator/v1/games: crash,
mines, chicken-run or slots.
|
| currency |
The player's wallet currency: 3 to 8 letters or digits, e.g.
EUR or USDT. We do not convert anything: every
bet in this session is in this currency, and the balance is read in it.
|
-
Call
POST /operator/v1/launchevery time the player opens a game and open thelaunchUrlright away. Do not cache or share it: whoever holds it can play as that player until it expires. - A session lasts 12 hours and works only for the game and currency it was opened with. To switch game or currency, launch again. A player can have several sessions open at once.
- When a session expires, the game stops accepting bets. Launch again to continue.
- The token is ours: you never need to read or check it.
<iframe src="{launchUrl}" allow="fullscreen"
style="width:100%; height:100%; border:0"></iframe>
On small screens you can open the URL in a new window instead.
Errors
| Status | Meaning |
|---|---|
| 400 | Invalid body: an unknown game, or a currency in the wrong format. |
| 401 |
The request is not signed correctly. The body's
code says why (table below).
|
| 403 |
The game is not enabled for you, your account is disabled
(OPERATOR_INACTIVE), or the call came from an IP you did not
list (IP_NOT_ALLOWED).
|
| 409 | Your account is not set up for launching yet. Contact us. |
| 429 | Over 1,200 launches per minute from one IP address. |
| 503 | The game cannot be launched right now. Try again later, with a new nonce. |
| code | Fix |
|---|---|
| SIGNATURE_HEADERS_MISSING | Send all four X-LD-* headers. |
| SIGNATURE_HEADERS_MALFORMED | A header has the wrong format: see the table above. |
| TIMESTAMP_OUT_OF_WINDOW | Your clock is more than 5 minutes off ours. Sync it with NTP and sign right before sending. |
| INVALID_KEY | Unknown or replaced key ID. Use your current key. |
| INVALID_SIGNATURE | Check the method, the path and query, the exact body bytes and the secret. |
| NONCE_REUSED | Use a new nonce for every request, retries included. |
| OPERATOR_INACTIVE | Your account is disabled. Contact us. |
| IP_NOT_ALLOWED | Call from an IP you gave us, or send us the new one. |
{
"statusCode": 401,
"code": "INVALID_SIGNATURE",
"message": "Signature does not match the request"
}
Free play (demo)
Open a game's address with no token and the player gets a play-money balance (in USD). Nothing in a demo session reaches your wallet. Ask us for the demo addresses.
Wallet endpoints
Build these on your wallet. {base} is the wallet base URL you gave
us.
| Call | Request | Purpose |
|---|---|---|
| getUserInfo |
GET {base}/ledger/user-info/{playerId}/{currency}
|
Return the player's profile and balance |
| bet |
POST {base}/operator-actions/bet
|
Take the stake |
| cashout |
POST {base}/operator-actions/cashout
|
Pay a win |
| cancelBet |
POST {base}/operator-actions/cancel-bet
|
Refund a bet |
| lose |
POST {base}/operator-actions/lose
|
Optional. Learn that a bet lost; no money moves |
All these paths can be changed during onboarding. For getUserInfo we add
/{playerId}/{currency} to its path, e.g.
/wallet/players is called as
/wallet/players/player-1001/EUR.
getUserInfo
GET /lootdash/ledger/user-info/player-1001/EUR
x-timestamp: 2026-10-08T10:20:30.123Z
x-signature: sha256=3b1f9c...
{
"userId": "player-1001",
"username": "lucky_cat",
"email": "player@example.com",
"balance": {
"currency": "EUR",
"amount": "250.00"
}
}
{playerId} is the playerId you launched with,
URL-encoded. {currency} is the launch currency. Return one JSON
object:
| Field | Required | Description |
|---|---|---|
| userId | Yes | The player id from the path. If it is another player's, we ignore username and email. |
| username | Recommended | The player's display name on the live bets feed, the leaderboard and our back office. Without it, the player appears under a generated name. |
| No | Shown in our back office only. | |
| balance.currency | Yes | The currency of the amounts: the one in the path. |
| balance.amount | Yes | The player's balance, as a number or a decimal string. |
| balance.bonusAmount | No | Bonus funds the player can stake. Default 0. |
| balance.lockedAmount | No | Funds the player cannot stake. Default 0. |
-
We count
amount + bonusAmount − lockedAmountas playable. Most wallets returnamountonly. - We update the player's name and email whenever your answer changes them.
-
We call getUserInfo whenever the game shows the balance and before every Loot Dash
bet. While you answer with an error, or without
balance, the player sees no balance and Loot Dash refuses bets. The other games rely on your answer to the bet itself. -
To refuse a player, answer with an
error code, e.g.
5for a blocked player or7for a currency they have no wallet in. Loot Dash then refuses the bet with that reason.
Message format
Bet, cashout, cancel-bet and lose each receive one JSON message:
{
"action": "bet",
"payload": { },
"timestamp": "2026-10-08T10:20:30.123Z",
"eventId": "a2f0a6d5-6f93-4b6b-9c9e-6c5a221cd389",
"correlationId": "bet:chicken-0b7c9a52-3f2e-4a8e-9a43-0f5e2b1c7d10"
}
| Field | Meaning |
|---|---|
| action |
bet, cashout, cancelBet or
lose.
|
| payload | Described below. |
| correlationId |
<action>:<externalBetId>. The same on every
retry, and also sent as the idempotency-key header.
Deduplicate on it.
|
| eventId, timestamp | Change when we deliver the message again. Never deduplicate on them. |
bet
{
"externalBetId": "chicken-0b7c9a52-3f2e-4a8e-9a43-0f5e2b1c7d10",
"userId": "player-1001",
"gameCode": "chicken-run",
"amount": "10.00",
"currency": "EUR",
"betId": 18342,
"gameId": 18343,
"clientSeed": "f3a9c2e1",
"sessionId": "5d0f6a8e-2c4b-4f7e-9d1a-3b8c7e6f5a40"
}
| Field | Meaning |
|---|---|
| externalBetId | The bet's id, unique across all games. Key the transaction on it. A string; allow up to 64 characters. |
| userId |
Your player id (the playerId you launched with).
|
| gameCode |
crash, mines, chicken-run,
slots or escape-protocol.
|
| amount | The stake to take. |
| currency | The session currency. |
| betId, gameId | Our ids inside the game. They repeat across games: for information only. |
| clientSeed, sessionId | Provably fair client seed and our id for the player. Optional, for information only. |
cashout
{
"externalBetId": "chicken-0b7c9a52-3f2e-4a8e-9a43-0f5e2b1c7d10",
"userId": "player-1001",
"gameCode": "chicken-run",
"winnings": "25.00",
"betAmount": "10.00",
"multiplier": "2.500000",
"betId": 18342,
"gameId": 18343
}
| Field | Meaning |
|---|---|
| externalBetId | The bet being paid. The one exception is Loot Spin free-spin wins, which have an id of their own and no bet (step 7). |
| winnings | The amount to credit: the whole payout, stake included. |
| betAmount | The stake of the bet being paid. |
| multiplier | For information only. Always credit winnings. |
A cashout carries no currency: credit it in the currency of its bet.
cancelBet
{
"externalBetId": "mines-6f1c2d3e-8a4b-4c5d-9e6f-7a8b9c0d1e2f",
"userId": "player-1001",
"gameCode": "mines",
"betId": 1759924830123001,
"gameId": 1,
"reason": "debit_outcome_unknown"
}
-
Refund the stake of the bet
externalBetId, in its currency. The message carries no amount. -
If you never accepted that bet, record the cancellation anyway, answer
2xx, and refuse the bet if it arrives later. -
reason(optional) is for your logs.gameIdmay be absent.
lose (optional)
Sent only if you asked for it. It tells you that a bet you accepted lost, so you can close it on your side instead of leaving it open. When each game sends it is in step 7.
{
"externalBetId": "mines-6f1c2d3e-8a4b-4c5d-9e6f-7a8b9c0d1e2f",
"userId": "player-1001",
"gameCode": "mines",
"betAmount": "10.00",
"currency": "EUR",
"betId": 1759924830123001,
"gameId": 1
}
-
Move no money: the stake was taken by the bet. Mark the bet
externalBetIdas lost and answer2xx. -
betAmountandcurrencyrepeat the bet's stake, for information only. - It is sent after the bet it belongs to, usually within seconds of the loss. In Loot Dash, one round can end with many of them at once: we send up to 10 at a time.
10.5) or decimal strings
("10.50"): accept both.
Verify our calls
Every request we send you, balance reads included, carries:
| Header | Value |
|---|---|
| x-timestamp |
When we sent this attempt, ISO 8601 in UTC, e.g.
2026-10-08T10:20:30.123Z.
|
| x-signature |
sha256= followed by the hex HMAC-SHA256 of the signed string.
The key is your signing secret as text: do not hex-decode it.
|
| idempotency-key |
The message's correlationId (bet, cashout, cancel-bet
and lose only).
|
| Content-Type | application/json |
The signed string is x-timestamp + "." + one
of:
- POST: the raw request body, byte for byte as received. Do not re-serialize the JSON.
-
GET: the request path and query string exactly as received,
including the path of your base URL, e.g.
/lootdash/ledger/user-info/player-1001/EUR. If a proxy in front of your wallet rewrites paths, verify against the path we called.
To accept a request:
-
Check that
x-timestampis within 5 minutes of your clock. Messages we send again later are signed afresh, so they pass this check. -
Compute the signature and compare it with
x-signaturein constant time. - Check that the request comes from our IP address.
-
The signature covers the body, not the path: check that the message's
actionmatches the endpoint it arrived on.
Answer 401 with the
error code
2 to anything that fails. We never send an
Authorization header or a player token.
import crypto from "node:crypto";
import express from "express";
const SECRET = process.env.LOOTDASH_SIGNING_SECRET;
const MAX_SKEW_MS = 5 * 60 * 1000;
function verifyLootDash(req, res, next) {
const timestamp = req.get("x-timestamp") ?? "";
const signature = Buffer.from(req.get("x-signature") ?? "", "utf8");
if (!(Math.abs(Date.now() - Date.parse(timestamp)) <= MAX_SKEW_MS)) {
return res.status(401).json({ code: 2 });
}
// POST: the raw body as received. GET: the path and query as received.
const signed = req.method === "GET" ? req.originalUrl : req.rawBody;
const expected = Buffer.from(
"sha256=" +
crypto.createHmac("sha256", SECRET).update(timestamp + "." + signed).digest("hex"),
"utf8",
);
// timingSafeEqual throws on inputs of different byte lengths: compare bytes.
const valid =
signature.length === expected.length &&
crypto.timingSafeEqual(signature, expected);
return valid ? next() : res.status(401).json({ code: 2 });
}
const app = express();
app.use(
express.json({
verify: (req, _res, buf) => {
req.rawBody = buf.toString("utf8");
},
}),
);
app.use("/lootdash", verifyLootDash);
$raw = file_get_contents('php://input');
function lootdash_verified(string $raw): bool {
$timestamp = $_SERVER['HTTP_X_TIMESTAMP'] ?? '';
$signature = $_SERVER['HTTP_X_SIGNATURE'] ?? '';
$sent = strtotime($timestamp);
if ($sent === false || abs(time() - $sent) > 300) {
return false;
}
// POST: the raw body as received. GET: the path and query as received.
$signed = $_SERVER['REQUEST_METHOD'] === 'GET' ? $_SERVER['REQUEST_URI'] : $raw;
$secret = getenv('LOOTDASH_SIGNING_SECRET');
$expected = 'sha256=' . hash_hmac('sha256', $timestamp . '.' . $signed, $secret);
return hash_equals($expected, $signature);
}
if (!lootdash_verified($raw)) {
http_response_code(401);
header('Content-Type: application/json');
echo json_encode(['code' => 2]);
exit;
}
// Decode the bytes you verified.
$message = json_decode($raw, true);
Responses & retries
For bet, cashout and cancel-bet, the HTTP status of your answer decides what happens to the money. When you refuse a call or fail, also put an error code in the body: it tells us why, and so what we tell the player. We wait up to 10 seconds for your answer.
| Your answer | What it tells us |
|---|---|
| 2xx | Done. Answer 2xx only once the money has moved, or for a duplicate you have already applied. |
| 4xx | You refuse it: not enough funds, a blocked player, an unknown currency, a limit, a bad signature. |
| 5xx, 429, timeout | Unknown: it may or may not have been applied. |
Error codes
When you answer getUserInfo, bet, cashout or cancel-bet with a 4xx or
5xx, send this body:
{
"code": 3,
"message": "Not enough money"
}
| Code | Calls | When | The player sees |
|---|---|---|---|
| 1 VALIDATION_FAILED | All | Our request is malformed: a field is missing or out of range. | A wallet error |
| 2 INVALID_SIGNATURE | All | The signature or timestamp is wrong. | A wallet error |
| 3 INSUFFICIENT_FUNDS | bet | The player cannot cover the stake. | Insufficient funds |
| 4 PLAYER_NOT_FOUND | All | You do not know the player. | Session no longer valid |
| 5 PLAYER_BLOCKED | getUserInfo, bet | The player may not play: self-excluded, suspended, cooling off. | Account cannot play right now |
| 6 BET_LIMIT_EXCEEDED | bet | Over a responsible-gaming limit or your maximum bet. | Bet limit reached |
| 7 CURRENCY_NOT_SUPPORTED | getUserInfo, bet | The player has no wallet in this currency. | Currency not supported |
| 8 GAME_NOT_AVAILABLE | bet | The game is disabled for this player or market. | Game not available |
| 9 BET_NOT_FOUND | cashout | You have no accepted bet with this externalBetId. | Nothing |
| 50 INTERNAL_ERROR | All | Something failed on your side. Send it with a 5xx. | A wallet error |
-
codeis a number.messageis optional and for our logs only; players never see it. -
The code tells us why; the HTTP status still decides what happens next
(below). A refusal is a
4xxwith codes 1 to 9; use a5xxonly with 50. - A cashout or cancel-bet for a bet you accepted must never be refused (see the rules below): codes 3, 5, 6, 7 and 8 do not apply to them.
- Without a code, or with one not in this table, we treat the answer by its status alone and the player sees a wallet error.
What happens next
| Situation | Loot Trap, Loot Run, Loot Spin | Loot Dash |
|---|---|---|
| bet → 2xx | The round starts. | The bet stands. |
| bet → 4xx | The round does not start. Nothing else is sent for that bet. | The bet is voided and its win is never paid. If an earlier delivery of it went unanswered, a cancelBet follows. |
| bet → 5xx, 429 | Retried up to 3 times within the 10 seconds. If it still fails, the round is cancelled and a cancelBet follows about 2 minutes later. | Sent again, at growing intervals, for up to 3 days. |
| bet → timeout | The round is cancelled and a cancelBet follows about 2 minutes later. | Sent again, as above. |
| cashout fails | We record the win as owed and send the cashout again in the background, with the same idempotency-key. | Sent again for up to 3 days. |
| cancelBet fails | Sent again for up to 3 days. | Sent again for up to 3 days. |
| lose fails | Sent again for up to 3 days. Nothing else waits for it. | Sent again for up to 3 days. Nothing else waits for it. |
A Loot Dash bet joins the round as soon as the player places it (after we check the balance with you), and its message reaches you within seconds. Refusing it voids the bet. If you cannot be reached we keep sending it, and its cashout waits until the bet goes through.
Escape Protocol takes its stake like Loot Spin: a refusal means the player stays in Loot Spin, and a bet with no answer is followed by a cancelBet about 2 minutes later. Its cashout and cancelBet are sent again for up to 3 days, like Loot Dash.
Rules for your wallet
-
Apply each
idempotency-keyonce. When it comes again, answer2xxagain, never409or another error. -
Key every bet on
externalBetId, and pay a cashout or a cancelBet against that bet. - Never refuse a cashout or a cancelBet for a bet you accepted, not even after the player's session has ended or the player was blocked.
-
Do not pay a cashout for a bet you did not accept (refused or never received):
answer
4xx. Loot Spin free-spin wins are the only cashouts without a bet. -
A cancelBet for a bet you do not have: record it, answer
2xx, and refuse that bet if it arrives later. -
A lose moves no money and is never a reason to refuse: record it and answer
2xx, also for a bet you do not have. - Do not require the player to be online. Queued messages can reach you minutes or days after the player has left.
Game by game
By default a lost round sends nothing. If you asked for lose, a lost bet sends one, as the second table shows.
| Game | bet | cashout | cancelBet |
|---|---|---|---|
| crash | Each bet for a round, including bets placed for the next round. A player can hold several bets in one round. | The player cashes out before the crash. | The player cancels a bet before the round starts, or we void a round. |
| mines | A round starts. | The player cashes out, or opens every safe cell. | We close a round with no cell opened, or roll back a debit that failed or got stuck. |
| chicken-run | A round starts. | The player cashes out (before the first step this returns the stake), or the round's auto cash-out fires. | We roll back a debit that failed or got stuck. |
| slots | Every paid spin and every bonus purchase. | A spin wins. A spin without a win sends no cashout. | We roll back a debit that failed or got stuck, or a spin that could not be settled. |
| escape-protocol | The player takes a Loot Spin win into Escape Protocol: the stake is that whole win. | The player collects the result, at any stage or after the last one. A run the player leaves is collected for them. | The protocol could not be started after the stake was taken. |
| Game | lose (optional) is sent when |
|---|---|
| crash | The round crashes before the player cashed out. One per losing bet, sent when the round ends. |
| mines | The player opens a mine. |
| chicken-run | The round crashes, on a step or when its time runs out. |
| slots | A spin or a bought bonus pays nothing. Not sent when its free spins are paid as separate cashouts. |
| escape-protocol | A run ends with nothing because a stage was lost. One lose, for the stake the run started with. |
- Autobet in Loot Trap and Loot Run is a series of ordinary rounds: one bet and at most one cashout or lose each.
- A Loot Trap round left open for over an hour is closed when the player starts the next one: paid as a cashout if a cell was opened, cancelled otherwise.
-
Loot Spin free spins: their wins come either inside the cashout of
the spin that triggered them or as separate cashouts whose
externalBetIdstarts withslots-free-spin-, with no bet of their own. Pay them. -
Loot Spin Buy Bonus: one bet for the bonus price (
externalBetIdstarts withslots-buy-bonus-), then its wins as cashouts. If a bought bonus cannot start, the price comes back as a cashout of that bet. -
Escape Protocol is a bonus stage the player enters from a Loot Spin
win, in the same session; it is not launched on its own. The Loot Spin win is paid
first (cashout), then taken back as the Escape stake (a bet with
gameCodeescape-protocol). The result comes as one cashout, or nothing if the player busts (a lose, if you take it); the stage games played inside it send nothing of their own. Enable bothslotsandescape-protocolto offer it. - An Escape run the player leaves is not lost. 30 minutes after the player's last move, or 2 hours after the run started, we finish it for them: a stage they played counts with its result, a stage they did not finish is refunded into the run. What remains comes as the run's usual cashout, while the player is offline; a lost stage leaves nothing to pay.
| Game | externalBetId looks like |
|---|---|
| crash | lootdash-bet-18342 |
| mines | mines-<uuid> |
| chicken-run |
chicken-<uuid>
|
| slots |
slots-spin-<uuid>,
slots-buy-bonus-<uuid>,
slots-free-spin-<uuid>
|
| escape-protocol |
escape-protocol-<uuid>
|
Apart from recognising free-spin wins, treat externalBetId as an
opaque string.
Test & go live
- We register you and send the credentials (step 2). You allow our IP address.
-
You sign a
GET /operator/v1/meand get200with your operator ID. - You build the four endpoints (five with lose) and the signature check.
-
We send a signed test message to bet, cashout and cancel-bet, and to lose if you
take it. It carries dummy values (
correlationIdbet:test,cashout:test,cancelBet:testorlose:test,userId1, noexternalBetId): check the signature, move no money and answer2xx. - You launch each game for a test player and play a win, a loss and a cancelled bet (in Loot Dash, cancel before the round starts).
- We compare both ledgers for those rounds.
- When everything matches, open the games to your players.
Keys & settings
These are changed by LootDash. Ask your LootDash contact.
- Enable or disable games. A disabled game cannot be launched, but sessions already open keep working until they expire.
- Replace the API key, with no downtime. We issue a second key while the first still works. You deploy it, we see it in use and then revoke the old one. If a secret leaks, we revoke it at once.
- Change the IP addresses your API calls may come from.
- Replace the signing secret. We sign with the new secret from that moment on, so agree the time with us and accept both secrets for a few minutes around it.
- Change the wallet URL or paths.
- Set the bet range. The smallest and largest bet your players may place, in every game (by default 0.10–100; it can go higher). An Escape Protocol stage always stakes the whole run, whatever the range.
- Set win caps. The most one round may pay: a multiple of the bet, a fixed amount, or both (the lower applies). For Escape Protocol, the most a run may reach: a stage that gets the balance there ends the run, and the player collects it. Amounts are in the round's currency, not converted. A capped win comes as an ordinary cashout of the capped amount.
Your own limits. The bet range and win caps above are the allowed values. Inside them, your admins can set narrower limits per game themselves, in the LootDash admin panel under Limits:
-
Bets (Loot Dash, Loot Trap, Loot Run, Loot Spin): a smaller and a larger
bet within the allowed range; in Loot Spin, in whole steps of 0.10. A bet outside it
is refused with
AMOUNT_OUT_OF_RANGE, and the games show your range on their bet field. - Wins: a multiple of the bet, an amount per round, or both; for Escape Protocol, the most a run may reach. None can be above the allowed max for that game, and a round pays at most the lower of the two. A low Loot Spin limit takes Buy Bonus off sale at the higher bets.
Changes apply to new rounds right away. Inside an Escape Protocol run, the stage games play under the allowed max only, not your limits for those games.
Reference
| Topic | Details |
|---|---|
| API base URL |
https://api.douxgames.com
|
| Errors |
JSON { statusCode, message, error }. For an invalid body,
message is a list. Authentication errors carry a
code instead of error.
|
| Rate limits |
POST /operator/v1/launch: 1,200 per minute per IP address.
Other calls have lower limits. Over the limit: 429 with a
Retry-After header.
|
| Currency | 3 to 8 uppercase letters or digits. We do not check it against a list. |
| Session | 12 hours, one game and one currency. |
| Your answers | We wait up to 10 seconds. Do not answer with a redirect. |
| Connections | We reuse connections. Keep idle keep-alive connections open for longer than 5 seconds, or close them with Connection: close. |
| Headers | Ignore headers you do not know; we may add new ones. |
Changelog
- 10 November 2026. New optional lose message: ask us to turn it on and we tell you which bets lost. Nothing changes if you do not.
-
9 October 2026. Your calls to us are signed:
/operator/v1/gamesand/operator/v1/launchreplace/launch/gamesand/launch. Thex-api-keyandx-player-idheaders are gone: the API key is a key ID and secret you sign with, and the player isplayerIdin the body. Optional IP allowlist, and key rotation with no downtime. - 8 October 2026. Your error answers carry an error code, and the player is told the reason.
-
8 October 2026. Games are opened with
POST /launch. Our wallet calls are signed and come from a fixed IP address instead of carrying a player token. This guide replaces the earlier player-token version.