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, and webhook deliveries for the staging tenant. Only works on tenants with environment = staging.

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 while preserving other test users. Useful when rerunning a single test scenario.

WARNING

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

  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.
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": "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 resetAllowed (/sandbox/reset)Blocked
API surfaceIdenticalIdentical
WebhooksDelivered normallyDelivered normally
Rate limitsSame as productionSame as production
AnalyticsExcluded from platform statsIncluded

BLACKLINE CONSULTING d.o.o.