/workflows/runRun 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.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
6 documented failures
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
One documented failure
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
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.
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 missinguseror an unpublished workflow. A 403 is returned:trigger_workflow_service_mode_unavailable: The workflow starts from a trigger node, so it runs only from its trigger events. Only workflows that start from a User Input node can be run through the API. 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.