Skip to main content
The Doclo API uses Bearer token authentication. Include your API key in the Authorization header of every request.

Authorization Header

Example request:

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:
For read-only access (e.g., dashboards), create a key with only:

Authentication Errors

Missing Authorization Header

Status: 401 Unauthorized Fix: Add the Authorization: Bearer <api_key> header to your request.

Invalid API Key

Status: 401 Unauthorized Fix: Verify your API key is correct and hasn’t been revoked.

Insufficient Scope

Status: 403 Forbidden Fix: Generate a new API key with the required scopes.

Security Best Practices

Never expose API keys in client-side code, public repositories, or browser applications. API keys should only be used in server-side code.

Environment Variables

Store API keys in environment variables:

Key Rotation

Rotate API keys regularly:
  1. Generate a new key in the Dashboard
  2. Update your application to use the new key
  3. Verify the new key works
  4. 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