The Doclo API uses Bearer token authentication. Include your API key in theDocumentation Index
Fetch the complete documentation index at: https://docs.doclo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header of every request.
Authorization Header
API Key Format
API keys have a prefix indicating their environment:| Prefix | Environment | Description |
|---|---|---|
dc_live_ | Production | Real document processing, uses credits |
dc_test_ | Test | For development, limited functionality |
Scopes
API keys are assigned scopes that control access to specific endpoints:| Scope | Endpoints | Description |
|---|---|---|
flows:read | GET /flows, GET /flows/ | List and view flow definitions |
flows:execute | POST /flows//run | Execute flows |
executions:read | GET /runs/ | View execution status and results |
executions:cancel | POST /runs//cancel | Cancel running executions |
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
| Key Type | Requests/minute | Concurrent executions |
|---|---|---|
| Test | 60 | 2 |
| Live (Free) | 100 | 5 |
| Live (Pro) | 1000 | 50 |
| Live (Enterprise) | Custom | Custom |
Next Steps
Errors
Error codes reference
Run Flow
Execute your first flow