Run Workflow
Available for: Workflow apps.
Run the app’s published workflow and return its outputs, either in a single blocking response or as a streaming Server-Sent Events feed. Requires a published workflow.
Authorization
Body
application/jsonid as upload_file_id with transfer_method: local_file.Key-value pairs for workflow input variables. Discover the variable names and types your app expects from the user_input_form field of Get App Parameters.
File-type variables take an array of file objects with type, transfer_method, and either url or upload_file_id.
blocking for synchronous responses (Cloudflare timeout is 100 s), or streaming for Server-Sent Events. When omitted, defaults to blocking behavior.streamingblockinguser. See End User Identity.Responses
Successful response. The content type and structure depend on the response_mode parameter in the request.
- If
response_modeisblocking, returnsapplication/jsonwith aWorkflowBlockingResponseobject. - If
response_modeisstreaming, returnstext/event-streamwith a stream ofChunkWorkflowEventobjects.