Get a Workflow Results

Retrieve the results of the workflow and it's steps

See workflow results

Get all previous runs

To get the list of all previous workflow runs, use the get workflow runs endpoint:

Get Detail Run Tasks

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
bot_idany ofOptional
stringOptional
or
nullOptional
statusany ofOptional
stringOptional
or
nullOptional
workflow_idany ofOptional
stringOptional
or
nullOptional
pageintegerOptionalDefault: 1
sizeintegerOptionalDefault: 20
sort_byany ofOptionalDefault: createdAt
stringOptional
or
nullOptional
sort_orderany ofOptionalDefault: desc
stringOptional
or
nullOptional
Responses
200

Successful Response

application/json
get
/cortex/executor/get-detail-run-tasks

Example response:

See details of a workflow run

To get the details of a specific workflow run, use the following endpoint:

Get Workflow By Run Task Id

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
run_task_idstringRequired
Responses
200

Successful Response

application/json
get
/cortex/executor/get-workflow-by-run-task-id/{run_task_id}

The response will provide the details of the workflow run, including the status, start time, and end time, and the list of steps that were executed.

Example response:

See results of a workflow step

The output of each step can be accessed using the get step result endpoint:

Get Workflow Step Output

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
run_task_idstringRequired
step_idstringRequired
Responses
200

Successful Response

application/json
get
/cortex/executor/get-workflow-step-output/{run_task_id}/{step_id}

Example of a step response:

The output content can be extracted from the content field.

Next Step

In order to persist our workflow results, let's Save Workflow Results.

Last updated

Was this helpful?