Authentication
Getting Started
Follow these steps to get your API key and start making requests to Alpha Lenz API.
Step 1: Create an Account
Sign up at https://alpha-lenz.com
Verify your email address
Log in to your dashboard
Step 2: Generate Your API Key
Navigate to Settings > API Keys in your dashboard
Click the "Create New API Key" button
Give your API key a descriptive name (e.g., "My Production Key")
Click "Create"
⚠️ Important: Your API key will only be displayed once. Make sure to copy and save it in a secure location immediately. If you lose it, you'll need to create a new key.
Step 3: Make Your First API Call
Include your API key in the X-API-Key header:
Example Response:
Step 4: Integrate into Your Application
Python Example:
JavaScript Example:
API Key Management
Creating API Keys Programmatically
You can also create API keys programmatically using the API:
Endpoint: POST /api/v1/api-keys
Headers:
Request Body:
Response:
Viewing Your API Keys
Navigate to the API Keys section in your dashboard to:
View all your active API keys (only the prefix is shown for security)
Check when each key was created and last used
See the current status (Active/Revoked)
Monitor usage and rate limits
Revoking API Keys
If your API key is compromised or no longer needed:
Go to Settings > API Keys
Find the key you want to revoke
Click the "Revoke" button
Confirm the action
Revoked keys cannot be restored. You'll need to create a new key if needed.
Rate Limiting
Default: 1,000 requests per hour
Rate limits are enforced per API key. When exceeded:
Custom Rate Limits
You can set custom rate limits when creating an API key:
rate_limit: Number of requests allowedrate_period: Time period in seconds (60-86400)
If you need higher limits, please contact us via chatbot.
Last updated