Authentication
Learn how to authenticate with the Limitry API
All Limitry API requests require authentication using a Project API Key.
Getting Your API Key
- Log in to the Limitry Dashboard
- Navigate to your project settings
- Copy your API key from the "API Keys" section
Using Your API Key
Include your API key in the Authorization header:
Authorization: Bearer lm_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxWith the SDK
import { Client } from '@limitry/sdk';
const client = new Client({
apiKey: 'lm_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
});from limitry import Client
client = Client(api_key="lm_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")Security Best Practices
- Never commit API keys to version control
- Use environment variables to store keys
- Rotate keys regularly
- Use different keys for different environments
Environment Variables
const client = new Client({
apiKey: process.env.LIMITRY_API_KEY!,
});import os
from limitry import Client
client = Client(api_key=os.getenv("LIMITRY_API_KEY"))