BagsBags Docs
Getting Started

Environments: Sandbox vs. Production

Understand the difference between test and live environments, network mapping, and how to go live.

Bags has two environments. They share the same API and the same dashboard — the only difference is which API key you use.

SandboxProduction
API key prefixbag_test_sk_*bag_live_sk_*
Real moneyNoYes
KYB requiredNoYes
Networksbase_sepolia, eth_sepolia, solana_devnetbase, polygon, solana (+ ethereum waitlist)
TokensTestnet USDCReal USDC
SettlementsNot availableAvailable after KYB

Enforcement

The API enforces strict separation between sandbox and production:

  • Test keys (bag_test_sk_*) can only create resources on testnet networks. Attempting to use a mainnet network with a test key returns a 400 error.
  • Live keys (bag_live_sk_*) can only create resources on mainnet networks. Attempting to use a testnet network with a live key returns a 400 error.
  • All resources are tagged with a mode field (test or live).
  • API responses include a livemode boolean.
  • Webhook payloads include a top-level livemode boolean field.

Network mapping

ProductionTestnetv0 status
basebase_sepoliaLive
polygon— (no dedicated testnet)Live
solanasolana_devnetLive
ethereumeth_sepoliaMainnet waitlist — Sepolia works in sandbox

Ethereum L1 mainnet is deferred for v0 due to gas costs. Use Base or Polygon for production USDC today, or join the Ethereum mainnet waitlist.

When you're ready to go live, swap the network value in your API calls. Everything else stays the same.


Getting testnet USDC

NetworkFaucet
Base SepoliaCircle USDC Faucet
Ethereum SepoliaCircle USDC Faucet
Solana DevnetSolana Faucet

You'll also need native tokens for gas (ETH on Sepolia, SOL on Devnet).


Switching to production

  1. Complete KYBSubmit your business details in the dashboard.
  2. Generate a live API key — Developer Settings after KYB approval.
  3. Update network values — e.g. base_sepoliabase.
  4. Update your API keybag_test_sk_*bag_live_sk_*.
  5. Test with a small real payment before going wide.

Dashboard test mode

The Bags dashboard has a Test mode toggle in the sidebar. When enabled, an orange banner appears and all views filter to sandbox data only.


What's next

On this page