Get your API key from cerevox.ai/lexa - it’s free to start.
All Authentication Methods
- Environment Variable (Recommended)
- Direct in Code
- .env File
- Configuration File
Best for: Production applications and general use
Most secure method - keeps keys out of your code
Test Your Authentication
Copy and run this to verify your setup works:Direct API Usage
Using the REST API directly? Include your API key in the Authorization header:Common Issues & Solutions
Invalid API Key
Invalid API Key
Error:
Authentication failed or Invalid API keyQuick fixes:API Key Not Found
API Key Not Found
Error:
No API key providedQuick fixes:Connection Issues
Connection Issues
Error:
Connection timeout or network errorsQuick fixes:Permission Denied
Permission Denied
Error:
Insufficient permissions or Access deniedQuick fixes:- Check your account status at cerevox.ai/lexa
- Verify your plan includes the features you’re using
- Check if you’ve hit rate limits (wait a minute and retry)
- Contact support@cerevox.ai if issues persist
Security Best Practices
Use Environment Variables
Keep API keys out of your code with environment variables
Rotate Keys Regularly
Generate new keys every 90 days for enhanced security
Monitor Usage
Watch for unusual API usage patterns in your dashboard
Least Privilege
Use API keys with only the permissions you need
Production Setup Examples
- Docker
- GitHub Actions
- Kubernetes
Ready to parse? Head to the quickstart guide to make your first API call, or check out code examples.

