API key types
| Key type | Prefix | Environment | Usage |
|---|---|---|---|
| Test secret key | sk_test_ | Sandbox | Development & testing |
| Live secret key | sk_live_ | Production | Real transactions |
| Publishable key | pk_test_ / pk_live_ | Both | Client-side (checkout forms) |
Authenticating requests
Include your secret key in theAuthorization header:
Managing API keys
- Go to Dashboard → Settings → API Keys
- Your keys are displayed (secret keys are partially hidden)
- Click Regenerate to generate new keys
- The old key is immediately revoked
API key scopes
- Each API key now includes explicit scopes.
- Route access is default-deny for API-key auth unless the route is marked with allowed scopes (or explicitly public).
PUBLISHABLEkeys can only receive publishable-safe scopes.
After regenerating a key, update your application immediately. The old key stops working as soon
as the new one is generated.
Sandbox vs Production
The API key prefix determines the environment:sk_test_→ All requests go to the sandbox (no real money)sk_live_→ All requests go to production (real transactions)
https://api.simiz.io/v1/
Best practices
- Use environment variables — Never hardcode API keys
- Restrict key permissions — Use keys with the minimum required permissions
- Rotate keys regularly — Regenerate keys periodically
- Monitor usage — Check the Dashboard for unusual API activity

