Core
Authentication
Learn how to authenticate your API requests with Invaro
The Invaro API uses API keys to authenticate requests. All API requests must be made over HTTPS and include your API key in the Authorization header using Bearer token authentication.
Getting Your API Key
- Sign in to your Invaro Dashboard
- Navigate to Dashboard > API Keys
- Click Generate New API Key
- Copy and securely store your API key
Using Your API Key
Authorization Header
All API requests must include your API key in the Authorization
header using the Bearer scheme:
Example Requests
API Key Best Practices
Security Guidelines
-
Protect Your API Keys
- Never expose API keys in client-side code
- Don’t commit API keys to version control
- Use environment variables or secure secret management systems
- Avoid sharing API keys in public forums or documentation
-
Key Management
- Generate separate API keys for different environments (development, staging, production)
- Implement key rotation policies
- Monitor API key usage through the dashboard
- Delete unused API keys
-
Access Control
- Use the principle of least privilege
- Assign appropriate permissions to each API key
- Regularly audit API key access and usage
Implementation Examples
Error Handling
Authentication Errors
Status Code | Error Code | Description |
---|---|---|
401 | UNAUTHORIZED | Invalid or missing API key |
403 | FORBIDDEN | API key lacks required permissions |
Example Error Response
Rate Limiting
Each API key has its own rate limits. When exceeded, you’ll receive a 429 Too Many Requests
response. See our Rate Limits page for detailed information about:
- Default rate limits
- Rate limit headers
- Handling rate limit errors
- Best practices for staying within limits
Support
If you encounter any authentication issues:
- Verify your API key is valid and active in the dashboard
- Check our Error Handling Guide
- Contact support@invaro.ai for assistance