Getting your API key
- Sign in to your Lumenfall dashboard
- Navigate to API Keys
- Click Create API Key
- Copy and securely store your key
Using your API key
Include your API key in theAuthorization header of every request:
Example request
With OpenAI SDK
Since Lumenfall is OpenAI-compatible, configure the SDK with your Lumenfall key:API key format
Lumenfall API keys follow the format:lmnfl_— Prefix identifying Lumenfall keys<key_id>— Unique identifier for the key<secret>— Secret portion of the key
Managing API keys
From your dashboard, you can:- Create new API keys with unique titles
- Revoke keys that are no longer needed or may be compromised
- Delete revoked keys to keep your dashboard clean
- View usage per key to track which applications are consuming your quota
Security best practices
Never commit API keys to version control
Never commit API keys to version control
Use environment variables or secret management tools instead of hardcoding keys in your code.
Use separate keys for different environments
Use separate keys for different environments
Create distinct API keys for development, staging, and production. This makes it easier to rotate keys and track usage.
Rotate keys periodically
Rotate keys periodically
Regularly rotate your API keys, especially for production environments. Revoke old keys after confirming the new ones work.
Revoke compromised keys immediately
Revoke compromised keys immediately
If you suspect a key has been exposed, revoke it immediately from your dashboard and create a new one.