Environments
Crossmint operates two fully separate environments:- Staging (
staging.crossmint.com) — free, for development and testing, connected to blockchain testnets - Production (
www.crossmint.com) — your live application, connected to mainnets, where real assets and real costs apply
Client-Side vs Server-Side API Keys
Checkout APIs accept both server-side and client-side API keys. Pick the one that matches where your requests originate.Use a Server-Side Key When
- Testing in the API Playground
- Calling the API with cURL or scripts from your command line
- Your application calls your own backend, which then calls Crossmint
x-api-key set to your sk_ key:
route.ts
Use a Client-Side Key When
- Your application calls the Crossmint API directly from the browser or a mobile app
http://localhost:3000 (or your dev URL) while testing, or requests are denied.
With a client-side key, the create-order response includes a clientSecret. Persist it and pass it as an authorization header on every subsequent request to edit or get the order:
Mobile Applications
Mobile apps using a client-side key must also send anx-app-identifier header with the bundle identifier (iOS) or package name (Android) whitelisted on the key:
See Also
API Keys
Create and scope server-side and client-side keys
Staging vs Production
The full environment comparison

