Appearance
Tournaments Guide
Competitive events where users are ranked by a scoring metric over a time window. Top players win prizes.
Works standalone: no challenge or funded account required.
How It Works
- Operator creates a tournament with scoring rules and prize structure
- Users enter (auto, opt in, or invite)
- Bets during the window update leaderboard scores
- When the tournament ends, FAST closes it to new scores, fixes the ranks and grants every prize as a reward, all in one step: a tournament is
completedonly once every prize is granted, and a settlement that fails is retried tournament.settledwebhook fires with results
Deployment Modes
| Mode | Description |
|---|---|
| Challenges + Tournaments | Tournaments add competition to challenge players |
| Tournaments only | Standalone competitive events on any bet activity |
Tournament Fields
| Field | Required | Default | Description |
|---|---|---|---|
name | Yes | Tournament name | |
description | No | Longer description | |
scoringMetric | Yes | How to rank players (see below) | |
entryMode | No | auto | auto, opt_in or invite |
minBetsToQualify | No | 1 | Scoring bets a player needs to be ranked and win a prize |
maxParticipants | No | unlimited | Cap on entries, in every entry mode. Once it is reached a join answers tournament_full, and in auto mode a new player's bets do not enter or score |
tiebreaker | No | earliest_entry | earliest_entry, most_bets or highest_single_win |
startsAt | Yes | Tournament window start. A start in the past opens the tournament at once and sends tournament.started right away | |
endsAt | Yes | Tournament window end | |
prizes | Yes | Array of rank bands with reward types |
A tournament can be edited only while it is upcoming; after that PUT answers 409 already_started. Status runs upcoming, active, settling, completed, or cancelled.
Scoring Metrics
Only bets placed or settled inside the window count.
| Metric | Scored on | Score |
|---|---|---|
net_profit | Settlement | A win adds settlementAmount minus stake (0 if you sent no settlementAmount); a loss subtracts the stake. EUR |
total_wagered | Placement | Adds the stake. EUR |
win_count | Settlement | +1 per won bet |
bet_count | Placement | +1 per bet |
highest_odds_won | Settlement | Highest odds of a won bet, times 100 (a win at 5.25 scores 525) |
longest_win_streak | Settlement | Longest run of won bets in a row, in settlement order. A loss ends the run; the best run is kept. A voided bet is taken out and the streak is counted again from the bets that remain |
Ties are broken by tiebreaker: earliest_entry puts the earlier entry first; most_bets puts more scoring bets first, then the earlier entry. highest_single_win currently orders the same as earliest_entry.
Entry Modes
| Mode | Behavior |
|---|---|
auto | No enrollment needed: a player's entry is created on their first scoring bet |
opt_in | The player joins in the widget or via POST /users/:id/tournaments/:id/join, while the tournament is active |
invite | The operator invites players via POST /admin/tournaments/:id/invite; an invited player then joins. Invite only tournaments are listed only to invited players |
Join answers 409 with tournament_not_found (no active tournament with that id), tournament_is_auto_enroll, not_invited or tournament_full.
Prize Structure
Prizes are an array of rank bands with reward types. On settlement only players with at least minBetsToQualify scoring bets are ranked, and each prize is granted as a reward with apply mode auto:
json
{
"prizes": [
{ "rankFrom": 1, "rankTo": 1, "rewardType": "free_bet", "rewardValue": 25 },
{ "rankFrom": 2, "rankTo": 3, "rewardType": "free_bet", "rewardValue": 10 },
{ "rankFrom": 4, "rankTo": 10, "rewardType": "bonus_credit", "rewardValue": 5 }
]
}A money prize (free_bet, bonus_credit, balance_bonus, cashback_credit, purchase_discount_fixed) is in EUR, whole cents: 25 is 25.00 EUR. A value with a third decimal is refused with 400 invalid_prizes. rewardType must be one of balance_bonus, balance_boost_percent, purchase_discount_percent, purchase_discount_fixed, profit_split_boost, extended_duration, payout_cap_boost_percent, payout_bonus_percent, free_bet, bonus_credit, cashback_credit, loyalty_points, custom. Any other value, a typo included, is refused with a 400 when you save, so a prize can never fail later at settlement. Use a standalone type (free_bet, bonus_credit, cashback_credit, loyalty_points, custom) when you run without challenges.
Bands may not overlap: each rank wins one prize. Ranks start at 1 and rankTo is never below rankFrom. A tournament saved with bands that break this is refused with 400 invalid_prizes, on create and on update.
Only bets FAST accepted score, and each bet scores once, however often its event is delivered. A voided bet's score is taken back while the tournament runs. After it has settled the ranks stand; if the player won a prize with the voided bet, FAST opens a reconciliation flag for you to review.
API Reference
Operator (admin)
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /v1/admin/tournaments | List tournaments (filter by status) |
| POST | /v1/admin/tournaments | Create a tournament |
| PUT | /v1/admin/tournaments/:id | Update an upcoming tournament (409 already_started after that) |
| POST | /v1/admin/tournaments/:id/cancel | Cancel; returns cancelled true or false |
| POST | /v1/admin/tournaments/:id/settle | Settle now: ends the window at once and distributes prizes |
| GET | /v1/admin/tournaments/:id/entries | View entries |
| POST | /v1/admin/tournaments/:id/invite | Invite 1 to 100 users: { "userIds": [...] }, returns invited and alreadyInvited |
| GET | /v1/admin/tournaments/:id/invites | List invites |
| GET | /v1/admin/tournaments/stats | Stats |
Invite answers 409 not_invite_mode for a tournament that is not in invite mode and 409 tournament_not_joinable once it is over or cancelled.
Public (widget key)
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /v1/tournaments | Active and upcoming tournaments (pass userId to include invite only ones the user is invited to) |
| GET | /v1/tournaments/:id/leaderboard | Live leaderboard: entries, userEntry and totalEntries. No user ids: each row has an anonymous displayName and isYou on the viewer's own row. The viewer is the user of the widget token; a server key may pass userId. limit is 1 to 100, default 10 |
| GET | /v1/users/:userId/tournaments | The user's active, upcoming and completed tournaments |
| POST | /v1/users/:userId/tournaments/:id/join | Join (opt in and invite modes) |
Webhook Events
| Event | Data | When |
|---|---|---|
tournament.started | tournamentId, name | The scheduler opened the window, or at once when the tournament is created with a start in the past |
tournament.user_joined | User joined | |
tournament.user_invited | User invited | |
tournament.settled | tournamentId, name, totalEntries | Ranked and prizes granted |
tournament.cancelled | tournamentId | Cancelled by admin |