You are viewing docs v1.8.0, an older version. View the latest version →
Skip to content

Tournaments 1.6.0+ ​

Create and run tournaments for your own site from your admin console: scheduled multi-table tournaments (MTT) or Sit & Go, with blind levels, breaks, rebuys and re-entries, prize tables, multi-stage events (RNG → live → offline) and satellites.

MethodPathPurpose
GET/operator/v1/tournamentsYour tournaments
GET/operator/v1/tournaments/optionsGames, live tables and satellite targets you can use
POST/operator/v1/tournamentsCreate a tournament (draft)
GET/operator/v1/tournaments/{tournament_id}Tournament detail and live progress
PATCH/operator/v1/tournaments/{tournament_id}Edit a draft
POST/operator/v1/tournaments/{tournament_id}/openOpen registration
POST/operator/v1/tournaments/{tournament_id}/cloneCopy the settings into a new draft (next edition)
POST/operator/v1/tournaments/{tournament_id}/controlRun the tournament (start, pause, levels, breaks, stages, offline results)
GET/operator/v1/tournaments/{tournament_id}/txMoney ledger of the tournament
GET/operator/v1/tournaments/{tournament_id}/handsHand history (tournament chips) 1.7.0+
GET/operator/v1/tournaments/{tournament_id}/offline-sheetOffline finalists, stacks and seat draw (CSV)

Players register and play in the game lobby's tournament tab; buy-ins, rebuys, prizes and refunds reach your wallet as tourney_* wallet callbacks.

Scope ​

Every request works only on your own tournaments and resources.

ItemRule
OperatorAlways the operator that signed the request. An operator field in the body is ignored
GameOnly games enabled for your site that support tournaments: holdem_nlh, holdem_plo4, badugi, sutda, matgo, gostop, tongits. Others return 403 GAME_NOT_OFFERED. options.games is the exact list
Stage gameAn RNG stage's game_code follows the same rule. A live stage needs live_holdem enabled for your site (403 GAME_NOT_OFFERED otherwise), and may reserve only your own dedicated live_holdem tables (400, field stages.N.live_tables)
Satellite targetsatellite_of must be one of your tournaments (400, field satellite_of)
CurrencyOne of your operator currencies (400, field currency)
Other operators' tournamentsEvery path returns 404 TOURNEY_NOT_FOUND

The scope is checked again when you open registration or clone. If the provider turns a game off in the meantime, the tournament cannot be opened; tournaments already open keep running to the end.

Lifecycle ​

draft → registration → running ⇄ paused → completed, or cancelled at any point.

  • Settings can be edited only while draft (409 TOURNEY_NOT_DRAFT afterwards). Full validation (levels, payouts, stages…) runs on open; a failure returns 400 BAD_MESSAGE with the reasons joined by ; in error.message.
  • A scheduled tournament starts at starts_at if the minimum number of players registered (otherwise it is cancelled and every entry refunded). A Sit & Go (config.sng: true) starts as soon as the minimum is reached. You can also start it by hand with control start.

GET /operator/v1/tournaments ​

Query: status (draft · registration · running · paused · completed · cancelled), limit (1–200, default 50), offset.

json
{
  "tournaments": [
    {
      "tournament_id": "trn_019a3f2b7c1d7e4f8a9b0c1d2e3f4a5b",
      "operator": "yourcasino",
      "game_code": "holdem_nlh",
      "name": "Sunday Main",
      "names": { "en": "Sunday Main", "ko": "선데이 메인" },
      "currency": "PHP",
      "status": "registration",
      "starts_at": "2026-11-09T12:00:00Z",
      "sng": false,
      "buy_in": 100000,
      "fee": 10000,
      "entries": 42,
      "prize_pool": 4200000,
      "fee_total": 420000,
      "satellite_of": null,
      "stages": 1,
      "sort_order": 0,
      "created_by": "operator:yourcasino/jane",
      "created_at": "2026-11-03T02:10:00Z",
      "started_at": null,
      "finished_at": null
    }
  ],
  "total": 1
}

Amounts are integers in minor units. prize_pool is buy-ins plus rebuys; fee_total is the entry fees (your revenue, recorded as rake).

GET /operator/v1/tournaments/options ​

json
{
  "games": ["holdem_nlh", "holdem_plo4", "sutda"],
  "live_tables": [
    { "table_id": "tbl_0198c1d2e3f47a5b8c9d0e1f2a3b4c5d", "name": "LH001", "currency": "PHP", "status": "open", "seated": 3, "reserved": false }
  ],
  "targets": [
    { "tournament_id": "trn_019a3f2b7c1d7e4f8a9b0c1d2e3f4a5b", "name": "Sunday Main", "operator": "yourcasino", "currency": "PHP" }
  ],
  "operator": { "code": "yourcasino", "name": "Your Casino", "currencies": ["PHP", "USD"] }
}
FieldDescription
gamesGames you can create tournaments for (enabled for your site and tournament-capable)
live_tablesYour dedicated live_holdem tables you can reserve for a live stage. Empty if live_holdem is not enabled. reserved = already reserved by a tournament
targetsYour tournaments open for registration — possible satellite targets
operator.currenciesCurrencies you can use

POST /operator/v1/tournaments ​

json
{
  "game_code": "holdem_nlh",
  "name": "Sunday Main",
  "names": { "en": "Sunday Main", "ko": "선데이 메인" },
  "currency": "PHP",
  "starts_at": "2026-11-09T20:00:00+08:00",
  "satellite_of": null,
  "sort_order": 0,
  "config": {
    "min_players": 6,
    "max_players": 200,
    "buy_in": 100000,
    "fee": 10000,
    "start_chips": 20000,
    "late_reg": { "until_level": 6 },
    "levels": [
      { "sb": 100, "bb": 200, "ante": 0, "minutes": 15 },
      { "sb": 150, "bb": 300, "ante": 0, "minutes": 15 },
      { "sb": 200, "bb": 400, "ante": 50, "minutes": 15 }
    ],
    "ante_mode": "classic",
    "breaks": [{ "after_level": 4, "minutes": 5 }],
    "rebuy": { "enabled": true, "until_level": 4, "cost": 100000, "chips": 20000, "max": 2 },
    "reentry": { "enabled": false },
    "seats_per_table": 9,
    "final_table": 9,
    "timers": { "action_sec": 20, "timebank_sec": 60, "timebank_add_sec": 10, "reconnect_sec": 60 },
    "payouts": [
      { "from": 2, "to": 20, "places": [{ "from": 1, "to": 1, "bp": 6500 }, { "from": 2, "to": 2, "bp": 3500 }] },
      { "from": 21, "to": 1000, "places": [{ "from": 1, "to": 1, "bp": 4000 }, { "from": 2, "to": 2, "bp": 2500 }, { "from": 3, "to": 3, "bp": 1500 }, { "from": 4, "to": 5, "bp": 1000 }] }
    ],
    "cancel_policy": "chip_chop",
    "same_ip_restrict": true,
    "auto_resume": true
  }
}

Response 201 { "tournament_id": "trn_…" }.

FieldDescription
game_codeOne of options.games
name / namesDisplay name; names per language (en, ko, zh, ja, th, vi)
currencyOne of your currencies
starts_atStart time (ISO 8601). Omit for a Sit & Go (config.sng: true)
satellite_ofMain event this tournament qualifies for (a targets entry). Top places then win a ticket instead of cash
configTournament settings — see below

Main config fields (amounts in minor units, times in minutes unless named _sec):

FieldDescription
sngtrue = start as soon as min_players registered
reg_opens_at / reg_closes_atRegistration window (default: from open to the start)
late_reg{ minutes } after the start or { until_level }
min_players / max_playersPlayer limits
buy_in / feeBuy-in (goes to the prize pool) and entry fee (your revenue)
start_chipsTournament chips per entry. Tournament chips are not money
levels[]One row per level: Hold'em sb · bb · ante, Badugi · Sutda ante, Matgo · Go-Stop point_value, Tongits stake, plus minutes
ante_modeHold'em: none · classic · bb_ante
breaks[]{ after_level, minutes }
rebuy{ enabled, minutes?, until_level?, cost, chips, max, max_stack?, offer_sec? }
reentry{ enabled, max } — a new entry after busting, until late registration closes
seats_per_table / final_tableSeats per table and final-table size
timers{ action_sec, timebank_sec, timebank_add_sec, reconnect_sec }
payouts[]Prize tables by number of entries: { from, to, places: [{ from, to, bp }] }, bp = share of the pool in basis points (10000 = 100%)
ticketsSatellite: number of main-event tickets
stages[]Multi-stage: { kind: "rng" | "live" | "offline", game_code?, seats_per_table?, starts_at?, level_minutes?, live_tables?, transition: { players_left?, level?, at?, op? } }
cancel_policyRefund after the start if cancelled: chip_chop (default) · equal_split · buyin_refund; cancel_refund_fee also refunds fees
pool_scopeoperator (default) · family (a parent operator's tournament also takes its sub-operators' players in the same currency)
dup_ticketSecond ticket to the same main event: cash (default) · keep · next_place
offline_approvalOffline results: single (default) · dual (a second admin approves)
spectateWho can watch tournament tables: participants (default) · players · none
same_ip_restrict / auto_resumeOne entry per IP; resume automatically after a server restart

GET /operator/v1/tournaments/ ​

Returns { "row": { … }, "view": { … } }. row has the list fields above. view is the live state:

FieldDescription
statusLifecycle status
configSaved settings
stateProgress: level, sub (sub-state such as break or intermission), stage_no, final, level clock
tournamentPlayer-facing summary: players left, average stack, current and next blinds, prize table with amounts, ranking
entries[]entry_no, player_id, external_id, nickname, via (paid · ticket), status (registered · playing · busted · won · qualified · withdrawn · cancelled), chips, table_no, seat, rebuys, place, prize, ticket, paid_offline, registered_at
tables[]Tables of the current stage with seats and stacks
offlineOffline result submitted / approved (offline stage)
fee_total / warningsFees collected; warnings such as live_capacity (too many players for the reserved live seats)

PATCH /operator/v1/tournaments/ ​

Same body as POST. Draft only. Response 200 { "ok": true }.

POST /operator/v1/tournaments/{tournament_id}/open ​

Validates the settings and the scope, then opens registration (draft → registration). Response 200 { "ok": true }.

POST /operator/v1/tournaments/{tournament_id}/clone ​

Creates a new draft with the same settings (start time cleared). Response 201 { "tournament_id": "trn_…" }.

POST /operator/v1/tournaments/{tournament_id}/control ​

json
{ "action": "level", "level": 5, "remaining_sec": 600 }
actionFieldsEffect
startStart now (minimum players required, TOURNEY_MIN_PLAYERS)
pause / resumeStop new hands on every table / continue
cancelreason?Cancel and refund according to cancel_policy
levellevel, remaining_sec?Jump to a blind level (from the next hand)
break_start / break_extend / break_endminutesBreaks
stageMove to the next stage now
offline_submitrows: [{ entry_no, place, withdrawn?, paid_offline? }]Final places of an offline stage. paid_offline: true = already paid on site (no wallet credit)
offline_approveApprove the submitted results (offline_approval: dual — must be a different admin, TOURNEY_SAME_ADMIN)

Response 200 { "ok": true, "view": { … } }. An action that does not fit the current status returns 400 TOURNEY_STATE.

Send the admin's login in the X-Operator-Admin header (letters, digits and _ . @ -, up to 40). It is recorded as the actor (operator:<code>/<admin>) in the audit log, as created_by, and as the offline submitter and approver.

GET /operator/v1/tournaments/{tournament_id}/hands ​

1.7.0+ Hand history of the tournament — the hands your players took part in, newest first. Tournament hands are not in GET /rounds because their amounts are chips, not money.

Query: limit (1–200, default 50), cursor (the previous page's next_cursor).

json
{
  "hands": [
    { "round_id": "rnd_6e3e14ea9add5b748b07c272b0a54778", "game_code": "holdem_nlh", "table_id": "tbl_899956b56830542580ad552cbdc15e12",
      "table_no": 1, "stage_no": 1, "hand_no": 9, "status": "settled", "started_at": "2026-11-09T12:48:47Z", "settled_at": "2026-11-09T12:48:52Z",
      "players": 3, "invested": 7740, "won": 7740 }
  ],
  "total": 9,
  "next_cursor": null
}
FieldDescription
table_no / stage_noTournament table number and stage
hand_noHand number on that table
playersYour players in the hand
invested / wonTournament chips your players put in and won (not money)
next_cursorPass as cursor for older hands; null on the last page

Open a hand with GET /rounds/{round_id} — it carries tournament_id, and its amounts are chips.

GET /operator/v1/tournaments/{tournament_id}/tx ​

json
{
  "tx": [
    { "id": "…", "kind": "entry", "amount": 110000, "player_id": "plr_…", "wallet_tx_id": "tx_…", "created_at": "2026-11-09T11:58:02Z" }
  ]
}

kind: entry (buy-in) · fee · rebuy · prize · refund · cancel (rollback) · ticket_in / ticket_out (satellite ticket moved between prize pools, no wallet call, with ticket_id) · paid_offline (prize already paid on site, no wallet call).

GET /operator/v1/tournaments/{tournament_id}/offline-sheet ​

CSV (UTF-8 with BOM): entry_no, player_id, external_id, nickname, chips, draw, status — the players who qualified for the offline stage with their stacks and seat draw.

Errors ​

HTTPcodeWhen
400INVALID_REQUESTMissing name / game_code / currency, or an out-of-scope field (details.fields: currency, satellite_of, stages.N.live_tables)
400BAD_MESSAGEInvalid settings on open (reasons in error.message)
400TOURNEY_STATE · TOURNEY_MIN_PLAYERS · TOURNEY_SAME_ADMIN · TOURNEY_BUSYControl not allowed now
403GAME_NOT_OFFEREDGame (or live stage) not enabled for your site
404TOURNEY_NOT_FOUNDNo such tournament for your operator
409TOURNEY_NOT_DRAFTEditing after registration opened

Docs v1.8.0 · Operator API v1