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 |
REWARDOS_API_BASE=https://ycivtnlwijalzirqzbrt.supabase.co/functions/v1/apiREWARDOS_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.
Staging checks
Section titled “Staging checks”Start with safe reads:
GET /b2b/whoamiGET /b2b/catalog/offersGET /b2b/wallet/balanceGET /b2b/wallet/ledger
Create a staging purchase only when you are ready to exercise the full fulfillment flow and have sufficient staging wallet funds.
