Skip to main content
Learn how to execute document processing flows on Doclo Cloud, with options for synchronous and asynchronous processing.

Execution Modes

Doclo Cloud supports two execution modes:

Synchronous Execution

Wait for the flow to complete before returning:

Timeout Configuration

If the flow takes longer than the timeout, a TimeoutError is thrown. The execution continues in the background—use runs.get() to check status.

Asynchronous Execution

Start execution and retrieve results later:
Retrieve results using:
  • Polling - check status periodically
  • Webhooks - receive notification when complete

Input Structure

Every flow execution requires a document input:

Supported MIME Types

Flow Variables

Pass variables to customize flow behavior:
Check the flow’s inputSchema for required variables:

Execution Options

Idempotency

Prevent duplicate processing by providing an idempotency key:
If the same key is used within 24 hours, the original execution result is returned instead of starting a new one.

Custom Metadata

Attach metadata to track executions:

Flow Versions

Run a specific flow version:
If omitted, the latest version is used.

Error Handling

Execution Failures

When an execution fails, the error field contains details:
Common error codes:

Next Steps

Polling Results

Check execution status

Webhooks

Receive completion notifications