Workflow Runs
Run Workflow by ID
Changed onAvailable for: Workflow apps.
Run a specific published workflow version, identified by the workflow_id in the path. Request body, response, and streaming behavior match Run Workflow; only the executed version differs.
post/workflows/{workflow_id}/run
Request
- Base URLhttps://api.dify.ai/v1
- URLhttps://api.dify.ai/v1/workflows/{workflow_id}/run
- AuthHTTP bearer
Path parameters
workflow_idstring required
Published workflow version to run. Returned in the workflow_id field of Run Workflow responses and Get Workflow Run Detail. Must reference a published version; a draft version ID is rejected with bad_request.
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