/workflows/{workflow_id}/runRun Workflow by ID
Available 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.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
7 documented failures
bad_requestCannot use draft workflow version. Workflow ID: 7c3e33d4-2a8b-4e5f-9b1a-d3c6e8f12345. Please use a published workflow version or leave workflow_id empty.
bad_request
completion_request_errorCompletion request failed.
completion_request_error
invalid_paramArg user must be provided.
invalid_param
model_currently_not_supportDify Hosted OpenAI trial currently not support the GPT-4 model.
model_currently_not_support
not_workflow_appPlease check if your app mode matches the right API route.
not_workflow_app
provider_not_initializeNo valid model provider credentials found. Please go to Settings -> Model Provider to complete your provider credentials.
provider_not_initialize
provider_quota_exceededYour quota for Dify Hosted OpenAI has been exhausted. Please go to Settings -> Model Provider to complete your own provider credentials.
provider_quota_exceeded
2 documented failures
trigger_workflow_service_mode_unavailableThis workflow uses a trigger entry and cannot be invoked through Web App, Service API, OpenAPI, or MCP.
trigger_workflow_service_mode_unavailable
workflow_version_execution_not_allowedWorkflow version execution is not available on your current plan. Please upgrade to a paid plan.
workflow_version_execution_not_allowed
One documented failure
not_foundWorkflow not found with id: 7c3e33d4-2a8b-4e5f-9b1a-d3c6e8f12345
not_found
2 documented failures
rate_limit_errorWorkflow execution quota limit reached for tenant 8f1e2a90-3b7c-4d55-9a01-6c2f4e8b1d33
rate_limit_error
too_many_requestsToo many requests. Please try again later.
too_many_requests
One documented failure
internal_server_errorInternal Server Error.
internal_server_error
A 400 is returned: - not_workflow_app : App mode does not match the API route.
bad_request: Workflow is a draft or has an invalid ID format.provider_not_initialize: No valid model provider credentials found.provider_quota_exceeded: Model provider quota exhausted.model_currently_not_support: Current model unavailable.completion_request_error: Workflow execution request failed.invalid_param: A request parameter is missing or invalid, such as a missinguser. A 403 is returned: -workflow_version_execution_not_allowed: Executing a specific workflow version is not available on the Dify Cloud Sandbox plan.trigger_workflow_service_mode_unavailable: The selected workflow version starts from a trigger node, so it runs only from its trigger events. Only the selected version is checked, so a version that starts from a User Input node can still be run by ID. A 404 is returned:not_found: Workflow not found. A 429 is returned: -too_many_requests: Too many concurrent requests for this app.rate_limit_error: The Dify Cloud workflow execution quota for this workspace has been reached. A 500 is returned:internal_server_error: Internal server error.