Skip to content

Staging Environment ​

Every operator gets a separate staging tenant for testing. The staging environment mirrors the full production API surface with resettable data, allowing safe end-to-end testing.

How It Works ​

FAST uses separate tenants for staging and production. When you onboard, you receive a staging tenant with its own API key. When ready to go live, a production tenant is created (via "Clone to Production") with your rulesets and challenge tiers, no player data, and new keys.

  • Staging tenant: Full API access, data can be reset at any time
  • Production tenant: Full API access, data reset is blocked

Both use the same X-API-Key header:

X-API-Key: your-api-key

Reset Staging Data ​

Reset All Data ​

bash
curl -X POST https://api.fundedfast.eu/v1/sandbox/reset \
  -H "X-API-Key: YOUR_STAGING_API_KEY"

Clears all challenges, funded accounts, bet events, reconciliation flags, webhook deliveries, rewards, streaks and achievements for the staging tenant, and resets its widget theme. Only works on tenants with environment = staging: a production tenant gets 403 forbidden, and the ledger purge checks the tenant's environment again on its own, so production bet history can never be removed this way.

json
{ "status": "ok", "message": "Sandbox data reset successfully", "correlationId": "uuid" }

Reset Per-User Data ​

bash
curl -X POST https://api.fundedfast.eu/v1/sandbox/reset/user-001 \
  -H "X-API-Key: YOUR_STAGING_API_KEY"

Removes all data for a specific user (challenges, funded accounts, bet events and their flags, webhook deliveries, rewards, achievements, streaks) while preserving other test users. Useful when rerunning a single test scenario.

json
{
  "status": "ok",
  "userId": "user-001",
  "deleted": { "challenges": true, "fundedAccounts": true, "betEvents": true, "webhookDeliveries": true },
  "correlationId": "uuid"
}

WARNING

Reset is blocked on production tenants (403 forbidden). If you need to clean up production data, contact FAST support.

All sandbox calls need your server key; the widget key is refused.

Time Travel ​

A challenge runs for weeks, and payouts wait days apart. On staging you can move one user's clock forward:

bash
curl -X POST https://api.fundedfast.eu/v1/sandbox/time-travel/user-001 \
  -H "X-API-Key: YOUR_STAGING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"days": 7}'
FieldTypeDescription
daysnumber, 0 to 400Shifts the active challenge's start and end, and the active funded account's last payout time, this many days into the past
expireInSecondsinteger, 0 to 172800Instead of days: puts the active challenge's end this many seconds from now (the length stays the same). 0 ends it now

FAST then evaluates the challenge, so an expiry applies at once (challenge.failed with expired or insufficient_active_days), and rebuilds the user's progress.

json
{
  "status": "ok",
  "challenge": { "id": "uuid", "startedAt": "...", "expiresAt": "..." },
  "fundedAccount": { "id": "uuid", "lastPayoutAt": "..." },
  "correlationId": "uuid"
}

challenge or fundedAccount is null when the user has no active one. Time travel does not add active days or bets: those still come from the bets' eventTimestamp, which staging takes as sent. Production tenants answer 403 forbidden.

  1. Reset staging data.
bash
curl -X POST https://api.fundedfast.eu/v1/sandbox/reset \
  -H "X-API-Key: YOUR_STAGING_API_KEY"
  1. Purchase a challenge.
bash
curl -X POST https://api.fundedfast.eu/v1/challenges/purchase \
  -H "X-API-Key: YOUR_STAGING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"userId": "test-user-1", "challengeTierId": "TIER_ID"}'
  1. Validate a bet (dry run).
bash
curl -X POST https://api.fundedfast.eu/v1/bets/validate \
  -H "X-API-Key: YOUR_STAGING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": "test-user-1",
    "externalBetId": "test-bet-1",
    "stakeAmount": 5,
    "odds": 2.0,
    "betTypeIdentifier": "single",
    "status": "placed"
  }'
  1. Place and settle bets to drive the challenge toward target. Send the placement first: a settlement without an accepted placement is rejected (no_accepted_placement) and moves no money.
bash
curl -X POST https://api.fundedfast.eu/v1/bets \
  -H "X-API-Key: YOUR_STAGING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": "test-user-1",
    "externalBetId": "test-bet-1",
    "stakeAmount": 5,
    "odds": 2.0,
    "betTypeIdentifier": "single",
    "status": "placed"
  }'

curl -X POST https://api.fundedfast.eu/v1/bets \
  -H "X-API-Key: YOUR_STAGING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "userId": "test-user-1",
    "externalBetId": "test-bet-1",
    "stakeAmount": 5,
    "odds": 2.0,
    "betTypeIdentifier": "single",
    "status": "settled-won",
    "settlementAmount": 10
  }'
  1. Check user progress.
bash
curl -H "X-API-Key: YOUR_STAGING_API_KEY" \
  https://api.fundedfast.eu/v1/users/test-user-1/progress
  1. Verify webhooks are arriving at your endpoint.

Going to Production ​

When integration testing is complete:

  1. Request production promotion from the FAST admin panel (Clone to Production)
  2. You receive a new production API key and widget key
  3. Update your backend .env with the production key
  4. Production tenant starts with zero data: no test data leaks

Key Differences ​

StagingProduction
Data reset and time travelAllowed (/sandbox/*)Blocked
API surfaceIdenticalIdentical
WebhooksDelivered normallyDelivered normally
Rate limitsSame as productionSame as production
AnalyticsExcluded from platform statsIncluded
eventTimestampUsed as sent, so days can be played out in minutesHeld between ten minutes ago and now
Settlement hold0 hours72 hours (0 to 168, per tenant)
Widget purchasesApproved on their ownNeed your approval URL
Server key scopeadmin: the admin API toointegration: no /v1/admin/*, /v1/audit/* or /v1/analytics/* unless FAST gives it admin
Webhook echo (/v1/webhook-echo)Can be your webhook URLRefused as a webhook URL

BLACKLINE CONSULTING d.o.o.