Doclo Cloud uses API keys for authentication. This guide covers key management, security best practices, and error handling.Documentation Index
Fetch the complete documentation index at: https://docs.doclo.ai/llms.txt
Use this file to discover all available pages before exploring further.
API Key Format
Doclo API keys follow this format:| Prefix | Environment | Usage |
|---|---|---|
dc_live_ | Production | Real documents, billing enabled |
dc_test_ | Testing | Test data, no billing |
dc_live_org123_abcdefghijklmnopqrstuvwxyz123456
Getting API Keys
- Log in to app.doclo.ai
- Navigate to Settings → API Keys
- Click Create API Key
- Name your key (e.g., “Production Server”, “Development”)
- Copy and securely store the key
Using API Keys
With the SDK
With REST API
Include the key in theAuthorization header:
Test vs Production Keys
Test Keys (dc_test_)
- Safe for development and testing
- Can connect to
localhostand private IPs - No billing charges
- Rate limits may be lower
Production Keys (dc_live_)
- For production workloads
- Cannot connect to localhost (SSRF protection)
- Billing enabled
- Full rate limits
Key Security
Do
- Store keys in environment variables
- Use secret management services (AWS Secrets Manager, Vault, etc.)
- Rotate keys periodically
- Use separate keys for different environments
- Revoke unused keys
Don’t
- Commit keys to version control
- Log API keys
- Share keys between applications
- Use production keys in development
Environment Variables
Key Rotation
Rotate keys periodically to limit exposure:- Create a new API key
- Update your application to use the new key
- Deploy the update
- Revoke the old key
Rate Limits
API requests are rate limited per organization:| Plan | Requests/minute | Concurrent executions |
|---|---|---|
| Free | 60 | 5 |
| Pro | 300 | 20 |
| Enterprise | Custom | Custom |
Handling Rate Limits
Authentication Errors
| Error Code | HTTP Status | Description |
|---|---|---|
INVALID_API_KEY | 401 | Key format invalid or not found |
API_KEY_REVOKED | 401 | Key has been revoked |
API_KEY_EXPIRED | 401 | Key has expired |
INSUFFICIENT_SCOPE | 403 | Key lacks required permissions |
IP Allowlisting
For enhanced security, restrict API access to specific IP addresses:- Go to Settings → Security in the dashboard
- Enable IP allowlisting
- Add your server IP addresses
Next Steps
Cloud Quickstart
Get started with Doclo Cloud
REST API Reference
Direct API documentation