Build with confidence using fully isolated test data.
Every SatsRail merchant gets two sets of API keys: live and test. Keys prefixed with
sk_test_
and
pk_test_
create resources in a completely isolated test environment.
SatsRail enforces strict separation between test and live data:
| Test Mode | Live Mode | |
|---|---|---|
| Key prefix | sk_test_ / pk_test_ |
sk_live_ / pk_live_ |
| Data access | Only test resources | Only live resources |
| Payment providers | Simulated (no real payments) | Real Lightning / Bitcoin |
| Webhooks | Fired for test events only | Fired for live events only |
This is enforced at the model level via
LiveModeScoped
— test resources never interact with real payment providers, and a test key can never read or modify live data (and vice versa).
sk_test_ secret key and pk_test_ publishable keyTest keys are available immediately — no approval needed.
Use test keys to exercise every part of your integration:
When everything works in test mode, switch to live keys — the API is identical.
Follow the quickstart to get your test keys and make your first API call.
Quickstart Guide →