Get started
Authentication
Bearer keys, scopes and IP allow-lists.
Send your secret key as a bearer token on every request.
Authorization: Bearer cp_test_xxxxxxxxxxxxxxxxScopes
Give each key only what it needs. A request outside its scopes returns 403 forbidden.
| Scope | Allows |
|---|---|
wallet:read | Read balances |
payments:read | List and read payments |
payments:write | Create payments |
payouts:write | Create and read payouts, list banks, verify accounts |
IP allow-list
A key can be limited to the addresses of your servers. A request from anywhere else is refused as 401 unauthorized.
Keeping keys safe
- Use keys from your server only. Never put one in a web page or a mobile app.
- Use one key per system, so you can revoke one without stopping the rest.
- Revoke a key from the dashboard the moment you suspect it has leaked. It stops working immediately.
Live keys are not accepted yet: they return 403 live_disabled. See Going live.