Authorization header of every request.
Authorization Header
API Key Format
API keys have a prefix indicating their environment:
Get your API keys from the Doclo Dashboard.
Scopes
API keys are assigned scopes that control access to specific endpoints:
A typical integration key includes all scopes:
Authentication Errors
Missing Authorization Header
Authorization: Bearer <api_key> header to your request.
Invalid API Key
Insufficient Scope
Security Best Practices
Environment Variables
Store API keys in environment variables:Key Rotation
Rotate API keys regularly:- Generate a new key in the Dashboard
- Update your application to use the new key
- Verify the new key works
- Revoke the old key
Separate Keys Per Environment
Use different API keys for:- Development (
dc_test_keys) - Staging (production keys with limited scope)
- Production (full access keys)
Monitor Usage
Review API usage in the Dashboard to detect:- Unexpected spikes in requests
- Requests from unknown IP addresses
- Failed authentication attempts
Rate Limits by Key Type
Rate limit headers are included in every response:
Next Steps
Errors
Error codes reference
Run Flow
Execute your first flow