Run Flow
Execute a flow with uploaded files
Executes a flow by uploading files and triggering the configured workflow steps.
Usage Notes
- Files are uploaded as multipart/form-data
- File field names must match the flow’s configuration
- Required files must be provided or the request will fail
- The flow executes asynchronously - use the returned ID to check status
- Use metadata to include custom data that will be preserved in the flow run
Request
The ID of the flow to run
File to upload. The field name should match the key
defined in the flow’s file_input_config.file_fields
JSON string containing metadata for a specific file. Use the format {file_key}_metadata
where {file_key}
matches the file field key.
JSON string containing metadata for the entire flow run. This metadata will be included in all flow run responses and webhooks.
Response
The unique identifier for the flow run
The ID of the flow being executed
The workspace ID
Current status of the flow run: processing, review, completed, or failed
History of status changes
Error message if the flow run failed
Custom metadata provided when running the flow
How the flow was triggered: api or manual
Unix timestamp when the flow run started
Unix timestamp when the flow run completed
Duration of the flow run in milliseconds
Unix timestamp when the flow run was created
Unix timestamp when the flow run was last updated