Skip to content

Environments

Use separate API keys for staging and production. A key authorizes one tenant in one environment and must remain server-side.

Environment Base URL
Staging https://ycivtnlwijalzirqzbrt.supabase.co/functions/v1/api
Production https://xluwkyrfqqvryogyyobd.supabase.co/functions/v1/api
Terminal window
REWARDOS_API_BASE=https://ycivtnlwijalzirqzbrt.supabase.co/functions/v1/api
REWARDOS_API_KEY=rwos_test_...

Before enabling a new environment, call GET /b2b/whoami and verify the returned tenant and API client. Never copy a staging key into production configuration, and never commit either value to source control.

Start with safe reads:

  1. GET /b2b/whoami
  2. GET /b2b/catalog/offers
  3. GET /b2b/wallet/balance
  4. GET /b2b/wallet/ledger

Create a staging purchase only when you are ready to exercise the full fulfillment flow and have sufficient staging wallet funds.