Authentication
Learn how to authenticate with the Lia API using API keys - generation, security best practices, and troubleshooting.
API Key Authentication
curl https://api.acolad.ai/whoami \
-H "x-api-key: YOUR_API_KEY"Generating API Keys
QuickstartSecurity Best Practices
Keep Keys Secret
// ❌ Bad - Exposed in client-side code
const apiKey = 'lia_sk_abc123...';
// ✅ Good - Use environment variables
const apiKey = process.env.LIA_API_KEY;Rotate Keys Regularly
1
2
3
4
Use Descriptive Key Names
Limit Key Scope
Use Scoped Permissions
Set Expiration Dates
Example Requests
Troubleshooting
Missing API Key
Invalid API Key
Expired API Key
Insufficient Permissions
Key Management
Workspace Scope
Team Access
Key Deletion
Last updated
Was this helpful?