Authentication
The Covered API uses API keys to authenticate requests. You can create and manage API keys from your Covered Dashboard.Creating an API key
- Go to Settings → API Keys in your dashboard
- Click Create API Key
- Give your key a descriptive name (e.g., “Production”, “Staging”, “ERP Integration”)
- Copy the key immediately - it won’t be shown again
Using your API key
Include your API key in theAuthorization header of every request:
API key format
All Covered API keys start with the prefixcov_:
Rate limits
API requests are rate limited to 100 requests per minute per API key. Rate limit information is included in response headers:| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests allowed per window |
X-RateLimit-Remaining | Requests remaining in current window |
X-RateLimit-Reset | Unix timestamp when the window resets |
429 Too Many Requests response:
Authentication errors
| Status Code | Error Code | Description |
|---|---|---|
| 401 | MISSING_API_KEY | No API key provided in the Authorization header |
| 401 | INVALID_API_KEY | The API key is invalid or revoked |
| 401 | API_KEY_EXPIRED | The API key has expired |
| 429 | RATE_LIMITED | Too many requests |
Security best practices
Use environment variables
Use environment variables
Store API keys in environment variables, not in code:
Rotate keys regularly
Rotate keys regularly
Create new keys and revoke old ones periodically, especially if you suspect a key may have been compromised.
Use separate keys for environments
Use separate keys for environments
Create different API keys for development, staging, and production environments.
Monitor API key usage
Monitor API key usage
Check the dashboard regularly to monitor request volume and detect unusual activity.
