Skip to content

Authentication ​

Every request must be authenticated with your secret key in the X-Api header.

X-Api: sk_test_xxxxxxxxxxxxxxxx

Requests over plain HTTP, or without a valid key, fail with 401 Unauthorized.

Environments ​

EnvironmentKeyMoney moves?
Testsk_test_...No; safe for development
Livesk_live_...Yes; production only

Managing keys ​

View and reset keys in the Dashboard. See API Keys.

  • Rotate keys periodically.
  • Revoke at once if a key may be compromised: reset and redeploy.

Security best practices ​

  1. Server-side only: never embed secret keys in JavaScript, HTML or mobile apps.
  2. Environment variables: keep keys in env vars or a secrets vault.
  3. No public exposure: never commit keys. If one leaks, revoke it immediately.

Rexel Limited