Required capabilities:
workflowOrchestrationACL:WRITE
Start an execution of a specific version of a workflow.
Information about the workflow execution
{- "authentication": {
- "nonce": "hOfy4Zop4N2SPRfl"
}, - "input": {
- "key1": "value1",
- "key2": "value2"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}
}{- "id": "059edaa4-a17a-4102-910e-2c3591500cce",
- "workflowExternalId": "string",
- "version": "string",
- "status": "RUNNING",
- "engineExecutionId": "f6159fbb-e5a2-449c-9fd5-75ed6534354c",
- "createdTime": 1730204346000,
- "startTime": 1730204346000,
- "endTime": 1730204346000,
- "reasonForIncompletion": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}Required capabilities:
workflowOrchestrationACL:READ
List workflow executions matching a given filter.
Filtered list of workflow executions
{- "filter": {
- "workflowFilters": [
- {
- "externalId": "string",
- "version": "string"
}
], - "createdTimeStart": 0,
- "createdTimeEnd": 0,
- "status": [
- "RUNNING"
]
}, - "limit": 100,
- "cursor": "4zj0Vy2fo0NtNMb229mI9r1V3YG5NBL752kQz1cKtwo"
}{- "items": [
- {
- "id": "059edaa4-a17a-4102-910e-2c3591500cce",
- "workflowExternalId": "string",
- "version": "string",
- "status": "RUNNING",
- "engineExecutionId": "f6159fbb-e5a2-449c-9fd5-75ed6534354c",
- "createdTime": 1730204346000,
- "startTime": 1730204346000,
- "endTime": 1730204346000,
- "reasonForIncompletion": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
], - "nextCursor": "4zj0Vy2fo0NtNMb229mI9r1V3YG5NBL752kQz1cKtwo"
}Required capabilities:
workflowOrchestrationACL:READ
Retrieve detailed information about a specific workflow execution.
Details of a workflow execution
res = client.workflows.executions.retrieve_detailed("000560bc-9080-4286-b242-a27bb4819253") res = client.workflows.executions.list() res = client.workflows.executions.retrieve_detailed(res[0].id)
{- "id": "059edaa4-a17a-4102-910e-2c3591500cce",
- "workflowExternalId": "string",
- "workflowDefinition": {
- "hash": "string",
- "description": "string",
- "tasks": [
- {
- "externalId": "string",
- "type": "function",
- "name": "string",
- "description": "string",
- "parameters": {
- "function": {
- "externalId": "my.known.id",
- "data": {
- "key1": "value1",
- "key2": "value2"
}
}, - "isAsyncComplete": false
}, - "retries": 3,
- "timeout": 3600,
- "onFailure": "abortWorkflow",
- "dependsOn": [
- {
- "externalId": "my.known.id"
}
]
}
]
}, - "version": "string",
- "status": "RUNNING",
- "engineExecutionId": "f6159fbb-e5a2-449c-9fd5-75ed6534354c",
- "executedTasks": [
- {
- "id": "stringstringstringstringstringstring",
- "externalId": "string",
- "parentTaskExternalId": "string",
- "status": "IN_PROGRESS",
- "taskType": "function",
- "startTime": 1730204346000,
- "endTime": 1730204346000,
- "input": {
- "function": {
- "externalId": "my.known.id",
- "data": {
- "key1": "value1",
- "key2": "value2"
}
}, - "isAsyncComplete": false
}, - "output": {
- "callId": 0,
- "functionId": 0,
- "response": { }
}, - "reasonForIncompletion": "string"
}
], - "input": {
- "key1": "value1",
- "key2": "value2"
}, - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "createdTime": 1730204346000,
- "startTime": 1730204346000,
- "endTime": 1730204346000,
- "reasonForIncompletion": "string"
}Required capabilities:
workflowOrchestrationACL:WRITE
Stops the specified execution from starting new workflow tasks and sets the workflow execution status to TERMINATED. Already running tasks will be marked as CANCELED. Note that the actions taken by the canceled tasks won't be stopped, and these need to be canceled separately if desired. For example, to cancel a running transformation, use the /transformations/cancel endpoint.
Updated workflow execution
The response for a failed request.
{- "reason": "cancelled"
}{- "id": "059edaa4-a17a-4102-910e-2c3591500cce",
- "workflowExternalId": "string",
- "version": "string",
- "status": "RUNNING",
- "engineExecutionId": "f6159fbb-e5a2-449c-9fd5-75ed6534354c",
- "createdTime": 1730204346000,
- "startTime": 1730204346000,
- "endTime": 1730204346000,
- "reasonForIncompletion": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}Required capabilities:
workflowOrchestrationACL:WRITE
This endpoint restarts a previously failed, timed out, or terminated workflow execution by retrying tasks that did not complete successfully. It aims to resume execution activity from the point(s) of failure.
Behavior of the retry operation:
CANCELED, FAILED, FAILED_WITH_TERMINAL_ERROR, and TIMED_OUT. Optional tasks are not retried.Updated workflow execution
The response for a failed request.
{- "authentication": {
- "nonce": "hOfy4Zop4N2SPRfl"
}
}{- "id": "059edaa4-a17a-4102-910e-2c3591500cce",
- "workflowExternalId": "string",
- "version": "string",
- "status": "RUNNING",
- "engineExecutionId": "f6159fbb-e5a2-449c-9fd5-75ed6534354c",
- "createdTime": 1730204346000,
- "startTime": 1730204346000,
- "endTime": 1730204346000,
- "reasonForIncompletion": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}