Authentication

Authentication #

Learn how to authenticate with the LLMITE API.

API Keys #

LLMITE uses API keys for authentication. You can manage your API keys from the dashboard.

Getting Your API Key #

  1. Log in to your LLMITE dashboard
  2. Navigate to “Settings” → “API Keys”
  3. Click “Generate New Key”
  4. Copy and securely store your key
**Security Notice** Never share your API keys publicly or commit them to version control. Store them securely as environment variables.

Using API Keys #

Include your API key in the Authorization header:

1
2
curl -H "Authorization: Bearer sk-1234567890abcdef" \
     https://api.llmite.com/v1/projects

Authentication Methods #

1
Authorization: Bearer YOUR_API_KEY
1
GET /projects?api_key=YOUR_API_KEY
**Warning** Using API keys in query parameters is not recommended as they may be logged by servers and proxies.

Environment Variables #

Store your API key as an environment variable:

1
export LLMITE_API_KEY="sk-1234567890abcdef"

Then use it in your applications:

1
2
import os
api_key = os.environ['LLMITE_API_KEY']

Key Management #

Best Practices #

  • Rotate keys regularly (every 90 days recommended)
  • Use different keys for different environments
  • Monitor key usage in the dashboard
  • Revoke unused or compromised keys immediately

Key Scopes #

API keys can have different scopes:

  • Read Only - Can only read data
  • Read/Write - Can read and modify data
  • Admin - Full access to account features

Revoking Keys #

To revoke an API key:

  1. Go to “Settings” → “API Keys”
  2. Find the key you want to revoke
  3. Click “Revoke”
  4. Confirm the action
**Note** Revoking a key will immediately disable all applications using that key.