Skip to content
ChainPesaDocsTest mode
Dashboard

Get started

Authentication

Bearer keys, scopes and IP allow-lists.

Send your secret key as a bearer token on every request.

Header
Authorization: Bearer cp_test_xxxxxxxxxxxxxxxx

Scopes

Give each key only what it needs. A request outside its scopes returns 403 forbidden.

ScopeAllows
wallet:readRead balances
payments:readList and read payments
payments:writeCreate payments
payouts:writeCreate 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.