API Keys
Authenticate all API requests with your secret API key in theAuthorization
header as a Bearer token:
rsk_test_… or rsk_live_…. The demo dataset ships with the fixed test key
sk_test_12345 for local exploration.
Test vs. live keys
Every key is either a test key (rsk_test_…) or a live key
(rsk_live_…). A new account starts with a test key.
A key’s mode must match the server’s payment configuration, reported at
GET /version as gateway_mode:
Generate a key
- Go to Settings → API Keys in your dashboard
- Click Create API Key and choose Test or Live
- Copy and store it securely — the full key is shown only once
test:
Usage
Pass your API key in theAuthorization header as a Bearer token:
Idempotency-Key header so retries never
duplicate work — see Idempotency.
Scoped Keys (Coming Soon)
Create keys with limited permissions via the dashboard or API.Security Best Practices
Environment Variables
Store keys in environment variables, not code
Rotate Regularly
Rotate keys periodically and after breaches
Use Test Keys in Dev
Develop with an
rsk_test_ key against a none/test serverRestrict Permissions
Use scoped keys with minimal permissions (coming soon)
Revoke a Key
If a key is compromised:- Go to Settings → API Keys
- Click Revoke on the compromised key
- Generate a new key
- Update your applications
Revoking a key is immediate and permanent.