OrbiPoker developer documentation · API v1
Real-money poker in your casino, with one launch URL and one wallet webhook.
OrbiPoker runs the poker room: cash tables, fast-fold, Sit & Go, Spin & Go, tournaments and a back office. You keep the player account, KYC and money. The game runs in an iframe on your site, and every chip movement is a signed call to your wallet.
/app belongs to an operator (see Clubs). These docs are for operators and for partners that run many operators (see Aggregator API).Architecture
- Money stays with you. OrbiPoker holds no balances. Chips exist only after your wallet accepts a debit. Club chips are a separate closed loop.
- Integer minor units. Every amount is an integer in the currency's smallest unit (cents). Tournament chips are plain integers and never touch the wallet.
- Network or private. Per operator: your players share tables with other operators' players (network liquidity) or only meet each other (private).
- Three languages. The client speaks pt-BR, en and es.
Quick start
OrbiPoker staff create your operator account and give you an API key (orbp_sk_…) and a wallet secret (whsec_…) once.
- Try the sandbox. /sandbox acts as the backend of the demo operator: it creates launches, embeds them with the SDK and shows the iframe events and the wallet balance.
- Run the reference wallet. Run wallet-receiver.mjs (Node 24, no dependencies) with your secret and expose it over HTTPS. It answers on
/orbipoker/wallet. - Configure the back office. In /backoffice → Integration, set the wallet URL, add the origins that embed the iframe and press “Test connection”.
- Create a launch and embed it. Call
POST /api/v1/launchfrom your server and mount the returnedlaunchUrlwith the SDK. - Play a hand. Sit down: your wallet gets a
debit. Leave: it gets acredit.
# 1. the reference wallet (keep the secret out of shell history in production)
ORBIPOKER_WALLET_SECRET=whsec_… PORT=3001 START_BALANCE=100000 node wallet-receiver.mjs
# 2. a launch for player 42
curl -X POST "$ORBIPOKER_URL/api/v1/launch" \
-H "Authorization: Bearer $ORBIPOKER_API_KEY" -H "Content-Type: application/json" \
-d '{"playerId":"42","currency":"BRL","locale":"pt-BR","parentOrigin":"https://staging.casino.example"}'
Authentication
Server-to-server calls send an operator API key: Authorization: Bearer orbp_sk_…. A key is shown once, stored only as a SHA-256 hash, and created or revoked in the back office (Integration → API keys). Never send a key to a browser or an app.
| Status | Code | Meaning |
|---|---|---|
| 401 | UNAUTHORIZED | Missing, unknown or revoked key. |
| 403 | TENANT_SUSPENDED | Your operator account is suspended. Player sessions are revoked too. |
| 404 | NOT_FOUND | Unknown endpoint or resource. |
| 413 | BODY_TOO_LARGE | Request body over 64 KB. |
| 429 | RATE_LIMITED | More than 600 requests per minute from one IP across /api/*. Wait for Retry-After: 60. |
Errors are JSON: {"error":"human message","code":"MACHINE_CODE"}, sometimes with extra fields. Branch on code, never on the message. Every /api/ response has an X-Request-Id header; a 500 INTERNAL_ERROR also returns it as requestId. Authenticated calls are written to the audit log (method, path, duration).
The wallet webhook works the other way round: OrbiPoker calls you and signs each request with your wallet secret. See Seamless wallet.
Launch API
Call it from your backend every time a logged-in player opens poker. It creates or updates the player and returns a single-use URL for the iframe.
POST /api/v1/launch
Authorization: Bearer orbp_sk_…
Idempotency-Key: open-poker-42-1792443000
Content-Type: application/json
{
"playerId": "42",
"nickname": "AnaRiver",
"currency": "BRL",
"locale": "pt-BR",
"country": "BR",
"parentOrigin": "https://casino.example",
"sessionToken": "your-session-reference",
"lobby": "spin",
"depositUrl": "https://casino.example/cashier",
"exitUrl": "https://casino.example/casino"
}
201 Created
{ "launchId": "lc_3f…", "launchUrl": "https://…/launch/lc_3f….Gx2…", "expiresAt": 1792443120000 }
| Field | Rule | Description |
|---|---|---|
playerId required | 1–128 · [A-Za-z0-9_.@:+-] | Your stable player id. It comes back as playerId in every wallet call. |
currency required | enabled for your account | The player's wallet currency (saved on every launch). The player only sees tables and tournaments in it. |
nickname | 3–16 · [\p{L}\p{N}_.-] | First launch only; defaults to playerId. If taken by any player of any operator, it is cut to 12 characters plus a 4-digit suffix. |
locale | pt-BR · en · es | Client language. Default: the player's last locale, then your defaultLocale. |
country | ISO 3166-1 alpha-2 | Flag shown next to the player. |
parentOrigin | in your allow-list | Origin of the page that embeds the iframe. The client posts events only to this origin; without it, it posts none. |
sessionToken | string ≤ 512 | Opaque value echoed in the wallet calls of this session. |
lobby | cash · fastfold · sng · spin · mtt | Lobby tab to open. |
table | table id ≤ 64 | Cash table to open. |
theme | same schema as config.theme | Theme for this session only. |
view | club | Optional shortcut: opens straight in the club back office. Clubs and the back office are available without it. |
disable | list of parts, see Clubs | Turns these club parts off for this launch. Everything is on by default. |
guest | boolean | Opens a visitor who is not signed in, with no playerId: they watch the lobby and tables, no player is created and the wallet is never called. Trying to play posts orbipoker:login-required. Off with features.guestView: false. |
depositUrl · exitUrl | http(s) URL | Show the Deposit and Exit buttons. In an iframe a click posts orbipoker:deposit / orbipoker:exit; in a top-level page the client opens the URL. |
Rules
- Single use, 120 seconds. The URL expires two minutes after creation and is consumed when the iframe loads it. Create a new launch every time; never cache or share launch URLs.
- Player session: 12 hours. Reloading the iframe keeps the session. When it expires or is revoked, the client posts
orbipoker:session-expired: create a new launch. - Idempotency-Key (optional): 8–100 of
[A-Za-z0-9_-]. The same key andplayerIdreturn the same launch until it is opened or expires; after that the key gets409 IDEMPOTENCY_KEY_USED, so send a new key per open. The same key with anotherplayerIdgets409 IDEMPOTENCY_CONFLICT. - Origins.
parentOriginmust exactly match an allow-listed origin (HTTPS, no path; HTTP only for localhost). The iframe page is served withContent-Security-Policy: frame-ancestors 'self' <your allow-listed origins>. Sandbox operators accept any origin. - Strict body. Unknown fields get
400 INVALID_BODY.
| Status | Code | Meaning |
|---|---|---|
| 400 | INVALID_BODY · INVALID_PLAYER · INVALID_CURRENCY · INVALID_NICKNAME · INVALID_LOCALE · INVALID_COUNTRY · INVALID_ORIGIN · INVALID_SESSION_TOKEN · INVALID_LOBBY · INVALID_TABLE · INVALID_URL · INVALID_THEME · LOW_CONTRAST · INVALID_VIEW · INVALID_DISABLE · INVALID_IDEMPOTENCY_KEY | A field failed validation. INVALID_CURRENCY: the currency is not enabled for you. |
| 403 | ORIGIN_NOT_ALLOWED | parentOrigin is not in your allow-list. |
| 403 | PLAYER_BLOCKED | The player is blocked or self-excluded, until the block ends. |
| 409 | IDEMPOTENCY_CONFLICT · IDEMPOTENCY_KEY_USED | Key reused for another player, or for a launch already opened or expired. |
Iframe and SDK
Put the launch URL in an iframe. The SDK does it for you and turns the client's postMessage events into callbacks.
With the SDK (recommended)
<div id="poker"></div>
<script src="https://<orbipoker-host>/sdk/v1/orbipoker.js"></script>
<script>
const poker = OrbiPoker.mount({
container: '#poker', // selector or element
launchUrl, // from POST /api/v1/launch
onReady: info => console.log(info.nickname, info.locale),
onBalance: ({balance, currency}) => header.setBalance(balance, currency),
onDeposit: () => cashier.open(),
onExit: () => location.assign('/casino'),
onSessionExpired: () => relaunch(), // create a new launch
onError: ({code, message}) => log(code, message),
onEvent: event => analytics.track(event.type, event)
});
poker.refreshBalance(); // after a deposit in your cashier
poker.setLocale('es'); // pt-BR | en | es
poker.openClub(); // optional: opens the club back office
poker.destroy(); // removes the iframe and listeners
</script>
- Load the SDK with a
<script src>from the OrbiPoker host.mount()throws unless the launch URL is a/launch/URL on that same origin and the container exists. It only trusts messages from its own iframe. mount()returns{iframe, refreshBalance(), openClub(), setLocale(locale), destroy()}.onEventreceives every message.- The height follows
orbipoker:resize(320–20,000 px) unless you passheight(px number or CSS length). Default: 720 px.
Plain iframe
<iframe src="{launchUrl}" title="Poker" allow="autoplay; fullscreen; clipboard-write; window-management; geolocation"
style="border:0;width:100%;height:720px"></iframe>
<script>
const ORBIPOKER = 'https://<orbipoker-host>', frame = document.querySelector('iframe');
addEventListener('message', e => {
if (e.origin !== ORBIPOKER || e.source !== frame.contentWindow) return;
const m = e.data;
if (m?.source !== 'orbipoker' || m.version !== 1) return;
if (m.type === 'orbipoker:resize') frame.style.height = m.height + 'px';
});
// host → iframe
frame.contentWindow.postMessage({source: 'orbipoker-host', version: 1, type: 'orbipoker:refresh-balance'}, ORBIPOKER);
</script>
Events (iframe → host)
Every message is {source: 'orbipoker', version: 1, type, …fields}, posted only to your parentOrigin (to * only in the public demo).
| type | Fields | When | SDK |
|---|---|---|---|
orbipoker:ready | playerId, nickname, currency, locale, tenantId | The session is authenticated. playerId here is OrbiPoker's id (pl_…), not yours. | onReady |
orbipoker:resize | height | Content height changed. | automatic |
orbipoker:balance | balance, currency | The wallet balance changed, or you asked for a refresh. | onBalance |
orbipoker:deposit | — | The player pressed Deposit (shown only with depositUrl). | onDeposit |
orbipoker:exit | — | The player pressed Exit (shown only with exitUrl). | onExit |
orbipoker:session-expired | — | The launch URL was invalid, expired or already used, or the session expired or was revoked. Create a new launch. | onSessionExpired |
orbipoker:login-required | action, lobby, tableId? | A guest tried to play. Open your sign-in, then launch the player, with table to reopen that table. | onLoginRequired |
orbipoker:error | code, message | A fatal client error, for example BLOCKED (blocked or kicked), PLAYER_BLOCKED or TENANT_SUSPENDED. | onError |
orbipoker:table-opened | tableId | The player opened a table. | onEvent |
orbipoker:hand-complete | tableId, handId, net | A hand the player was dealt into finished; net is their result in minor units. | onEvent |
Messages (host → iframe)
{source: 'orbipoker-host', version: 1, type} with type = orbipoker:refresh-balance (re-read the wallet balance), orbipoker:open-club (open the club back office) or orbipoker:locale plus locale. Target the OrbiPoker origin, never *.
depositUrl / exitUrl.Seamless wallet
You implement one HTTPS endpoint. OrbiPoker calls it to read the balance, to take money when chips are bought (debit), to return money when chips come back (credit) and to undo a debit whose outcome is unknown (rollback).
Request
POST https://wallet.casino.example/orbipoker/wallet
Content-Type: application/json
User-Agent: OrbiPoker-Wallet/1
X-OrbiPoker-Signature: t=1792443000,v1=5105527f40f453f1716c2efc94ad7f9c7498186b546bf6c0924dcbde3b3dab50
{"version":1,"event":"debit","transactionId":"0d3c2f9e-8a1b-4c7e-9f1a-2b6d5e4c3a10","referenceTransactionId":null,
"tenantId":"7b1e…","playerId":"42","currency":"BRL","amount":5000,"reason":"cash_buyin",
"tableId":"t_9f…","tournamentId":null,"handId":null,"sessionToken":"your-session-reference","createdAt":1792443000123}
200 OK
{"balance": 120000}
| Field | Type | Description |
|---|---|---|
version | 1 | Payload version. |
event | balance · debit · credit · rollback | What to do. A balance request carries only version, event, transactionId, tenantId, playerId, currency, sessionToken and createdAt. |
transactionId | UUID | Idempotency key. Unique per movement and identical on every retry. |
referenceTransactionId | UUID | null | For rollback: the debit being reversed. |
tenantId | string | Your operator id. Reject anything that is not yours. |
playerId | string | Your player id from the launch. |
currency | string | The player's currency. |
amount | integer ≥ 0 | Minor units. |
reason | string | Why the money moves (see When money moves). |
tableId · tournamentId | string | null | Where the chips are. Fast-fold sends the pool id as tableId. |
handId | null | Reserved; always null. |
sessionToken | string | null | The sessionToken from the launch. Null on movements without a player session: recovery, prizes, bounties and cancellation refunds. |
createdAt | ms | When OrbiPoker recorded the movement (not when it was sent). |
Signature
X-OrbiPoker-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256(secret, t + "." + rawBody)>. Compute the HMAC over the raw bytes you received, before parsing JSON; compare in constant time; reject timestamps more than 300 seconds from your clock; answer 401 on failure. Each retry is signed again with a new t. Rotating the secret in the back office takes effect immediately (no overlap).
import {createHmac, timingSafeEqual} from 'node:crypto';
export function verifyOrbiPoker(rawBody, header, secret, toleranceSeconds = 300) {
const parts = Object.fromEntries(String(header || '').split(',').map(p => p.split('=')));
const t = Number(parts.t);
if (!Number.isInteger(t) || !/^[0-9a-f]{64}$/.test(parts.v1 || '')) return false;
if (Math.abs(Date.now() / 1000 - t) > toleranceSeconds) return false;
const expected = createHmac('sha256', secret).update(t + '.' + rawBody).digest();
return timingSafeEqual(expected, Buffer.from(parts.v1, 'hex'));
}
// Express: app.post('/orbipoker/wallet', express.raw({type: 'application/json'}), (req, res) => …)
// verifyOrbiPoker(req.body.toString('utf8'), req.get('X-OrbiPoker-Signature'), process.env.ORBIPOKER_WALLET_SECRET)
function verify_orbipoker(string $rawBody, string $header, string $secret, int $tolerance = 300): bool {
$parts = [];
foreach (explode(',', $header) as $pair) {
[$k, $v] = array_pad(explode('=', $pair, 2), 2, '');
$parts[trim($k)] = trim($v);
}
if (!isset($parts['t'], $parts['v1']) || !ctype_digit($parts['t'])) return false;
if (abs(time() - (int) $parts['t']) > $tolerance) return false;
$expected = hash_hmac('sha256', $parts['t'] . '.' . $rawBody, $secret);
return hash_equals($expected, $parts['v1']);
}
$raw = file_get_contents('php://input'); // raw body, before json_decode
if (!verify_orbipoker($raw, $_SERVER['HTTP_X_ORBIPOKER_SIGNATURE'] ?? '', getenv('ORBIPOKER_WALLET_SECRET'))) {
http_response_code(401); exit;
}
import hmac, hashlib, time
def verify_orbipoker(raw_body: bytes, header: str, secret: str, tolerance: int = 300) -> bool:
parts = dict(p.split('=', 1) for p in header.split(',') if '=' in p)
t, v1 = parts.get('t', ''), parts.get('v1', '')
if not t.isdigit() or abs(time.time() - int(t)) > tolerance:
return False
expected = hmac.new(secret.encode(), t.encode() + b'.' + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, v1)
# Flask: verify_orbipoker(request.get_data(), request.headers.get('X-OrbiPoker-Signature', ''), SECRET)
Responses
| Event | Accept | Non-2xx or timeout |
|---|---|---|
balance | 2xx with {"balance": integer ≥ 0} (required). | Not retried; the client keeps the last balance it showed. Do not store balance requests: their transactionId is random. |
debit | 2xx after you took the money. Return the new balance so the client can show it. | 4xx: declined. No chips, never retried. The player sees your JSON message, if any (use 402 for insufficient funds). A 5xx, a timeout or a network error is different: see rollback. |
credit | 2xx after you added the money (or already had). | Retried with the same body (schedule below). The chips already left the table: the money is owed to the player. |
rollback | 2xx after restoring the debit, or after storing a tombstone if you never saw it. | Retried like a credit. |
Idempotency
- Deduplicate by
transactionIdin the same database transaction as the balance change. A retry carries a byte-identical body. - Answer a duplicate with the original outcome (2xx with the current balance, or the same decline). Never apply it twice.
- Store a hash of the raw body. The same
transactionIdwith a different body is a bug or an attack: answer409and alert. - Process one player's requests serially (row lock): credits and rollbacks can arrive while a new debit is in flight.
Rollback
When a debit that was sent times out (8 s), fails at the network level or is answered with a 5xx, OrbiPoker cannot know whether you applied it. It tells the player nothing was charged and sends a rollback at once: referenceTransactionId = the debit's transactionId, same amount, reason = debit_timeout. A debit that could not be sent at all (no wallet URL, or the URL fails the address check) is recorded declined, the player gets 503 WALLET_UNAVAILABLE, and no rollback follows.
- Debit applied: restore the debited amount once, mark the debit rolled back, answer 2xx.
- Debit never seen: store a tombstone for
referenceTransactionId, answer 2xx, move no money. - Debit arrives after its tombstone: refuse it with a non-2xx status (for example 409).
- Debit already rolled back or declined: answer 2xx and change nothing.
Delivery and retries
- 8 seconds per attempt. Redirects are not followed (a redirect counts as a failure). Only the first 16,384 characters of your response are parsed.
- Every movement is stored (outbox) before it is sent, so a restart loses nothing.
- Debits are synchronous and never retried: the player waits for your answer.
- Credits and rollbacks: first attempt at once, then after 2 s, 4 s, 8 s … (2 s × 2n, at most 30 min) for 24 hours. Then the status is
failed;POST /api/v1/transactions/{id}/retryresends the same body. - The wallet URL must be HTTPS on a public address. Private, loopback and localhost addresses are refused when saved and re-checked (DNS) before every call. Sandbox operators are exempt.
| Status | Description |
|---|---|
pending | Recorded; first attempt in flight. |
ok | You answered 2xx. |
declined | Debit refused with a 4xx status, or not sent at all (no wallet URL, or an unsafe one). |
unknown | Debit sent but timed out, failed or was answered with a 5xx; a rollback was sent. |
retrying | Credit or rollback waiting for its next attempt. |
failed | Gave up after 24 h. Reconcile manually. |
When money moves
| reason | Event | When |
|---|---|---|
| Cash tables | ||
cash_buyin | debit | The player sits down (also from the wait list). |
cash_topup | debit | Manual or automatic top-up. Chips added during a hand play from the next hand. |
cash_cashout | credit | The player leaves (after the current hand if still in it), sits out too long, busts and does not top up within 2 minutes, or is kicked or blocked by you. Also returns a buy-in when the seat was taken during the debit. |
cash_table_closed | credit | The table was closed; stacks are returned after the current hand. |
cash_recovery | credit | After a server restart: the stack at the last completed hand; the interrupted hand is void. |
| Fast-fold | ||
fastfold_buyin · fastfold_topup | debit | Joining a pool, or topping up between hands. |
fastfold_cashout | credit | Leaving the pool, sitting out too long, being kicked or blocked, or the pool closing. |
| Sit & Go, Spin & Go and MTT | ||
tourney_buyin | debit | Registration or re-entry: buy-in + fee + bounty in one debit. |
tourney_rebuy, tourney_addon | debit | Rebuy or add-on during the tournament: price + fee in one debit. |
tourney_refund | credit | Unregistering, or the tournament is cancelled before it starts (including an MTT short of minPlayers). |
tourney_prize | credit | Busting in a paid place, or winning (the winner's own PKO bounty is included). |
tourney_bounty | credit | PKO: the cash part of a bounty, right after the knockout. |
tourney_recovery | credit | After a server restart during a running tournament: the remaining prize pool split by chips, plus each player's current bounty. |
| Other | ||
debit_timeout | rollback | A debit that was sent but timed out or failed at the network level. |
Decimals per currency: 2 for USD, EUR, BRL, GBP, MXN, ARS, PEN, CAD, USDT, INR, PHP and CR; 0 for CLP and COP. 5000 BRL is R$ 50,00; 5000 CLP is CLP$ 5.000.
The reference receiver implements all of the above in about 140 lines of dependency-free Node (node:http + node:sqlite).
Operator REST API
Every endpoint takes Authorization: Bearer orbp_sk_…, speaks JSON and is scoped to your operator. This table is read live from /openapi.json (OpenAPI 3.1), the source of truth for request schemas. The club key routes (/api/club-api) take orbp_club_… instead: see Clubs.
| Method | Path | Summary |
|---|---|---|
| Loading /openapi.json… | ||
Notes
GET /api/v1/players/{playerId}takes yourplayerIdand returns status, limits, lifetime stats, the last 50 hands, tournaments and wallet movements, andinPlay(chips on cash tables and active tournament entries).POST /api/v1/tables→201 {id}. Fields:name(2–40),kind(cash|fastfold),variant,currency,bb,sb(default ⌊bb/2⌋),ante,bbAnte(boolean),seats(2, 6, 8, 9; default 6; Short Deck, PLO5 and PLO6 up to 6),minBuyIn/maxBuyIn(default 40 / 100 BB, allowed 10–1,000 BB),rakeBps(0–1000),rakeCap(minor units, integer up to 100 BB) andfeatures(straddle,runItTwice,rabbitHunt,anonymous).features.anonymousneedsfeatures.anonymousTablesin the configuration (else403 FEATURE_DISABLED). Shared network tables ("network": true) are created only by OrbiPoker staff in/admin; anywhere else they get403 NETWORK_STAFF_ONLY.POST /api/v1/tournaments→201.sngandspincreate a template that always keeps one instance open ({templateId};template: falsemakes a one-off).mttis one-off ({id}) unlesstemplate: true, which repeats it everyrecurringMinutes(default 60).DELETEcancels a tournament that has not started (everyone is refunded; else409 ALREADY_STARTED) or archives a template (tt_…)."network": truegets403 NETWORK_STAFF_ONLY, as for tables.GET /api/v1/hands/{handId}?format=textreturns a PokerStars-style hand history. You see your own players' hole cards and the cards shown at showdown; in a network hand, other operators' players haveplayerId: nulland hidden cards. OrbiPoker staff see every card.GET /api/v1/tablesreturns each table's effectiverake:bps,capsByPlayers(minor units, for 2 up to the seat count),noFlopNoDropandsource(schedule,defaultortable).PATCH /api/v1/tables/{id}with{"rakeBps": 450, "rakeCap": 300}overrides the rake of an open table from its next hand;nullreturns a field to the operator's rake. Aggregators do the same for a client under/api/v1/aggregator/clients/{clientId}/configand…/tables/{id}.- Timestamps are Unix milliseconds. On hands, transactions and tournaments,
limitdefaults to 100 and is clamped to 1–500;/transactionsalso takesoffset.
Aggregator API
For partners that create and run many operators (“clients”) with one key. Each client is a normal operator with its own API key, wallet secret, wallet URL, origins and configuration. Base path: /api/v1/aggregator.
Access and policy
OrbiPoker staff create the aggregator in /admin → Aggregators and hand over its key orbp_agg_… once. Staff set the policy; the aggregator cannot change it.
| Policy | Default | Description |
|---|---|---|
maxClients | 50 | Clients it can create (0–10,000). Beyond it: 403 CLIENT_LIMIT. |
currencies | any | Currencies its clients may use. Others: 403 CURRENCY_NOT_ALLOWED. |
allowNetwork | true | Whether clients may use network liquidity. If not: 403 NETWORK_NOT_ALLOWED. |
revenueShareBps | 1500 | OrbiPoker's revenue share, copied to each new client. |
rateLimitPerMinute | 300 | Requests per minute for the aggregator (10–6,000). Beyond it: 429 RATE_LIMITED with Retry-After: 60. The 600/min per-IP limit also applies. |
| keys | 365 days | Each key has scopes and an expiry (max 730 days); at most 10 active keys. |
Suspending an aggregator only blocks its keys (403 AGGREGATOR_SUSPENDED); its clients keep running.
For incidents, staff can revoke every operator API key of the aggregator's clients in one action (Aggregators → Manage → Revoke all client API keys); this also drops its stored replays. A tighter policy applies to existing clients too: with allowNetwork: false their network liquidity turns private, and currencies outside the list are removed (a client left with none gets the first allowed one). The same policy limits what a client's own staff can set in the back office.
Authentication and scopes
Send Authorization: Bearer orbp_agg_…. Server-to-server only: a request with an Origin header gets 403 BROWSER_NOT_ALLOWED. Errors use the usual {"error","code"} envelope and every response has X-Request-Id.
| Scope | Allows |
|---|---|
clients:read | List and read clients, every GET of a client's operator API, GGR. |
clients:write | Create clients (also needs credentials:write), update them, test their wallet, and every non-GET operator call except launch. |
launch:write | POST /clients/{clientId}/launch. |
credentials:write | Create clients (with clients:write); list, issue and revoke a client's operator API keys; rotate its wallet secret; change its walletUrl. |
A missing scope gets 403 INSUFFICIENT_SCOPE.
Endpoints
| Method | Path | Scope | Description |
|---|---|---|---|
| GET | /me | any | The aggregator, its policy and this key's scopes. |
| GET | /clients | clients:read | ?limit (1–100, default 50), cursor, externalClientId, status → {clients, nextCursor}, oldest first. |
| POST | /clients | clients:write + credentials:write | Create a client. Idempotency-Key required. → 201 {client, apiKey, walletSecret}. Store the secrets now: only an idempotent replay returns them again. |
| GET | /clients/{clientId} | clients:read | {client}, including config. |
| PATCH | /clients/{clientId} | clients:write | name, status, liquidity, currencies, origins, walletUrl (also needs credentials:write), config → {client}. |
| GET | /clients/{clientId}/api-keys | credentials:write | The client's operator keys, without secrets. |
| POST | /clients/{clientId}/api-keys | credentials:write | Idempotency-Key required; body {label?} → 201 {id, label, prefix, apiKey}; the key is shown once. |
| DELETE | /clients/{clientId}/api-keys/{keyId} | credentials:write | Revoke a key → {revoked: true}. |
| POST | /clients/{clientId}/wallet-secret | credentials:write | Idempotency-Key required; body {} → {walletSecret}, shown once. The old secret stops working at once. |
| POST | /clients/{clientId}/wallet-test | clients:write | Sends a signed balance call to the client's wallet → {ok: true, balance} or {ok: false, code, message}, where code is WALLET_NOT_CONFIGURED or WALLET_UNREACHABLE and the message is generic. |
| GET | /reports/ggr?from&to | clients:read | GGR totals per client and currency; each row has clientId and clientName. Default range: the last 30 days. |
| any | /clients/{clientId}/… | GET: clients:read · POST …/launch: launch:write · other: clients:write | Any operator endpoint for that client: the operator path without /api/v1, for example POST /clients/{clientId}/launch, POST …/tables, PATCH …/config, GET …/reports/ggr. Same bodies, responses and rules (launch keeps its optional Idempotency-Key). /openapi.json lists each of these paths. |
Create a client, then launch a player
curl -X POST "$ORBIPOKER_URL/api/v1/aggregator/clients" \
-H "Authorization: Bearer $ORBIPOKER_AGG_KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: create-casino-123" \
-d '{"externalClientId":"casino-123","name":"Casino 123","currencies":["BRL"],
"origins":["https://casino123.example"],"walletUrl":"https://wallet.casino123.example/orbipoker/wallet"}'
201 Created
{"client":{"id":"9c1f…","externalClientId":"casino-123","name":"Casino 123","slug":"casino-123","status":"active",
"platformBlocked":false,"liquidity":"private","currencies":["BRL"],…,"config":{…}},
"apiKey":"orbp_sk_…","walletSecret":"whsec_…"}
curl -X POST "$ORBIPOKER_URL/api/v1/aggregator/clients/$CLIENT_ID/launch" \
-H "Authorization: Bearer $ORBIPOKER_AGG_KEY" -H "Content-Type: application/json" \
-d '{"playerId":"42","currency":"BRL","parentOrigin":"https://casino123.example"}'
| Field | Rule | Description |
|---|---|---|
externalClientId required | 1–128 · [A-Za-z0-9_.:-] | Your id for the client; unique per aggregator; starts with a letter or digit. A duplicate gets 409 CLIENT_EXISTS with clientId. |
name required | 2–60 | Client name; also the default brand name. The slug is generated from it (with a random suffix if taken). |
liquidity | private · network | Default private. |
currencies | supported codes | Default: the aggregator's allowed currencies, or ["USD"] if it may use any. |
origins | ≤ 20 origins | Allow-list for parentOrigin (HTTPS, no path). |
walletUrl | public HTTPS | The client's wallet webhook. |
config | see Configuration | Same schema as /api/v1/config. |
Idempotency
Idempotency-Key: 8–128 of[A-Za-z0-9_.:-], required on the calls that return secrets (else400 IDEMPOTENCY_KEY_REQUIRED).- The same key, body and aggregator key within 24 h replays the original response with
Idempotency-Replayed: true. - The same key with a different body or another aggregator key:
409 IDEMPOTENCY_CONFLICT. After 24 h, or once the stored response was dropped:409 IDEMPOTENCY_EXPIRED(read the resource instead). A client's stored responses are dropped when its wallet secret is rotated, one of its API keys is revoked, or OrbiPoker staff suspend it. - Failed requests are not stored, so you can fix the request and retry with the same key.
Rules
- Isolation. The id of another aggregator's client or of a direct operator answers
404 CLIENT_NOT_FOUND. - Suspending a client.
PATCH {"status":"suspended"}revokes its player sessions; its own key gets403 TENANT_SUSPENDEDand launches through you get403 CLIENT_SUSPENDED."active"re-activates it. - Suspended by OrbiPoker. A client with
platformBlocked: trueis read-only: every non-GETcall gets403 CLIENT_BLOCKED, and only OrbiPoker staff can re-activate it. - Wallet URLs must be public HTTPS: private and localhost addresses are refused when saved (
400 INVALID_WALLET_URL) and re-checked on every call. - Client credentials. The client's own
orbp_sk_key and wallet secret work exactly like a direct operator's; its wallet gets the normal signed webhook.
Configuration
Read with GET /api/v1/config; change with PATCH /api/v1/config (objects are deep-merged, arrays replaced) or in the back office (Game settings, Theme Studio). Validation is strict: unknown keys, bad colours, fonts outside the list and out-of-range numbers get 400 (INVALID_CONFIG, INVALID_THEME, LOW_CONTRAST, INVALID_TIMERS…). No raw CSS reaches the client.
curl -X PATCH "$ORBIPOKER_URL/api/v1/config" \
-H "Authorization: Bearer $ORBIPOKER_API_KEY" -H "Content-Type: application/json" \
-d '{"theme":{"preset":"classic","font":"Montserrat"},"timers":{"actionSeconds":20},
"features":{"spins":true,"hud":false},"rake":{"schedules":{"BRL":[{"bb":50,"bps":500,"caps":{"2":300,"4":400,"10":800}},
{"bb":500,"bps":450,"caps":{"2":800,"4":1000,"10":1500}}]}}}'
| Key | Default | Allowed | Description |
|---|---|---|---|
| brand | |||
brand.name | operator name | 2–40 | Name shown in the client. |
brand.lobbyTitle | "Poker" | ≤ 40 | Lobby title. |
brand.logoUrl · faviconUrl · feltLogoUrl | null | HTTPS URL or media-library file | Header logo, browser icon and felt logo (the felt falls back to the header logo). |
| theme | |||
theme.preset | "clean" | clean · midnight · classic · royal · light · vegas · ocean · neon · carbon | A preset sent without colors loads its palette. |
theme.colors.* | preset palette | #rrggbb | 17 tokens: bg surface surfaceAlt border text muted accent accentText cardBack plate plateText fold call raise success warn danger. text needs 4.5:1 contrast with bg. |
theme.font | "Geist" | Geist · Inter · Manrope · Roboto · Montserrat · Poppins · DM Sans · Rubik · Barlow · IBM Plex Sans · Titillium Web · Outfit · system-ui | Client font. |
theme.fontSize · theme.radius | 14 · 12 | 12–17 · 0–24 | Base font size and corner radius, in px. |
theme.density · deck · cardFace · tableShape | first value | comfortable|compact · four-color|two-color · classic|large-index · oval|rounded | Layout density, suit colours, card faces and table shape. |
theme.animations · theme.sounds | true | boolean | Defaults for new players; each player can change them. |
theme.table · chrome · components · scheme | — | see theme-model.js | Card back, chips, header and lobby styles, component overrides and an optional light/dark alternate palette. Easiest to edit in the Theme Studio. |
| features | |||
features.cash · fastFold · sitAndGo · spins · mtt | true | boolean | Formats your players can join (enforced by the server). |
features.chat · emotes · notes · hud | true | boolean | Chat, emotes, player notes and the built-in HUD (enforced by the server). |
features.straddle · runItTwice · rabbitHunt | true | boolean | Allowed on your tables; the table must enable it too. |
features.handHistory · replayer · provablyFair · waitlist · autoTopUp · multiTable | true | boolean | Shown or hidden in the client. |
features.allInEquity · showLeaderboards | true · true | boolean | Accepted but not used yet. |
features.anonymousTables | false | boolean | Allows tables and pools with features.anonymous. There, other players show as “Player <seat>” with a per-table id anon_…, chat included. |
| timers | |||
timers.actionSeconds | 15 | 5–60 | Time to act at cash tables. |
timers.fastFoldActionSeconds | 10 | 5–30 | Time to act in fast-fold. |
timers.tournamentActionSeconds | 12 | 5–60 | Time to act in tournaments. |
timers.timeBankSeconds | 15 | 0–300 | Starting time bank. |
timers.timeBankMaxSeconds | 60 | 0–600 | Maximum time bank. |
timers.timeBankRefillSeconds · timeBankRefillHands | 5 · 10 | 0–60 · 1–1000 | Seconds added to the time bank every N hands played. |
timers.sitOutKickMinutes | 10 | 1–120 | A player sitting out longer than this is cashed out. |
timers.handPauseMs | 2500 | 500–10000 | Pause between cash hands. |
timers.missedBlindsSitOut | 2 | 1–10 | Reserved; not used yet. |
| limits · betting | |||
limits.maxTables | 24 | 1–24 | Cash tables plus fast-fold pools a player can play at once. A per-player limit can only lower it. |
limits.maxBuyInPerDay | null | minor units | Default daily buy-in cap per player (UTC day). A per-player limit replaces it. |
limits.sessionReminderMinutes | 60 | 0–1440 | Reality-check reminder in the client (0 = off). |
betting.preflopRaises | [2.2, 2.5, 3, 4] | ≤ 6 values, 1–20 | Preflop raise buttons, in big blinds. |
betting.postflopPotPercents | [33, 50, 75, 100] | ≤ 6 integers, 10–300 | Postflop bet buttons, in % of the pot. |
betting.showPotButton | true | boolean | Show a Pot button. |
| rake · fees · promotions | |||
rake.bps | 500 | 0–1000 | Fallback cash rake in basis points (500 = 5%), for currencies without a stake schedule. A table's rakeBps overrides it. |
rake.schedules | USD, USDT: PokerStars | currency → 1–30 tiers, bps 0–1000 | Stake tables per currency: [{bb, bps, caps}] with ascending bb (big blind, minor units) and caps by players dealt in (minor units). A table uses the first tier whose bb is ≥ its big blind, or the last tier. Currencies are merged one by one; null switches a currency to the fallback. |
rake.noFlopNoDrop | true | boolean | No rake when the hand ends before the flop. |
rake.capsByPlayers | {"2":100,"4":200,"10":300} | integer keys and values | Cap per hand by players dealt in: the first key ≥ the player count applies. With capUnitBb the values are hundredths of a big blind (1, 2 and 3 BB). |
rake.capUnitBb | true | boolean | Caps in BB/100 (true) or minor units (false). A table's rakeCap is always absolute. |
tournamentFeeBps | 1000 | 0–2500 | MTT and Sit & Go fee as a share of the buy-in, when a tournament does not set fee. |
spinFeeBps | 700 | 700 | 800 | Spin multiplier table: 700 = GGPoker (93% RTP), 800 = PokerStars (92% RTP). |
promotions.cashDrop | {"enabled":false,"oneInHands":150,"minBb":5,"maxBb":30} | oneInHands 10–100000 · 1 ≤ minBb ≤ maxBb ≤ 500 | Cash Drops: on average one hand in oneInHands gets minBb–maxBb big blinds of your money added to the pot. Your private cash and fast-fold tables only; never raked; reported as promoCost. |
| clubs | |||
clubs.enabled | true | boolean | The whole club product. See Clubs. |
clubs.features.* | true | boolean | One part: leagues, shop, duel, leaderboards, rewards, complaints, backoffice, jackpot. |
clubs.require2FA · allowSignup | true | boolean | TOTP for club staff, and sign-up at /app. |
clubs.* | see GET /api/v1/config | strict schema | Club limits, levels, diamond rate, rakeback caps, league fees, overlay tiers, shop items and leaderboards. A bad value gets 400 INVALID_CLUBS. |
| locales · chat | |||
locales | ["pt-BR","en","es"] | non-empty subset | Languages offered in the client. |
defaultLocale | "pt-BR" | one of locales | Language for new players launched without locale. |
chat.maxLength · chat.rateSeconds | 120 · 2 | 10–500 · 0–60 | Longer messages are cut; one message per N seconds. |
chat.bannedWords | [] | ≤ 500 words, 1–40 chars | Replaced with *** (case-insensitive). |
Games and rules
Variants
| Code | Game | Notes |
|---|---|---|
NLHE | No-Limit Hold'em | 2 hole cards. |
PLHE | Pot-Limit Hold'em | Pot-limit betting. |
PLO4 · PLO5 · PLO6 | Pot-Limit Omaha | 4, 5 or 6 hole cards; exactly two from the hand and three from the board. PLO5/PLO6 up to 6 seats. |
PLO8 | Omaha Hi/Lo | Eight-or-better low; pots split high/low, odd chip to the high. |
SHORT | Short Deck (6+) | 36 cards; flush beats full house, trips beat straight, A-6-7-8-9 is the lowest straight. Up to 6 seats. |
Rake
Cash and fast-fold hands pay a percentage of the pot, floored to the minor unit and capped per hand. The percentage and cap come from the currency's stake schedule (rake.schedules): USD and USDT ship the published PokerStars table, from 3.3% capped at $0.30 at $0.01/$0.02 to 4.5% capped at $3/$5/$5 (2 / 3–4 / 5+ players) at $100/$200. Currencies without a schedule pay rake.bps capped at 1 BB heads-up, 2 BB with 3–4 players and 3 BB with 5 or more (the club-app standard). A table's rakeBps / rakeCap override both. With no flop, no drop. Changes apply from the next hand. Tournaments pay no rake: the fee is charged at registration. Rake is attributed to each player in proportion to what they put in the pot (contributed method); that is what per-player and per-operator reports use.
Table rules
- Time bank. When the action clock runs out, the time bank starts automatically. When both run out, the player checks if possible, otherwise folds and is sat out. The bank grows by
timeBankRefillSecondseverytimeBankRefillHandshands, up totimeBankMaxSeconds. - Run it twice. Cash tables only. When the remaining players are all-in before the river and all of them have the option on (default on), two boards are dealt and each pot is split between them.
- Straddle. If the table allows it, the first player to act preflop can opt in to a 2 BB straddle (cash, 3+ players). Action starts left of the straddle.
- Antes. A cash table may have a classic ante (everyone) or a big-blind ante (1 BB from the big blind). Blinds come first when a stack cannot cover both.
- Wait for big blind. A player joining a running cash table is dealt in when the big blind reaches them.
- Rathole protection. Returning to the same table within 30 minutes requires at least the stack you left with (capped at 3 × the max buy-in).
- Sit-out and bust. Sitting out longer than
sitOutKickMinutescashes the player out. A busted player has 2 minutes to top up. - Same network. Two players with the same IP address cannot sit at the same cash table (
SAME_NETWORK); the attempt raises an integrity alert. Sandbox operators are exempt. - Rabbit hunt and equity. After a pot won without showdown, the undealt board is shown. All-in equity is shown when players are all-in before the river.
- Fast-fold. Players join a pool and get a new table every hand; fold works before your turn. The big blind goes to whoever has gone longest without posting it, and seats are shuffled. Names are hidden only if the pool has
features.anonymous(needsfeatures.anonymousTables).
Tournaments
| Sit & Go | Spin & Go | MTT | |
|---|---|---|---|
| Seats | 2–9 (6) | 3 | 2–9 (8) per table |
| Start stack / BB | 1,500 / 20 | 500 / 20 | 10,000 / 100 |
| Speed (level) | turbo (5 min) | 3 min | regular (10 min) |
| BB ante from level | 4 | never | 3 |
| Fee | tournamentFeeBps | in the multiplier table | tournamentFeeBps |
| Starts | when full | when full | startAt (default: in 15 min) |
- Speeds: slow 15 min, regular 10, turbo 5, hyper 3 per level (
levelSeconds60–3,600 overrides it, except in Spins). Blinds climb a fixed ladder: 1, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10… × the starting big blind. - MTT registration: late registration for
lateRegLevelslevels (default 8), closing early when 15% or fewer of the entries remain. Re-entry up tomaxEntries(1–10, default 1) during late registration. Fewer thanminPlayers(default 2) atstartAt: cancelled and refunded. Tables are balanced and broken between hands. - Payouts: Sit & Go pays 100% up to 3 seats, 65/35 up to 6 and 50/30/20 above. MTTs pay about 15% of entries on a decreasing curve with a min-cash of at least 1.5 buy-ins, fixed when late registration closes. Busting during late registration finishes out of the money. A guarantee above the pool is paid.
- PKO (MTT): each entry carries a bounty. A knockout wins it: half in cash at once (
tourney_bounty), half added to your own bounty (progressiveBounty: falsepays it all in cash). The winner also collects their own bounty. - Crash policy: stacks are saved after every hand. If the server restarts during a tournament, the remaining prize pool (or guarantee) is split by chip count, each player gets their current bounty, and the tournament is closed. Cash tables return the stack from the last completed hand.
Spin & Go multipliers
The multiplier is drawn when the Spin fills; the prize pool is multiplier × buy-in. The expected multiplier is 3 × (1 − fee): RTP 92.9% on the 7% table and 91.9% on the 8% table. Three players, winner takes all, blinds up every 3 minutes.
| Multiplier | Per 1,000,000 (7%) | Per 1,000,000 (8%) | Winner |
|---|---|---|---|
| 10,000× | 1 | 1 | 100% |
| 240× | 30 | 30 | 100% |
| 120× | 75 | 75 | 100% |
| 25× | 1,000 | 1,000 | 100% |
| 10× | 5,000 | 5,000 | 100% |
| 5× | 85,000 | 85,000 | 100% |
| 3× | 444,000 | 414,012 | 100% |
| 2× | 464,894 | 494,882 | 100% |
Provably fair shuffle
- Before each hand the server draws a 32-byte
serverSeedfrom the OS CSPRNG and publishescommitment = SHA-256(serverSeed bytes)in the table view. - The deck (52 cards, or 36 for Short Deck, ordered
2c 2d 2h 2s 3c … As) is shuffled with Fisher-Yates from the last position down. Random numbers are the big-endian 32-bit words ofHMAC-SHA256(key = serverSeed, message = handId + ":" + counter)for counter = 0, 1, 2…; a word ≥ ⌊2³²/range⌋ × range is skipped, so every permutation is equally likely. - Cards are dealt from the top with no burn cards: hole cards one at a time to each player starting with the button seat, then flop, turn and river (and a second board when running it twice).
- 24 hours after the hand ends,
serverSeedis published in the hand history and the API, so anyone can rebuild the deck. Until then it stays private: the deck also holds the hands that were folded.
// Runs in any modern browser or Node ≥ 20 (WebCrypto).
async function verifyHand({serverSeed, commitment, handId, deck, shortDeck = false}) {
const hex = buf => [...new Uint8Array(buf)].map(b => b.toString(16).padStart(2, '0')).join('');
const seed = Uint8Array.from(serverSeed.match(/../g), h => parseInt(h, 16));
if (hex(await crypto.subtle.digest('SHA-256', seed)) !== commitment) return false;
const key = await crypto.subtle.importKey('raw', seed, {name: 'HMAC', hash: 'SHA-256'}, false, ['sign']);
let counter = 0, words = [];
async function next() {
if (!words.length) {
const block = new DataView(await crypto.subtle.sign('HMAC', key, new TextEncoder().encode(handId + ':' + counter++)));
for (let i = 0; i < 32; i += 4) words.push(block.getUint32(i));
}
return words.shift();
}
const cards = [];
for (let c = 0; c < 52; c++) if (!shortDeck || (c >> 2) >= 4) cards.push(c); // rank = c >> 2, suit = c & 3
for (let i = cards.length - 1; i > 0; i--) {
const range = i + 1, limit = Math.floor(2 ** 32 / range) * range;
let value; do value = await next(); while (value >= limit);
const j = value % range; [cards[i], cards[j]] = [cards[j], cards[i]];
}
const name = c => '23456789TJQKA'[c >> 2] + 'cdhs'[c & 3];
return cards.map(name).join(' ') === deck.join(' '); // deck from the "verify" message
}
Players get commitment, serverSeed and the full deck from the client's hand history (“Verify”). Operators get commitment and, after the same 24 hours, serverSeed from GET /api/v1/hands/{handId}.
Responsible gaming
You own the player relationship, so you drive these controls from your own tools. Every call is audited.
| Call | Description |
|---|---|
POST /api/v1/players/{id}/block{"reason":"self-exclusion","until":1800000000000} | Blocks the player until until (ms), or indefinitely with null. Sessions are revoked, launches fail with PLAYER_BLOCKED, and the player leaves cash tables and pools (after the current hand) with the chips credited back. Tournament entries are not refunded. |
POST /api/v1/players/{id}/unblock | Lifts the block. |
POST /api/v1/players/{id}/limits{"maxBuyInPerDay":20000,"maxTables":2,"sessionMinutes":120} | Integers ≥ 0 or null; the body replaces all previous limits. maxBuyInPerDay counts accepted debits since 00:00 UTC (DAILY_LIMIT). maxTables can only lower your limit (TABLE_LIMIT). sessionMinutes refuses new buy-ins, top-ups and registrations once the player's session is that old (SESSION_LIMIT). |
POST /api/v1/players/{id}/kick | Removes the player from every cash table and pool now (after the current hand if they are in it) and closes their connections. |
Reports and settlement
The back office shows the same data and exports CSV. Amounts are minor units of each row's currency.
| GGR field | Description |
|---|---|
rake | Cash and fast-fold rake attributed to your players (contributed method). |
fees | MTT and Sit & Go fees paid by your players. |
spinMargin | Spin buy-ins minus Spin prizes paid to your players. |
promoCost | Cash Drops paid on your tables. |
ggr | rake + fees + spinMargin − promoCost. |
platformShare | OrbiPoker's revenue share of ggr. |
networkSettlement | Your players' net cash loss minus their rake. In network liquidity, a positive value is money your players lost to other operators' players (you owe it to the network); a negative value is owed to you. |
tournamentNet · hands · players · entries | Tournament money in minus money out, and volume counters. |
GET /api/v1/reports/ggr?from&to&groupBy=day|total— one row per day (UTC) or for the whole range, and per currency. Default range: the last 30 days.GET /api/v1/reports/players?from&to— per player:hands,rake,cashNet,tournamentFees,tournamentEntries, for rakeback and loyalty. Default range: the last 7 days.GET /api/v1/transactions?status=&playerId=— every wallet movement with its delivery status, attempts, last error and the balance you returned. Reconcile it with your ledger bytransactionId.GET /api/v1/handsand/hands/{id}— hand search and full hands for support. Integrity alerts (same network, chip dumping, bot-like timing) are in the back office.
Clubs
Every operator also gets a club product: clubs, leagues, agents, weekly settlement, a shop, leaderboards, the Rodeo mini-game, complaints and penalties. It is on by default, in the iframe and at /app. You do not call anything to turn it on; flags only turn parts off.
CHIP, 2 decimals) from a closed-loop ledger inside OrbiPoker, so your wallet gets no calls for them and they stay out of your GGR. Pix, crypto and bank payments happen off-platform. Only their effect is recorded: chips sent, a settlement marked paid.What is on by default
| Part | Description |
|---|---|
clubs | Players create or join clubs, get chips from staff and agents, and play club tables and tournaments. This is the whole product: with it off, the other parts are off too. |
leagues | Clubs share tables and tournaments and settle with the league every week. |
backoffice | The web back office for owners, managers, agents and league owners, opened from the game client. |
shop | Items paid with diamonds: time bank, rabbit hunt credits, emoji packs and a VIP card. |
duel | A betting mini-game with 15-second rounds and a seed commitment on every round. Each club owner can turn it off. |
leaderboards | Weekly Sit & Go leaderboards for verified accounts. |
rewards | Reward points earned from rake and redeemed for chips. Each club owner can turn them off. |
complaints | Players file complaints about another player or a hand. |
jackpot | Club and league jackpot pools. |
Diamonds are the platform credit of the club product. They pay for club levels, chips for a club's treasury and shop items.
Turning parts off
A disabled part answers 403 FEATURE_DISABLED on the server, so you do not need to hide it yourself.
| Scope | How |
|---|---|
| All your clubs | PATCH /api/v1/config {"clubs":{"enabled":false}} |
| One part | PATCH /api/v1/config {"clubs":{"features":{"duel":false}}} |
| One launch | POST /api/v1/launch {"disable":["shop","duel"]} · {"disable":["clubs"]} |
| One club | The owner turns off the Rodeo and reward points in the club settings. |
Launching in the back office
- No extra step. A launched player is a full club user with no password. The Clubs area and the back office button are already in the game client.
- Inside the iframe. The back office
/clubopens as an overlay, so the table in play stays alive. It may be framed by OrbiPoker and by your allow-listed origins. - Optional shortcuts for your own “my club” button:
"view": "club"in the launch opens straight in the back office, andpoker.openClub()opens it from your page. - Your own iframe tag needs
allow="…; geolocation"for tables with GPS restriction; without it they answerGPS_REQUIRED. The SDK sets it for you. - Staff security. Staff actions need a TOTP code while
clubs.require2FAis on, the default. Owners, managers and agents enrol in the back office.
# optional: open straight in the back office, without the shop
curl -X POST "$ORBIPOKER_URL/api/v1/launch" \
-H "Authorization: Bearer $ORBIPOKER_API_KEY" -H "Content-Type: application/json" \
-d '{"playerId":"42","currency":"BRL","parentOrigin":"https://casino.example",
"view":"club","disable":["shop"]}'
Operator endpoints
Clubs use the endpoints you already call, with your orbp_sk_… key.
| Method | Path | Description |
|---|---|---|
| GET · PATCH | /api/v1/config | The clubs block: flags, sign-up, 2FA, levels, rakeback caps, fees, shop and leaderboards. See Configuration. |
| POST | /api/v1/launch | The view and disable fields. See Launch API. |
| POST | /api/v1/players/{playerId}/block | Also applies to clubs: the player's club requests answer 403 PLAYER_BLOCKED. |
| GET | /api/v1/reports/ggr | Leaves CHIP out. Club chips earn you no GGR. |
Club key API for chip stores
A chip store sells chips to the members of one club. It runs on a server and uses a club key, not your operator key: Authorization: Bearer orbp_club_…. The club owner creates the key in the back office. It is shown once, stored only as a hash and works for that club alone. The payment happens in the store; this API only moves the chips.
| Method | Path | Description |
|---|---|---|
| GET | /api/club-api/v1/members/{publicId} | An active member: {publicId, nickname, balance, frozen}. |
| POST | /api/club-api/v1/chips | Moves chips between the club treasury and a member: {txId, balance}. |
curl -X POST "$ORBIPOKER_URL/api/club-api/v1/chips" \
-H "Authorization: Bearer $ORBIPOKER_CLUB_KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: store-order-1042" \
-d '{"playerPublicId":1234567,"amount":5000,"direction":"send","memo":"order 1042"}'
200 OK
{ "txId": "7c9e…", "balance": 5000 }
| Field | Rule | Description |
|---|---|---|
playerPublicId required | integer | The player ID shown in the club. |
amount required | positive integer | Minor units of CHIP: 5000 is 50.00 chips. |
direction | send · receive | send (default) moves chips from the treasury to the member, receive from the member to the treasury. |
memo | ≤ 120 | Stored on the ledger entry. |
- Idempotency-Key is required, one per order: 8–100 of
[A-Za-z0-9_-]. A key already used in this club returns the originaltxIdwithreplayed: trueand moves nothing. The body is not compared. - Server only. Keep the key in your secret manager, never in a browser or an app. Revoke it in the back office.
| Status | Code | Meaning |
|---|---|---|
| 400 | IDEMPOTENCY_KEY_REQUIRED · INVALID_IDEMPOTENCY_KEY · INVALID_AMOUNT | Missing key, bad key format, or an amount that is not a positive integer. |
| 401 | UNAUTHORIZED | Missing, unknown or revoked club key. |
| 402 | INSUFFICIENT_CHIPS | The treasury or the member cannot cover the amount. |
| 403 | FUNDS_FROZEN · CLUB_SUSPENDED | The member's chips are frozen, or the club is suspended. |
| 404 | MEMBER_NOT_FOUND | No active member with this ID in this club. |
Sandbox
- /demo opens the game as an anonymous player of the built-in demo operator (network liquidity, USD and BRL).
- /sandbox plays the operator: it creates launches for a player id you choose, embeds them with the SDK and shows the events.
- The demo operator's wallet is a built-in receiver that speaks the contract above over real HTTP, with signatures, idempotency, rollbacks and tombstones. Every demo player starts with 1,000,000 minor units (10,000.00).
- Practice bots named “Bot…” keep the demo operator's tables busy. They never play on other operators' tables.
- Your own sandbox operator (ask OrbiPoker) may use an HTTP or private wallet URL and any embedding origin, so you can point it at a local tunnel running the reference receiver.
Go-live checklist
- API key in your secret manager, used only server-side; a second key ready for rotation.
- A new launch per poker open, never cached;
parentOriginset;sessionTokenpassed if you tie movements to sessions. - All production origins (including
wwwand app web views) in the allow-list. - Wallet URL on HTTPS with a public certificate; answers well under 8 s at peak.
- Signature verified over the raw body with a 300 s tolerance; bad signatures get 401.
- Idempotency by
transactionIdinside the balance transaction; duplicates return the original outcome; body-hash conflicts return 409. - Rollbacks restore the debit once; unknown references create a tombstone; a debit after its tombstone is refused.
- No code path returns non-2xx after a debit was applied.
- Alerts on
retrying,failedandunknowntransactions; daily reconciliation of/api/v1/transactionswith your ledger. - Responsible-gaming tools wired to block, limits and kick; self-exclusion tested end to end.
- Theme, logo, locales and formats checked on a phone; Deposit and Exit wired through the SDK.
- Liquidity (network or private), currencies and revenue share agreed with OrbiPoker; RNG certification status checked for your jurisdictions.
AI agents
Using an AI coding agent for the integration? Point it at these plain-text sources (no JavaScript or login needed).
- /llms.txt — index of machine-readable sources.
- /integration-agent.md — step-by-step integration guide with acceptance tests.
- /openapi.json — OpenAPI 3.1 for the operator API, the aggregator API, the club key API and the wallet webhook.
- /wallet-receiver.mjs — reference wallet receiver.
Changelog
- 1.7.2 · 2026-10-31
- Clubs and leagues can reserve a cash table for verified accounts.
- 1.7.1 · 2026-10-31
- A newcomer can pay one big blind to play the next hand instead of waiting for it. The gold lobby gains a recurring MTT with rebuys and an add-on. Club tables default to a rake cap of 4 BB, verified accounts show a tick beside the nickname, and the first nickname change is free.
- 1.7.0 · 2026-10-31
- Lobby games on gold: tables of NLH, 6+, PLO and OFC and Sit & Go outside any club, listed on the home by game, with no rake and no fee. Gold packs now follow the official store, 6,000, 30,000 and 298,000 coins for 60, 300 and 2,980 diamonds. Rodeo pays the multipliers read out in the official lives and counts the rounds since a line last hit. Mixed tables are Dealer's Choice: the button picks the game. A swap shows its street on the seat.
- 1.6.0 · 2026-10-31
- Gold coins, bought with diamonds, and Rodeo on gold with its line limits, player counts and history. Series tournaments limit time banks to 10. Password recovery by e-mail, off until a mail provider is set. Staff get a Members tab in the app. Fast-fold pools with a duration now end on time. The console creates add-ons and freezeouts and edits Early Bird, gold and recovery.
- 1.5.0 · 2026-10-31
- Manual parity, from Suprema's official home-game manual. Series with rankings and owner-paid prizes. Tournaments: fixed-time TLT, Early Bird, pin to top, double rebuy, 10, 15 and 20 percent payout structures with Plus and Flat, tickets, and Spin as winner takes all up to 10,000x. Tables: password, buy-in approval, Double Board, Bomb defaults, special tables, minimum stay and an end warning. Clubs: series with rankings, a 5 percent send fee in
clubs.sendFeeBps, diamond packs and costs, items sent by the club, stop loss, pop-ups, posts, a welcome message, invite links, a logo and a data tab. Duel is now Rodeo with eleven lines:duel.bettakescowboy,touro,drawand the hand lines instead ofblue,redand the combos. - 1.4.0 · 2026-10-31
- Club parity: every game mode can be created in the panel and console, tournament setup is complete, and leagues create their own games. Running tournaments now survive a restart of under 60 minutes. New
limits.maxClubTables, default 4, andclubs.leagueOnlyCreatesandclubs.reportsMinLevelto turn the new club rules off. Same-IP refusal is on by default for new club tables. The Cooler Jackpot follows the official rules. A phone on its side now keeps the bet controls beside the table. - 1.3.1 · 2026-10-31
- Money review. Club credit lines need house chips behind them; a club pays a league overlay only up to its
overlayCap; a league fee raise starts the next week;CHIPcannot be an operator currency; a guaranteed MTT with nominPlayersneeds entries covering a quarter of the guarantee; a Cash Drop stays hidden until the hand ends and needs a raked pot of 10 BB; the jackpot minimum is judged when the turn is dealt. - 1.3.0 · 2026-10-31
- New default design: preset
clean, font Geist. Operators on the old default theme migrate automatically. Player chat is removed from the bundled client; thechatWebSocket message stays on the server. - 1.2.1 · 2026-10-31
- Security release.
serverSeedis published 24 hours after the hand and no longer travels in the table result; a hand that ends without a flop pays no Cash Drop; Open Face follows table stakes both ways; console logins needX-Requested-With; clients must senddeviceat club tables; only OrbiPoker staff enable network liquidity, and new aggregators start without it. - 1.2.0 · 2026-10-31
- Clubs and leagues, on by default inside the iframe: home on the player's clubs, back office in an overlay, closed-loop chips, weekly settlement, Rodeo, shop, leaderboards. Turn parts off with
config.clubsor the launch fielddisable. Also: rebuys, add-ons, satellites, mystery bounty, hand-for-hand, ICM deals, Open Face Chinese, bomb, capped, swap, cucurucho and mixed tables. New wallet reasonstourney_rebuyandtourney_addon: a wallet that validatesreasonmust accept them. - 1.1.0 · 2026-10-24
- Aggregator API (
/api/v1/aggregator): oneorbp_agg_key creates and runs many operators. Also: shared network tables and tournaments are created only by OrbiPoker staff (403 NETWORK_STAFF_ONLY); a launchIdempotency-Keycannot be reused once its launch was opened or expired (409 IDEMPOTENCY_KEY_USED); in network hands you see only your own players' hole cards;features.anonymousneedsfeatures.anonymousTables. - 1.0.0 · 2026-10-19
- First public version: launch API, iframe client and SDK v1, seamless wallet v1 (balance, debit, credit, rollback), operator REST API, cash tables, fast-fold, Sit & Go, Spin & Go, MTT with PKO, back office, provably fair shuffle. Added during the release: Cash Drops (
promotions.cashDrop,promoCost),GET /api/v1/reports/players,inPlayon player profiles and thesessionMinuteslimit.
Wallet payloads carry version. New optional fields may be added at any time; ignore fields you do not know. Breaking changes get a new version and advance notice.