Appearance
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-keyReset 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}'| Field | Type | Description |
|---|---|---|
days | number, 0 to 400 | Shifts the active challenge's start and end, and the active funded account's last payout time, this many days into the past |
expireInSeconds | integer, 0 to 172800 | Instead 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.
Recommended Test Flow
- Reset staging data.
bash
curl -X POST https://api.fundedfast.eu/v1/sandbox/reset \
-H "X-API-Key: YOUR_STAGING_API_KEY"- 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"}'- 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"
}'- 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
}'- Check user progress.
bash
curl -H "X-API-Key: YOUR_STAGING_API_KEY" \
https://api.fundedfast.eu/v1/users/test-user-1/progress- Verify webhooks are arriving at your endpoint.
Going to Production
When integration testing is complete:
- Request production promotion from the FAST admin panel (Clone to Production)
- You receive a new production API key and widget key
- Update your backend
.envwith the production key - Production tenant starts with zero data: no test data leaks
Key Differences
| Staging | Production | |
|---|---|---|
| Data reset and time travel | Allowed (/sandbox/*) | Blocked |
| API surface | Identical | Identical |
| Webhooks | Delivered normally | Delivered normally |
| Rate limits | Same as production | Same as production |
| Analytics | Excluded from platform stats | Included |
eventTimestamp | Used as sent, so days can be played out in minutes | Held between ten minutes ago and now |
| Settlement hold | 0 hours | 72 hours (0 to 168, per tenant) |
| Widget purchases | Approved on their own | Need your approval URL |
| Server key scope | admin: the admin API too | integration: no /v1/admin/*, /v1/audit/* or /v1/analytics/* unless FAST gives it admin |
Webhook echo (/v1/webhook-echo) | Can be your webhook URL | Refused as a webhook URL |