Appearance
Authentication
Every request must be authenticated with your secret key in the X-Api header.
X-Api: sk_test_xxxxxxxxxxxxxxxxRequests over plain HTTP, or without a valid key, fail with 401 Unauthorized.
Environments
| Environment | Key | Money moves? |
|---|---|---|
| Test | sk_test_... | No; safe for development |
| Live | sk_live_... | Yes; production only |
Managing keys
View and reset keys in the Dashboard. See API Keys.
- Rotate keys periodically.
- Revoke at once if a key may be compromised: reset and redeploy.
Security best practices
- Server-side only: never embed secret keys in JavaScript, HTML or mobile apps.
- Environment variables: keep keys in env vars or a secrets vault.
- No public exposure: never commit keys. If one leaks, revoke it immediately.