Overview
Background task mode provides asynchronous execution with two separate endpoints: one to start the flow and another to check its status. This is the recommended approach for most autonomous flows. Benefits:- Maximum execution time: 2700 seconds (45 minutes)
- Suitable for complex, multi-step workflows
- Real-time progress tracking through logs
- Non-blocking API calls
Step 1: Start the Flow
Endpoint
Request Payload
Initial Response
workflow_id returned in this response is used to track the status of the flow execution.
Step 2: Check Status
Endpoint
pending- Flow is still executingcompleted- Flow finished successfullyfailed- Flow encountered an error
Status Response: Pending
While the flow is executing, the status endpoint returns real-time logs:The
logsarray provides real-time insights into the flow execution progress. The array size is not fixed and it does not return all execution logs, only the most recent entries, typically the last 4–5 logs.Status Response: Completed
When the flow finishes successfully:response object contains the workflow_id and all session variables that were set during flow execution.