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
1
Login to Dashboard
Navigate to app.60db.ai and log in
2
Access API Keys
Go to Settings → Developer → API Keys
3
Create Key
Click “Create API Key” and provide a descriptive name
4
Store Securely
Copy and store your API key in a secure location
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:Rate limit headers are included in every API response: -
X-RateLimit-Limit:
Maximum requests allowed - X-RateLimit-Remaining: Remaining requests in
current window - X-RateLimit-Reset: Time when the rate limit resetsError Handling
When authentication fails, you’ll receive a401 Unauthorized response: