Get workflow run
/workflow-run/{id}
Retrieve details of a specific workflow execution run.
Path Parameters
5aa2ced1-7996-4695-ab8d-ea0f104f2f55Response Body
5 properties
run_sync_jobtruerunWhen the run was created.
When the run finished.
The ID of the workflow run.
How many times the run has been retried.
0When the run started.
created - waiting to run, running - running, completed - no step failed (a step skipped by its run_if counts as done), failed - a step failed; result.error says why.
createdrunningcompletedfailed
When the run was last updated.
The workflow this run belongs to.
Errors
| Status | Description |
|---|---|
404 | Workflow run not found |
truto workflow-runs get '<id>' -o jsonimport Truto from '@truto/truto-ts-sdk';
const truto = new Truto({
token: '<your_api_token>',
});
const result = await truto.workflowRun.get('<id>');
console.log(result);import asyncio
from truto_python_sdk import TrutoApi
truto_api = TrutoApi(token="<your_api_token>")
async def main():
result = await truto_api.workflow_runs.get("<id>")
print(result)
asyncio.run(main())curl -X GET 'https://api.truto.one/workflow-run/{id}' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json'const response = await fetch('https://api.truto.one/workflow-run/{id}', {
method: 'GET',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/workflow-run/{id}"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
response = requests.get(url, headers=headers, params=params)
print(response.json())