Execute a workflow
Launches a new execution of the workflow's current published version. The workflow must use a manual trigger and be published and enabled, and the caller's role must have permission to run it. The request body must be empty: manual workflow executions accept no input parameters. Executions are not idempotent: every successful call starts a real execution with real side effects (messages, callbacks), and a duplicate request starts a second execution. Do not retry automatically; check an execution's status with GET /workflows/{id}/executions/{execution_id} instead.
Required Scopes
- workflow-executions.read-write
Request
Path Parameters
The workflow's id.
Responses
- 201
- 400
- 401
- 403
- 404
- 409
Successful response
- application/json
- Schema
- Example (from schema)
Schema
pending: The execution is queued and has not started.in_progress: The workflow is executing.waiting_for_response: The execution is paused on a human input or approval step.cancellation_pending: A cancellation was requested and is being applied.completed: Every step finished successfully.failed: The execution stopped on an error.cancelled: The execution was cancelled before completing.unknown: The status could not be mapped. Contact support if this persists.
Unique identifier for this workflow execution. Poll it with GET /workflows/{id}/executions/{execution_id}.
The ID of the workflow this execution belongs to. Matches the {id} path parameter.
ID of the workflow version that actually ran. Later updates to the workflow do not change this value; its current version may differ.
The execution status. Transitional values are pending, in_progress, waiting_for_response, and cancellation_pending; terminal values are completed, failed, and cancelled. Poll until the status reaches a terminal value.
When the workflow was launched, in UTC (ISO 8601).
{
"id": "string",
"workflow_id": "string",
"version_id": "string",
"status": "pending",
"created_at": "string"
}
The workflow execution request failed.
- application/json
- Schema
- Example (from schema)
Schema
Operation-specific failure: VALIDATION_ERROR (400) means invalid inputs; correct field_errors. WORKFLOW_NOT_FOUND (404) means the workflow is missing, inaccessible, or cannot be run by this caller; verify the ID and permissions. WORKFLOW_STATE_CONFLICT (409) means the workflow is not published and enabled or no execution was returned; retrieve and review its state. WORKFLOW_EXECUTION_UNSUPPORTED_TRIGGER (400) means only a manual trigger can be launched here; use the configured trigger for other workflows. WORKFLOW_EXECUTION_NOT_FOUND (404) means the execution is missing or inaccessible, is a test run, or belongs to another workflow; verify both path IDs.
Human-readable explanation of the execution request failure. Use code for programmatic handling.
field_errors object[]
Dot-separated request field path; root identifies a validation error spanning multiple fields.
Machine-readable validation code for this field.
Human-readable explanation of the field validation failure.
{
"code": "VALIDATION_ERROR",
"message": "string",
"field_errors": [
{
"field": "string",
"code": "string",
"message": "string"
}
]
}
Authentication is required or the supplied credentials are invalid.
- application/json
- Schema
- Example (from schema)
Schema
Matches one or more of these formats:
- Format 1ok booleanrequired
Whether the request succeeded. Always false for an authentication error.
Possible values: [false]error stringrequiredA human-readable explanation of why authentication failed.
- Format 2detail stringrequired
A human-readable explanation of the authentication error.
- Format 1
{
"ok": false,
"error": "Incorrect authentication credentials."
}
{
"detail": "string"
}
The workflow execution request failed.
- application/json
- Schema
- Example (from schema)
Schema
Operation-specific failure: VALIDATION_ERROR (400) means invalid inputs; correct field_errors. WORKFLOW_NOT_FOUND (404) means the workflow is missing, inaccessible, or cannot be run by this caller; verify the ID and permissions. WORKFLOW_STATE_CONFLICT (409) means the workflow is not published and enabled or no execution was returned; retrieve and review its state. WORKFLOW_EXECUTION_UNSUPPORTED_TRIGGER (400) means only a manual trigger can be launched here; use the configured trigger for other workflows. WORKFLOW_EXECUTION_NOT_FOUND (404) means the execution is missing or inaccessible, is a test run, or belongs to another workflow; verify both path IDs.
Human-readable explanation of the execution request failure. Use code for programmatic handling.
field_errors object[]
Dot-separated request field path; root identifies a validation error spanning multiple fields.
Machine-readable validation code for this field.
Human-readable explanation of the field validation failure.
{
"code": "VALIDATION_ERROR",
"message": "string",
"field_errors": [
{
"field": "string",
"code": "string",
"message": "string"
}
]
}
The workflow execution request failed.
- application/json
- Schema
- Example (from schema)
Schema
Operation-specific failure: VALIDATION_ERROR (400) means invalid inputs; correct field_errors. WORKFLOW_NOT_FOUND (404) means the workflow is missing, inaccessible, or cannot be run by this caller; verify the ID and permissions. WORKFLOW_STATE_CONFLICT (409) means the workflow is not published and enabled or no execution was returned; retrieve and review its state. WORKFLOW_EXECUTION_UNSUPPORTED_TRIGGER (400) means only a manual trigger can be launched here; use the configured trigger for other workflows. WORKFLOW_EXECUTION_NOT_FOUND (404) means the execution is missing or inaccessible, is a test run, or belongs to another workflow; verify both path IDs.
Human-readable explanation of the execution request failure. Use code for programmatic handling.
field_errors object[]
Dot-separated request field path; root identifies a validation error spanning multiple fields.
Machine-readable validation code for this field.
Human-readable explanation of the field validation failure.
{
"code": "VALIDATION_ERROR",
"message": "string",
"field_errors": [
{
"field": "string",
"code": "string",
"message": "string"
}
]
}
The workflow execution request failed.
- application/json
- Schema
- Example (from schema)
Schema
Operation-specific failure: VALIDATION_ERROR (400) means invalid inputs; correct field_errors. WORKFLOW_NOT_FOUND (404) means the workflow is missing, inaccessible, or cannot be run by this caller; verify the ID and permissions. WORKFLOW_STATE_CONFLICT (409) means the workflow is not published and enabled or no execution was returned; retrieve and review its state. WORKFLOW_EXECUTION_UNSUPPORTED_TRIGGER (400) means only a manual trigger can be launched here; use the configured trigger for other workflows. WORKFLOW_EXECUTION_NOT_FOUND (404) means the execution is missing or inaccessible, is a test run, or belongs to another workflow; verify both path IDs.
Human-readable explanation of the execution request failure. Use code for programmatic handling.
field_errors object[]
Dot-separated request field path; root identifies a validation error spanning multiple fields.
Machine-readable validation code for this field.
Human-readable explanation of the field validation failure.
{
"code": "VALIDATION_ERROR",
"message": "string",
"field_errors": [
{
"field": "string",
"code": "string",
"message": "string"
}
]
}