orbipoker Docs

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.

B2B only. OrbiPoker sells to operators, not to players: even an app account at /app belongs to an operator (see Clubs). These docs are for operators and for partners that run many operators (see Aggregator API).

Architecture

OrbiPoker architecture The operator backend creates a launch through the OrbiPoker API and embeds the returned URL in an iframe on the operator page. The iframe talks to OrbiPoker over WebSocket. OrbiPoker calls the operator wallet webhook to debit and credit the player balance, and posts events to the host page. YOUR PLATFORM ORBIPOKER Your backend player session · orbp_sk_ key Your wallet webhook balance · debit · credit · rollback Your page + iframe SDK · postMessage events Operator API /api/v1/* · /openapi.json Game engine + wallet outbox tables · tournaments · retries Game client /launch/… · WebSocket /ws 1 · POST /api/v1/launch launchUrl · 120 s 3 · signed wallet calls 2 · iframe src=launchUrl orbipoker:* events
  • 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.

  1. 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.
  2. 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.
  3. Configure the back office. In /backoffice → Integration, set the wallet URL, add the origins that embed the iframe and press “Test connection”.
  4. Create a launch and embed it. Call POST /api/v1/launch from your server and mount the returned launchUrl with the SDK.
  5. Play a hand. Sit down: your wallet gets a debit. Leave: it gets a credit.
# 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.

StatusCodeMeaning
401UNAUTHORIZEDMissing, unknown or revoked key.
403TENANT_SUSPENDEDYour operator account is suspended. Player sessions are revoked too.
404NOT_FOUNDUnknown endpoint or resource.
413BODY_TOO_LARGERequest body over 64 KB.
429RATE_LIMITEDMore 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 }
FieldRuleDescription
playerId required1–128 · [A-Za-z0-9_.@:+-]Your stable player id. It comes back as playerId in every wallet call.
currency requiredenabled for your accountThe player's wallet currency (saved on every launch). The player only sees tables and tournaments in it.
nickname3–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.
localept-BR · en · esClient language. Default: the player's last locale, then your defaultLocale.
countryISO 3166-1 alpha-2Flag shown next to the player.
parentOriginin your allow-listOrigin of the page that embeds the iframe. The client posts events only to this origin; without it, it posts none.
sessionTokenstring ≤ 512Opaque value echoed in the wallet calls of this session.
lobbycash · fastfold · sng · spin · mttLobby tab to open.
tabletable id ≤ 64Cash table to open.
themesame schema as config.themeTheme for this session only.
viewclubOptional shortcut: opens straight in the club back office. Clubs and the back office are available without it.
disablelist of parts, see ClubsTurns these club parts off for this launch. Everything is on by default.
guestbooleanOpens 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 · exitUrlhttp(s) URLShow 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 and playerId return the same launch until it is opened or expires; after that the key gets 409 IDEMPOTENCY_KEY_USED, so send a new key per open. The same key with another playerId gets 409 IDEMPOTENCY_CONFLICT.
  • Origins. parentOrigin must exactly match an allow-listed origin (HTTPS, no path; HTTP only for localhost). The iframe page is served with Content-Security-Policy: frame-ancestors 'self' <your allow-listed origins>. Sandbox operators accept any origin.
  • Strict body. Unknown fields get 400 INVALID_BODY.
StatusCodeMeaning
400INVALID_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_KEYA field failed validation. INVALID_CURRENCY: the currency is not enabled for you.
403ORIGIN_NOT_ALLOWEDparentOrigin is not in your allow-list.
403PLAYER_BLOCKEDThe player is blocked or self-excluded, until the block ends.
409IDEMPOTENCY_CONFLICT · IDEMPOTENCY_KEY_USEDKey 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()}. onEvent receives every message.
  • The height follows orbipoker:resize (320–20,000 px) unless you pass height (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).

typeFieldsWhenSDK
orbipoker:readyplayerId, nickname, currency, locale, tenantIdThe session is authenticated. playerId here is OrbiPoker's id (pl_…), not yours.onReady
orbipoker:resizeheightContent height changed.automatic
orbipoker:balancebalance, currencyThe 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-requiredaction, lobby, tableId?A guest tried to play. Open your sign-in, then launch the player, with table to reopen that table.onLoginRequired
orbipoker:errorcode, messageA fatal client error, for example BLOCKED (blocked or kicked), PLAYER_BLOCKED or TENANT_SUSPENDED.onError
orbipoker:table-openedtableIdThe player opened a table.onEvent
orbipoker:hand-completetableId, handId, netA 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 *.

Mobile apps. Either host a page on an allow-listed origin that mounts the SDK in a web view, or open the launch URL directly: then no events are posted, and Deposit / Exit open your 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}
FieldTypeDescription
version1Payload version.
eventbalance · debit · credit · rollbackWhat to do. A balance request carries only version, event, transactionId, tenantId, playerId, currency, sessionToken and createdAt.
transactionIdUUIDIdempotency key. Unique per movement and identical on every retry.
referenceTransactionIdUUID | nullFor rollback: the debit being reversed.
tenantIdstringYour operator id. Reject anything that is not yours.
playerIdstringYour player id from the launch.
currencystringThe player's currency.
amountinteger ≥ 0Minor units.
reasonstringWhy the money moves (see When money moves).
tableId · tournamentIdstring | nullWhere the chips are. Fast-fold sends the pool id as tableId.
handIdnullReserved; always null.
sessionTokenstring | nullThe sessionToken from the launch. Null on movements without a player session: recovery, prizes, bounties and cancellation refunds.
createdAtmsWhen 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)

Responses

EventAcceptNon-2xx or timeout
balance2xx with {"balance": integer ≥ 0} (required).Not retried; the client keeps the last balance it showed. Do not store balance requests: their transactionId is random.
debit2xx 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.
credit2xx 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.
rollback2xx after restoring the debit, or after storing a tombstone if you never saw it.Retried like a credit.
Never answer non-2xx after moving money. A 4xx debit means “not charged” to OrbiPoker: no chips are created and no rollback is sent. A 5xx is treated like a timeout and rolled back. If your handler fails after changing the balance, commit and answer 2xx, or undo your change before answering.

Idempotency

  • Deduplicate by transactionId in 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 transactionId with a different body is a bug or an attack: answer 409 and 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.

  1. Debit applied: restore the debited amount once, mark the debit rolled back, answer 2xx.
  2. Debit never seen: store a tombstone for referenceTransactionId, answer 2xx, move no money.
  3. Debit arrives after its tombstone: refuse it with a non-2xx status (for example 409).
  4. 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}/retry resends 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.
StatusDescription
pendingRecorded; first attempt in flight.
okYou answered 2xx.
declinedDebit refused with a 4xx status, or not sent at all (no wallet URL, or an unsafe one).
unknownDebit sent but timed out, failed or was answered with a 5xx; a rollback was sent.
retryingCredit or rollback waiting for its next attempt.
failedGave up after 24 h. Reconcile manually.

When money moves

reasonEventWhen
Cash tables
cash_buyindebitThe player sits down (also from the wait list).
cash_topupdebitManual or automatic top-up. Chips added during a hand play from the next hand.
cash_cashoutcreditThe 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_closedcreditThe table was closed; stacks are returned after the current hand.
cash_recoverycreditAfter a server restart: the stack at the last completed hand; the interrupted hand is void.
Fast-fold
fastfold_buyin · fastfold_topupdebitJoining a pool, or topping up between hands.
fastfold_cashoutcreditLeaving the pool, sitting out too long, being kicked or blocked, or the pool closing.
Sit & Go, Spin & Go and MTT
tourney_buyindebitRegistration or re-entry: buy-in + fee + bounty in one debit.
tourney_rebuy, tourney_addondebitRebuy or add-on during the tournament: price + fee in one debit.
tourney_refundcreditUnregistering, or the tournament is cancelled before it starts (including an MTT short of minPlayers).
tourney_prizecreditBusting in a paid place, or winning (the winner's own PKO bounty is included).
tourney_bountycreditPKO: the cash part of a bounty, right after the knockout.
tourney_recoverycreditAfter a server restart during a running tournament: the remaining prize pool split by chips, plus each player's current bounty.
Other
debit_timeoutrollbackA 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.

MethodPathSummary
Loading /openapi.json…

Notes

  • GET /api/v1/players/{playerId} takes your playerId and returns status, limits, lifetime stats, the last 50 hands, tournaments and wallet movements, and inPlay (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) and features (straddle, runItTwice, rabbitHunt, anonymous). features.anonymous needs features.anonymousTables in the configuration (else 403 FEATURE_DISABLED). Shared network tables ("network": true) are created only by OrbiPoker staff in /admin; anywhere else they get 403 NETWORK_STAFF_ONLY.
  • POST /api/v1/tournaments → 201. sng and spin create a template that always keeps one instance open ({templateId}; template: false makes a one-off). mtt is one-off ({id}) unless template: true, which repeats it every recurringMinutes (default 60). DELETE cancels a tournament that has not started (everyone is refunded; else 409 ALREADY_STARTED) or archives a template (tt_…). "network": true gets 403 NETWORK_STAFF_ONLY, as for tables.
  • GET /api/v1/hands/{handId}?format=text returns 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 have playerId: null and hidden cards. OrbiPoker staff see every card.
  • GET /api/v1/tables returns each table's effective rake: bps, capsByPlayers (minor units, for 2 up to the seat count), noFlopNoDrop and source (schedule, default or table). PATCH /api/v1/tables/{id} with {"rakeBps": 450, "rakeCap": 300} overrides the rake of an open table from its next hand; null returns a field to the operator's rake. Aggregators do the same for a client under /api/v1/aggregator/clients/{clientId}/config and …/tables/{id}.
  • Timestamps are Unix milliseconds. On hands, transactions and tournaments, limit defaults to 100 and is clamped to 1–500; /transactions also takes offset.

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.

PolicyDefaultDescription
maxClients50Clients it can create (0–10,000). Beyond it: 403 CLIENT_LIMIT.
currenciesanyCurrencies its clients may use. Others: 403 CURRENCY_NOT_ALLOWED.
allowNetworktrueWhether clients may use network liquidity. If not: 403 NETWORK_NOT_ALLOWED.
revenueShareBps1500OrbiPoker's revenue share, copied to each new client.
rateLimitPerMinute300Requests 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.
keys365 daysEach 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.

ScopeAllows
clients:readList and read clients, every GET of a client's operator API, GGR.
clients:writeCreate clients (also needs credentials:write), update them, test their wallet, and every non-GET operator call except launch.
launch:writePOST /clients/{clientId}/launch.
credentials:writeCreate 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

MethodPathScopeDescription
GET/meanyThe aggregator, its policy and this key's scopes.
GET/clientsclients:read?limit (1–100, default 50), cursor, externalClientId, status → {clients, nextCursor}, oldest first.
POST/clientsclients:write + credentials:writeCreate 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:writename, status, liquidity, currencies, origins, walletUrl (also needs credentials:write), config → {client}.
GET/clients/{clientId}/api-keyscredentials:writeThe client's operator keys, without secrets.
POST/clients/{clientId}/api-keyscredentials:writeIdempotency-Key required; body {label?} → 201 {id, label, prefix, apiKey}; the key is shown once.
DELETE/clients/{clientId}/api-keys/{keyId}credentials:writeRevoke a key → {revoked: true}.
POST/clients/{clientId}/wallet-secretcredentials:writeIdempotency-Key required; body {} → {walletSecret}, shown once. The old secret stops working at once.
POST/clients/{clientId}/wallet-testclients:writeSends 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&toclients:readGGR 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:writeAny 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"}'
FieldRuleDescription
externalClientId required1–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 required2–60Client name; also the default brand name. The slug is generated from it (with a random suffix if taken).
liquidityprivate · networkDefault private.
currenciessupported codesDefault: the aggregator's allowed currencies, or ["USD"] if it may use any.
origins≤ 20 originsAllow-list for parentOrigin (HTTPS, no path).
walletUrlpublic HTTPSThe client's wallet webhook.
configsee ConfigurationSame schema as /api/v1/config.

Idempotency

  • Idempotency-Key: 8–128 of [A-Za-z0-9_.:-], required on the calls that return secrets (else 400 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 gets 403 TENANT_SUSPENDED and launches through you get 403 CLIENT_SUSPENDED. "active" re-activates it.
  • Suspended by OrbiPoker. A client with platformBlocked: true is read-only: every non-GET call gets 403 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}}]}}}'
KeyDefaultAllowedDescription
brand
brand.nameoperator name2–40Name shown in the client.
brand.lobbyTitle"Poker"≤ 40Lobby title.
brand.logoUrl · faviconUrl · feltLogoUrlnullHTTPS URL or media-library fileHeader 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 · carbonA preset sent without colors loads its palette.
theme.colors.*preset palette#rrggbb17 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-uiClient font.
theme.fontSize · theme.radius14 · 1212–17 · 0–24Base font size and corner radius, in px.
theme.density · deck · cardFace · tableShapefirst valuecomfortable|compact · four-color|two-color · classic|large-index · oval|roundedLayout density, suit colours, card faces and table shape.
theme.animations · theme.soundstruebooleanDefaults for new players; each player can change them.
theme.table · chrome · components · scheme—see theme-model.jsCard 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 · mtttruebooleanFormats your players can join (enforced by the server).
features.chat · emotes · notes · hudtruebooleanChat, emotes, player notes and the built-in HUD (enforced by the server).
features.straddle · runItTwice · rabbitHunttruebooleanAllowed on your tables; the table must enable it too.
features.handHistory · replayer · provablyFair · waitlist · autoTopUp · multiTabletruebooleanShown or hidden in the client.
features.allInEquity · showLeaderboardstrue · truebooleanAccepted but not used yet.
features.anonymousTablesfalsebooleanAllows tables and pools with features.anonymous. There, other players show as “Player <seat>” with a per-table id anon_…, chat included.
timers
timers.actionSeconds155–60Time to act at cash tables.
timers.fastFoldActionSeconds105–30Time to act in fast-fold.
timers.tournamentActionSeconds125–60Time to act in tournaments.
timers.timeBankSeconds150–300Starting time bank.
timers.timeBankMaxSeconds600–600Maximum time bank.
timers.timeBankRefillSeconds · timeBankRefillHands5 · 100–60 · 1–1000Seconds added to the time bank every N hands played.
timers.sitOutKickMinutes101–120A player sitting out longer than this is cashed out.
timers.handPauseMs2500500–10000Pause between cash hands.
timers.missedBlindsSitOut21–10Reserved; not used yet.
limits · betting
limits.maxTables241–24Cash tables plus fast-fold pools a player can play at once. A per-player limit can only lower it.
limits.maxBuyInPerDaynullminor unitsDefault daily buy-in cap per player (UTC day). A per-player limit replaces it.
limits.sessionReminderMinutes600–1440Reality-check reminder in the client (0 = off).
betting.preflopRaises[2.2, 2.5, 3, 4]≤ 6 values, 1–20Preflop raise buttons, in big blinds.
betting.postflopPotPercents[33, 50, 75, 100]≤ 6 integers, 10–300Postflop bet buttons, in % of the pot.
betting.showPotButtontruebooleanShow a Pot button.
rake · fees · promotions
rake.bps5000–1000Fallback cash rake in basis points (500 = 5%), for currencies without a stake schedule. A table's rakeBps overrides it.
rake.schedulesUSD, USDT: PokerStarscurrency → 1–30 tiers, bps 0–1000Stake 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.noFlopNoDroptruebooleanNo rake when the hand ends before the flop.
rake.capsByPlayers{"2":100,"4":200,"10":300}integer keys and valuesCap 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.capUnitBbtruebooleanCaps in BB/100 (true) or minor units (false). A table's rakeCap is always absolute.
tournamentFeeBps10000–2500MTT and Sit & Go fee as a share of the buy-in, when a tournament does not set fee.
spinFeeBps700700 | 800Spin 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 ≤ 500Cash 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.enabledtruebooleanThe whole club product. See Clubs.
clubs.features.*truebooleanOne part: leagues, shop, duel, leaderboards, rewards, complaints, backoffice, jackpot.
clubs.require2FA · allowSignuptruebooleanTOTP for club staff, and sign-up at /app.
clubs.*see GET /api/v1/configstrict schemaClub 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 subsetLanguages offered in the client.
defaultLocale"pt-BR"one of localesLanguage for new players launched without locale.
chat.maxLength · chat.rateSeconds120 · 210–500 · 0–60Longer messages are cut; one message per N seconds.
chat.bannedWords[]≤ 500 words, 1–40 charsReplaced with *** (case-insensitive).

Games and rules

Variants

CodeGameNotes
NLHENo-Limit Hold'em2 hole cards.
PLHEPot-Limit Hold'emPot-limit betting.
PLO4 · PLO5 · PLO6Pot-Limit Omaha4, 5 or 6 hole cards; exactly two from the hand and three from the board. PLO5/PLO6 up to 6 seats.
PLO8Omaha Hi/LoEight-or-better low; pots split high/low, odd chip to the high.
SHORTShort 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 timeBankRefillSeconds every timeBankRefillHands hands, up to timeBankMaxSeconds.
  • 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 sitOutKickMinutes cashes 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 (needs features.anonymousTables).

Tournaments

Sit & GoSpin & GoMTT
Seats2–9 (6)32–9 (8) per table
Start stack / BB1,500 / 20500 / 2010,000 / 100
Speed (level)turbo (5 min)3 minregular (10 min)
BB ante from level4never3
FeetournamentFeeBpsin the multiplier tabletournamentFeeBps
Startswhen fullwhen fullstartAt (default: in 15 min)
  • Speeds: slow 15 min, regular 10, turbo 5, hyper 3 per level (levelSeconds 60–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 lateRegLevels levels (default 8), closing early when 15% or fewer of the entries remain. Re-entry up to maxEntries (1–10, default 1) during late registration. Fewer than minPlayers (default 2) at startAt: 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: false pays 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.

MultiplierPer 1,000,000 (7%)Per 1,000,000 (8%)Winner
10,000×11100%
240×3030100%
120×7575100%
25×1,0001,000100%
10×5,0005,000100%
5×85,00085,000100%
3×444,000414,012100%
2×464,894494,882100%

Provably fair shuffle

  1. Before each hand the server draws a 32-byte serverSeed from the OS CSPRNG and publishes commitment = SHA-256(serverSeed bytes) in the table view.
  2. 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 of HMAC-SHA256(key = serverSeed, message = handId + ":" + counter) for counter = 0, 1, 2…; a word ≥ ⌊2³²/range⌋ × range is skipped, so every permutation is equally likely.
  3. 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).
  4. 24 hours after the hand ends, serverSeed is 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}.

Try it: rebuild a deck

Responsible gaming

You own the player relationship, so you drive these controls from your own tools. Every call is audited.

CallDescription
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}/unblockLifts 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}/kickRemoves 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 fieldDescription
rakeCash and fast-fold rake attributed to your players (contributed method).
feesMTT and Sit & Go fees paid by your players.
spinMarginSpin buy-ins minus Spin prizes paid to your players.
promoCostCash Drops paid on your tables.
ggrrake + fees + spinMargin − promoCost.
platformShareOrbiPoker's revenue share of ggr.
networkSettlementYour 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 · entriesTournament 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 by transactionId.
  • GET /api/v1/hands and /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.

No real money on the platform. Club tables use chips (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

PartDescription
clubsPlayers 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.
leaguesClubs share tables and tournaments and settle with the league every week.
backofficeThe web back office for owners, managers, agents and league owners, opened from the game client.
shopItems paid with diamonds: time bank, rabbit hunt credits, emoji packs and a VIP card.
duelA betting mini-game with 15-second rounds and a seed commitment on every round. Each club owner can turn it off.
leaderboardsWeekly Sit & Go leaderboards for verified accounts.
rewardsReward points earned from rake and redeemed for chips. Each club owner can turn them off.
complaintsPlayers file complaints about another player or a hand.
jackpotClub 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.

ScopeHow
All your clubsPATCH /api/v1/config {"clubs":{"enabled":false}}
One partPATCH /api/v1/config {"clubs":{"features":{"duel":false}}}
One launchPOST /api/v1/launch {"disable":["shop","duel"]} · {"disable":["clubs"]}
One clubThe 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 /club opens 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, and poker.openClub() opens it from your page.
  • Your own iframe tag needs allow="…; geolocation" for tables with GPS restriction; without it they answer GPS_REQUIRED. The SDK sets it for you.
  • Staff security. Staff actions need a TOTP code while clubs.require2FA is 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.

MethodPathDescription
GET · PATCH/api/v1/configThe clubs block: flags, sign-up, 2FA, levels, rakeback caps, fees, shop and leaderboards. See Configuration.
POST/api/v1/launchThe view and disable fields. See Launch API.
POST/api/v1/players/{playerId}/blockAlso applies to clubs: the player's club requests answer 403 PLAYER_BLOCKED.
GET/api/v1/reports/ggrLeaves 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.

MethodPathDescription
GET/api/club-api/v1/members/{publicId}An active member: {publicId, nickname, balance, frozen}.
POST/api/club-api/v1/chipsMoves 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 }
FieldRuleDescription
playerPublicId requiredintegerThe player ID shown in the club.
amount requiredpositive integerMinor units of CHIP: 5000 is 50.00 chips.
directionsend · receivesend (default) moves chips from the treasury to the member, receive from the member to the treasury.
memo≤ 120Stored 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 original txId with replayed: true and 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.
StatusCodeMeaning
400IDEMPOTENCY_KEY_REQUIRED · INVALID_IDEMPOTENCY_KEY · INVALID_AMOUNTMissing key, bad key format, or an amount that is not a positive integer.
401UNAUTHORIZEDMissing, unknown or revoked club key.
402INSUFFICIENT_CHIPSThe treasury or the member cannot cover the amount.
403FUNDS_FROZEN · CLUB_SUSPENDEDThe member's chips are frozen, or the club is suspended.
404MEMBER_NOT_FOUNDNo 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; parentOrigin set; sessionToken passed if you tie movements to sessions.
  • All production origins (including www and 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 transactionId inside 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, failed and unknown transactions; daily reconciliation of /api/v1/transactions with 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).

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.bet takes cowboy, touro, draw and the hand lines instead of blue, red and 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, and clubs.leagueOnlyCreates and clubs.reportsMinLevel to 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; CHIP cannot be an operator currency; a guaranteed MTT with no minPlayers needs 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; the chat WebSocket message stays on the server.
1.2.1 · 2026-10-31
Security release. serverSeed is 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 need X-Requested-With; clients must send device at 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.clubs or the launch field disable. Also: rebuys, add-ons, satellites, mystery bounty, hand-for-hand, ICM deals, Open Face Chinese, bomb, capped, swap, cucurucho and mixed tables. New wallet reasons tourney_rebuy and tourney_addon: a wallet that validates reason must accept them.
1.1.0 · 2026-10-24
Aggregator API (/api/v1/aggregator): one orbp_agg_ key creates and runs many operators. Also: shared network tables and tournaments are created only by OrbiPoker staff (403 NETWORK_STAFF_ONLY); a launch Idempotency-Key cannot 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.anonymous needs features.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, inPlay on player profiles and the sessionMinutes limit.

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.