API Key Management
Your API key is the credential that authenticates your requests to the Lightning Enable API. This guide covers everything you need to know about API keys: how they work, where to find them, how to manage them, and security best practices.
Understanding API Keys
What Is Your API Key?
Your Lightning Enable API key is a unique, randomly-generated credential that:
- Identifies your merchant account to the Lightning Enable API
- Authenticates all your API requests via the
X-API-Keyheader - Provides access to create invoices, check payment status, and manage your integration
Example API key format:
FwZ7CQh+733nQgKNwOJj3gT1r0eQBJvHPMH/HHRhhkc=
API Key vs Provider API Key
You have two different keys - don't confuse them:
| Key | Purpose | Source | Used By |
|---|---|---|---|
| Lightning Enable API Key | Authenticate to Lightning Enable | Generated at signup | Your application → Lightning Enable |
| Provider API Key (Strike or OpenNode) | Connect Lightning Enable to your payment provider | From your provider dashboard | Lightning Enable → Strike or OpenNode |
Your App Lightning Enable Strike or OpenNode
│ │ │
│ X-API-Key: abc123... │ │
├─────────────────────────────►│ │
│ (Lightning Enable API Key) │ │
│ │ Authorization: xyz789... │
│ ├─────────────────────────►│
│ │ (Provider API Key) │
Getting Your API Key
At Signup
When you complete your subscription checkout:
- Stripe processes your payment
- Lightning Enable generates your API key
- Success page displays your key with copy button
- Welcome email contains your key as a backup
Save Your Key Immediately
The success page is the primary place to copy your key. Save it to a secure location (password manager, environment variables, secret manager) before navigating away.
Welcome Email
Your welcome email includes your API key:
Subject: Welcome to Lightning Enable!
Your Lightning Enable API key: