API Key Authentication
60db uses API key authentication to secure all API requests. Your API key should be included in theAuthorization header of every request.
Getting Your API Key
Login to Dashboard
Navigate to app.60db.com and log in
Using Your API Key
With SDKs
- JavaScript/TypeScript
- Python
Direct API Calls
If you’re making direct HTTP requests, include your API key in theAuthorization header:
Security Best Practices
Environment Variables
Store your API key in environment variables:- Node.js
- Python
Create a Use it in your code:
.env file:Key Rotation
Regularly rotate your API keys for enhanced security:- Create a new API key
- Update your application to use the new key
- Test that everything works correctly
- Delete the old API key
Rate Limiting
API requests are rate-limited based on your subscription plan:| Plan | Requests per Minute | Requests per Day |
|---|---|---|
| Free | 10 | 1,000 |
| Starter | 60 | 10,000 |
| Pro | 300 | 100,000 |
| Enterprise | Custom | Custom |
Rate limit headers are included in every API response:
X-RateLimit-Limit: Maximum requests allowedX-RateLimit-Remaining: Remaining requests in current windowX-RateLimit-Reset: Time when the rate limit resets
Error Handling
When authentication fails, you’ll receive a401 Unauthorized response:
| Status Code | Error | Description |
|---|---|---|
| 401 | Unauthorized | Invalid or missing API key |
| 403 | Forbidden | API key doesn’t have required permissions |
| 429 | Too Many Requests | Rate limit exceeded |