API keys
Swichi Payments keys are separate from messages keys, with scopes, an IP allow list and their own limits.
Swichi Payments has its own keys. Make them on Swichi Gateway → Developers → API keys in your
Swichi dashboard. Keys of other products do not work here: the wrong kind of key is refused with
key_product_mismatch.
Sandbox and live
- Sandbox keys reach only your sandbox: test money, magic numbers, nothing real moves. Your sandbox is there from the moment you sign up; press Get my sandbox key. See Sandbox.
- Live keys are free and move real money. You make them with Test mode off, once your business is verified. See Go live.
Sandbox and live never share an id, a key or a wallet.
Scopes, IP allow list and limits
Give each key only what it needs:
- Scopes:
collections,payouts,transfersandread. A request outside the key's scopes getsmissing_scope. - An IP allow list: requests from other addresses get
ip_not_allowed. - Its own limits, which can only be tighter than your business's
(
key_limit_exceeded).
Send the key
Authorization: Bearer YOUR_SANDBOX_KEYKeep every key on your server. Never put one in a mobile app or a web page.