Skip to main content
Send your secret key in the X-Suby-Api-Key header on every request.

Keys

Generate keys in dashboard settings. A key is shown once · store it in a secret manager, never in client-side code or a repo. The environment comes from the prefix · there is no environment header. LIVE and sandbox data are isolated.
Treat sk_live_… like a password. If it leaks, rotate it from the dashboard. Suby will never ask you for it.

Sandbox

  • Cards · test numbers, e.g. 4242 4242 4242 4242.
  • Crypto · Base Sepolia only (chainId 84532). Auto-selected if you specify nothing.
  • Refunds · skip the provider, mark the payment REFUNDED directly.
  • Saving a card · a setup session with the test card stores a pi_… you can then debit off-session.
  • Webhooks · fire normally.

Failures

401 on a missing or invalid key, 429 when rate-limited (per key · back off and retry).