X-Suby-Api-Key header.
API keys
Generate keys from your dashboard settings. Each key is shown once at creation — store it securely (a secret manager, never in client-side code or a public repo).
The environment is inferred from the key prefix — you do not send a separate environment header. LIVE and sandbox data are isolated; a sandbox key never sees LIVE resources and vice-versa.
Sandbox mode
Use ask_sandbox_… key to build and test end-to-end without moving money:
- Card payments use test card numbers (e.g.
4242 4242 4242 4242). - Crypto payments are limited to Base Sepolia (chain ID
84532). If you don’t specify chains/assets, Base Sepolia and its active assets are auto-selected. - Refunds on sandbox card payments skip the provider and mark the payment
REFUNDEDdirectly. - Webhooks fire normally, so you can exercise your handlers.
Errors
Authentication failures return401 with the standard error envelope:
Rate limiting
Requests are rate-limited per API key. If you exceed the limit you receive429 Too Many Requests; back off and retry with exponential delay.
