Skip to content

Missions Guide ​

Time boxed engagement tasks. "Place 10 bets this week." "Wager 200 EUR today." Completions grant rewards.

Works standalone: no challenge or funded account required.


How It Works ​

  1. Operator creates mission templates in the backoffice
  2. Users are enrolled automatically (auto mode), join themselves (opt in), or are enrolled by the operator (targeted)
  3. Bets increment progress toward the goal
  4. On completion, a reward is granted and mission.completed webhook fires
  5. A repeatable mission starts its next attempt at once, until the user reaches maxCompletionsPerUser
  6. If the mission expires before completion, mission.expired fires

Deployment Modes ​

ModeDescription
Challenges + MissionsMissions drive daily activity; challenge coupled rewards feed into the next challenge
Missions onlyPure engagement. Rewards are free_bet, bonus_credit and the other standalone types; you fulfil them

Mission Template Fields ​

FieldRequiredDefaultDescription
nameYesDisplay name ("Weekend Warrior")
descriptionNoLonger explanation shown in the widget
iconNotargetIcon name for the widget
criteriaTypeYesWhat to count (see below)
criteriaThresholdYesTarget to reach, above 0, at most 2 decimals (EUR, whole cents for the wagered types)
criteriaMetaNoExtra filters for every criteria type: minOdds (only bets at these odds or higher count) and markets (only bets on these market identifiers count)
rewardTypeNoWhat to grant on completion: one of the reward types in the Rewards Guide. Any other value is refused with 400
rewardValueNoAmount to grant: EUR, whole cents for money rewards, else percent, days or points
rewardApplyModeNoautoauto or claim
enrollmentModeNoautoauto, opt_in or targeted (see below)
startsAtYesWhen the mission window opens
endsAtYesWhen the mission expires
repeatableNofalseIf true, the next attempt starts the moment one completes, with progress back at 0
maxCompletionsPerUserNo11 to 1000. How often one user can complete (and be paid for) a repeatable mission. A mission that is not repeatable completes once, whatever this says
sortOrderNo0Display order, lower first

PUT takes the same fields plus enabled; an empty body answers 400 no_fields.

Repeatable missions ​

Each completion is one attempt with its own enrolment id and its own reward. With repeatable: true and maxCompletionsPerUser: 3, a user completes the mission at most three times in its window: the bet that completes attempt 1 counts only there, and attempt 2 starts from 0. Attempts are numbered in the database, one row per attempt, so a replayed or parallel bet can never open the same attempt twice or pay a fourth time.


Criteria Types ​

TypeWhat it countsThreshold unit
bets_placedAccepted bet placementsCount
bets_wonWon settlementsCount
bets_settledAny settlement (won or lost)Count
total_wageredCumulative stake of placementsEUR, whole cents
odds_abovePlacements at odds of at least criteriaMeta.minOddsCount
bet_countSame as bets_placedCount
win_countSame as bets_wonCount
bets_placed_window, bets_won_window, total_wagered_windowSame as the type without _windowAs above

Every mission counts only inside its own window, so the _window names behave like the plain ones. For odds_above set the odds in criteriaMeta: { "criteriaType": "odds_above", "criteriaThreshold": 3, "criteriaMeta": { "minOdds": 3.0 } } means "place 3 bets at odds 3.0 or higher".

A voided bet takes its progress back from an active mission. A mission already completed stays completed and FAST opens a reconciliation flag for you to review.


Enrollment Modes ​

ModeBehavior
autoEvery user takes part. The enrollment is created on the user's first qualifying bet
opt_inThe user clicks "Join" in the widget, or you call POST /users/:id/missions/:id/join. Only bets after joining count
targetedOnly the users the operator enrolls take part: POST /v1/admin/missions/:id/enroll with { "userIds": [...] } (at most 500 per call), or the enroll button on the mission in the backoffice. The widget does not offer a targeted mission to anyone else, and users cannot join it themselves.

Targeted enrolment works while the mission is enabled and has not ended, so you can enroll users before it starts; their progress counts from startsAt. A user already enrolled is returned in skipped, so sending the same list twice enrolls nobody twice. A 409 mission_not_targeted means the mission uses another mode; a 404 mission_not_found means it is unknown, disabled or over.

Join answers 409 with mission_not_found (no enabled mission running now with that id), mission_not_opt_in or max_completions_reached.


API Reference ​

Operator (admin) ​

MethodEndpointPurpose
GET/v1/admin/missionsList all mission templates
POST/v1/admin/missionsCreate a mission template
PUT/v1/admin/missions/:idUpdate a mission
DELETE/v1/admin/missions/:idDisable a mission (it is kept, answers disabled: true)
POST/v1/admin/missions/:id/enrollEnroll users in a targeted mission
GET/v1/admin/missions/statsGlobal mission stats
GET/v1/admin/missions/:id/statsStats for a specific mission

Public (widget key) ​

MethodEndpointPurpose
GET/v1/users/:userId/missionsactive (with progressPercent, 0 to 1), available, and the last 10 completed
POST/v1/users/:userId/missions/:id/joinJoin an opt in mission

SDK Usage ​

typescript
import { FastClient } from '@fundedfast/sdk';
const fast = new FastClient({ apiKey: 'key-...' });

// List missions
const missions = await fast.admin.missions.list();

// Create a mission
await fast.admin.missions.create({
  name: 'Weekend 10',
  criteriaType: 'bets_placed',
  criteriaThreshold: 10,
  rewardType: 'free_bet',
  rewardValue: 5,
  enrollmentMode: 'auto',
  startsAt: '2026-07-05T00:00:00Z',
  endsAt: '2026-07-07T23:59:59Z',
});

// Enroll users in a targeted mission
const { enrolled, skipped } = await fast.admin.missions.enroll(missionId, ['player-42', 'player-77']);

// Get user missions (public)
const { active, available, completed } = await fast.admin.missions.getUserMissions('player-42');

// Join an opt in mission for a user
await fast.admin.missions.join('player-42', missionId);

Webhook Events ​

EventWhen
mission.enrolledUser enrolled (first qualifying bet, join, operator enrolment, or the next attempt of a repeatable mission)
mission.progressProgress crossed 50% of the target
mission.completedTarget reached, reward granted. Data: missionId (the enrolment), missionTemplateId, missionName, rewardType, rewardValue, rewardId (null and 0 when nothing was granted)
mission.expiredTime ran out before completion

In every mission event missionId is the user's enrolment (one attempt) and missionTemplateId is the mission you created. mission.completed carries the reward as granted: rewardId, rewardType and rewardValue in EUR for money types. See Webhook Events.


Widget Display ​

Missions appear as collapsible rows in the Missions tab:

  • In Progress (blue accent): progress bar, time remaining
  • Available (neutral): description, join button (opt in) or auto badge
  • Completed (grey): done checkmark, completion date

BLACKLINE CONSULTING d.o.o.