For the complete documentation index, see llms.txt. This page is also available as Markdown.

Authentication

Getting Started

Follow these steps to get your API key and start making requests to Alpha Lenz API.

Step 1: Create an Account

  1. Verify your email address

  2. Log in to your dashboard

Step 2: Generate Your API Key

  1. Navigate to Settings > API Keys in your dashboard

  2. Click the "Create New API Key" button

  3. Give your API key a descriptive name (e.g., "My Production Key")

  4. 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:

  1. Go to Settings > API Keys

  2. Find the key you want to revoke

  3. Click the "Revoke" button

  4. 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 allowed

  • rate_period: Time period in seconds (60-86400)

If you need higher limits, please contact us via chatbot.

Last updated