Test vs live mode
- Test mode
- Live mode
Test mode gives you a fully functional sandbox. You can create customers, subscribe them to plans, advance the clock, trigger dunning — all without moving real money.Test keys start with
sk_test_. Use them in your development and staging environments.The sandbox has pre-loaded test cards (including ones that fail) and pre-seeded plans. See the test clock guide for simulating time-sensitive flows.API key format
| Key type | Prefix | Where to use |
|---|---|---|
| Test secret key | sk_test_ | Development, staging, CI |
| Live secret key | sk_live_ | Production only |
Authenticating requests
Every API request requires your key in theAuthorization header:
Key rotation
Rotate keys from the dashboard. Issuing a new key doesn’t invalidate the old one until you explicitly revoke it — giving you time to update your deployment. To revoke via API:DELETE /v1/tenant/api-keys/{key_id}.