Skip to main content
Sandbox is a fully isolated testing environment for custodial features without connecting real funds. It uses the same endpoints, authentication, and response formats as Live, so there’s nothing new to learn when you’re ready to ship. Transactions are simulated with no real funds moving, no mainnet or testnet activity, and no compliance checks, which means you can build and break things freely before going to production.

Key concepts

ResourceDirectionDescription
AccountYour asset balance within Coinbase that you fund with test amounts (e.g., $1000 USD)
Deposit destinationIncoming cryptoPlaceholder addresses for receiving crypto. Simulate deposits via the Portal UI
Payment methodOutgoing fiatExternal bank accounts for fiat withdrawals. Pre-configured test banks shared across all accounts
TransferBothMove funds to crypto addresses, emails, or payment methods. All simulated

Sandbox vs. Live

Sandbox and Live share the same endpoints and functionality, but with different data and behavior.
SandboxLive
Base URLsandbox.cdp.coinbase.comapi.cdp.coinbase.com
API keysSandbox-specific credentialsLive credentials
AccountsCreate via Sandbox UI; fund via UI onlyLink existing Prime portfolio or Coinbase Business account
Deposit destinationsPlaceholder addresses; simulate deposits via UIReal blockchain addresses
Payment methodsPre-configured test methodsAutomatically linked from Prime/Business
TransfersSimulated (webhooks fire, no blockchain activity)Real blockchain transactions
Compliance checksSimplified (no real KYC/AML)Full compliance flows

Best practices

  • Isolate configuration: Keep Sandbox API keys and base URLs completely separate from Live. Use environment variables to switch between them.
  • Test error handling: Use Sandbox to cover failure scenarios — invalid auth, malformed requests, rate limits, insufficient funds.
  • Automate: Build integration tests against Sandbox before cutting over to Live.

Get started

Quickstart

Set up your API keys and make your first Sandbox request.

API Reference

Explore the full Payment APIs reference.