Skip to main content
The Doclo Cloud API provides programmatic access to document processing flows. Use the REST API directly when building integrations with platforms like n8n, Zapier, or custom backends.
For TypeScript/JavaScript applications, the @doclo/client SDK provides a better developer experience with type safety and automatic retries.

Base URL

All API endpoints are prefixed with /api/v1. Use HTTPS for all requests.

Authentication

Include your API key in the Authorization header:
See Authentication for details on API key formats and scopes.

Request Format

All request bodies must be JSON with the Content-Type: application/json header:

Response Format

All responses are JSON. Successful responses include the requested data:
Error responses include an error object:
See Errors for all error codes.

Rate Limiting

API requests are rate-limited per organization. Rate limit information is included in response headers: When rate limited, you’ll receive a 429 Too Many Requests response. Implement exponential backoff for retries.

Credits

Document processing consumes credits based on page count and flow complexity. Credit information is included in execution responses:
If you have insufficient credits, you’ll receive a 402 Payment Required response.

Endpoints

Flows

Executions

Sync vs Async Execution

By default, flow execution is asynchronous. The API returns immediately with an execution ID, and you poll for results:
For faster documents, use synchronous execution with wait: true:
Sync execution has a maximum timeout of 60 seconds. For longer documents, use async execution with polling or webhooks.

Webhooks

Instead of polling, configure a webhook to receive results:
The webhook receives a POST request with the execution result. Verify the X-Doclo-Signature header using HMAC-SHA256. See Webhooks for implementation details.

Idempotency

Include an idempotencyKey to safely retry requests:
Requests with the same idempotency key return the same execution ID within 24 hours, preventing duplicate processing.

Next Steps

Authentication

API keys and scopes

Run Flow

Execute document processing