Workflow Runs
Run Workflow
Changed onAvailable 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.
post/workflows/run
Request
- Base URLhttps://api.dify.ai/v1
- URLhttps://api.dify.ai/v1/workflows/run
- AuthHTTP bearer
Request body
Workflow Execution Request required(unresolved $ref)
Response
Successful response. The content type and structure depend on the response_mode parameter in the request.
- If response_mode is blocking, returns application/json with a WorkflowBlockingResponse object.
- If response_mode is streaming, returns text/event-stream with a stream of ChunkWorkflowEvent objects.
Changes
- info
added the non-success response with the status
- info