Skip to main content
A secret key gives full API access to your organization. Keep it on your servers only.

Usage

Send it as a Bearer token:
The Node and PHP SDKs take it once, when you create the client:

What it can do

Everything the public API offers, including:
  • create customers
  • create checkout sessions
  • consume credits
  • allocate seats and create proration checkouts
  • cancel and renew subscriptions
  • list plans, subscriptions and invoices

Keep it secret

Never put a secret key in browser code, in an environment variable prefixed NEXT_PUBLIC_, or in any file that is bundled for the browser.

Creating and rotating keys

In the dashboard, go to Developers → API Keys. A key is shown once, when it is created, so store it right away. If you lose one, create a new key and revoke the old one.