API Keys
Manage sandbox and production keys, scope them to specific resources, and rotate without downtime.
Overview
Every request is attributed to a single API key. Keys are environment-scoped (sandbox or live), can be permission-scoped, and cannot be viewed a second time after creation.
API keys
Create keyProduction server
sk_live_••••••••••••4a2f
Web checkout
sk_live_••••••••••••4a2f
Analytics reader
sk_live_••••••••••••4a2f
Local dev
sk_test_••••••••••••b19c
Illustrative preview — actual keys are managed in the dashboard.
Creating a key
- 1Open Developers → API KeysChoose the environment (sandbox or live).
- 2Name the keyUse a name that describes the workload (e.g. `checkout-web`, `payroll-worker`).
- 3Pick a scopeFull access, publishable, or restricted with a granular permission set.
- 4Copy the secretThe full value is shown once and stored hashed on our side.
Scopes
| Field | Type | Description |
|---|---|---|
payments:read | restricted | List and retrieve payments. |
payments:write | restricted | Create, capture, refund, cancel. |
customers:* | restricted | All customer operations. |
wallets:read | restricted | Read balances and ledger. |
withdrawals:write | restricted | Initiate payouts. |
* | full | Everything — reserve for trusted backends. |
Rotate & revoke
Rotating issues a new secret with the same scope. The previous key stays valid for 24 hours to give clients time to redeploy. Revocation is immediate.
Usage & activity
- Every key exposes request volume, error rate, and top endpoints for the last 30 days.
- The audit log records key.created, key.rotated, key.revoked, key.used_from_new_ip.
- Configure alerts to fire when a live key is used from a new IP for the first time.
