mistralM

Docs

sideBar

Workflows Runs

Workflows API - runs.

GET /v1/workflows/runs

List Runs

List Runs

Parameters

workflow_identifier
string | nullquery

Filter by workflow name or id

root_execution_id
string | nullquery

Filter by root execution id; returns the whole execution tree (the root and all its descendant sub-workflows).

string | nullquery

Search by workflow name, display name, or ID

status
"RUNNING" | "COMPLETED" | "FAILED" | "CANCELED" | "TERMINATED" | "CONTINUED_AS_NEW" | "TIMED_OUT" | "RETRYING_AFTER_ERROR" | array<"RUNNING" | "COMPLETED" | "FAILED" | "CANCELED" | "TERMINATED" | "CONTINUED_AS_NEW" | "TIMED_OUT" | "RETRYING_AFTER_ERROR"> | nullquery

Filter by workflow status

deployment_name
string | nullquery

Filter by deployment name

sort_by
"start_time" | "end_time"query

Field to sort by

order
"asc" | "desc"query

Sort direction

start_time_after
date-time | nullquery

Include runs with start_time >= value

start_time_before
date-time | nullquery

Include runs with start_time <= value

end_time_after
date-time | nullquery

Include runs with end_time >= value. Running executions (no end_time) are excluded; use the status filter to include them.

end_time_before
date-time | nullquery

Include runs with end_time <= value. Running executions (no end_time) are excluded; use the status filter to include them.

user_id
string | nullquery

Filter by user id. Use 'current' to filter by the authenticated user

workflow_tags
array<string> | nullquery

Filter to runs of workflows tagged with all listed tags (AND).

exclude_workflow_tags
array<string> | nullquery

Exclude runs of workflows tagged with any of the listed tags.

include_internal
booleanquery

Include runs of internal/technical workflows (e.g. parallel-execution)

page_size
integerquery

Number of items per page

next_page_token
string | nullquery

Token for the next page of results

search_key
array<string> | nullquery

Filter executions by search key as repeated entries (max 3, AND'd together). 'key:value' matches a similar value, 'key==:value' matches the exact value, a bare 'key' matches executions that have the key set at all, and 'key==' matches executions whose value for the key is null.

Responses

Successful Response

executions
array<WorkflowExecutionWithoutResultResponse>* required

A list of workflow executions

WorkflowExecutionWithoutResultResponse
deployment_name
string | null

The name of the deployment that ran this execution

end_time
date-time | null* required

The end time of the workflow execution, if available

execution_id
string* required

The ID of the workflow execution

parent_execution_id
string | null

The parent execution ID of the workflow execution

root_execution_id
string* required

The root execution ID of the workflow execution

run_id
string | null

The unique run identifier (database UUID)

start_time
date-time* required

The start time of the workflow execution

status
"RUNNING" | "COMPLETED" | "FAILED" | "CANCELED" | "TERMINATED" | "CONTINUED_AS_NEW" | "TIMED_OUT" | "RETRYING_AFTER_ERROR"* required

The status of the workflow execution

total_duration_ms
integer | null

The total duration of the trace in milliseconds

user_id
string | null

The ID of the user who triggered the execution

workflow_id
string | null

The ID of the workflow

workflow_name
string* required

The name of the workflow

next_page_token
string | null

Token to use for fetching the next page of results. Null if this is the last page.

GET /v1/workflows/runs/{run_id}

Get Run

Get Run

Parameters

run_id
stringpath* required

Responses

Successful Response

deployment_name
string | null

The name of the deployment that ran this execution

end_time
date-time | null* required

The end time of the workflow execution, if available

execution_id
string* required

The ID of the workflow execution

parent_execution_id
string | null

The parent execution ID of the workflow execution

result
any | null* required

The result of the workflow execution, if available

root_execution_id
string* required

The root execution ID of the workflow execution

run_id
string | null

The unique run identifier (database UUID)

search_keys
map<string | null> | null

The execution's search keys (metadata), if requested via include_search_keys.

start_time
date-time* required

The start time of the workflow execution

status
"RUNNING" | "COMPLETED" | "FAILED" | "CANCELED" | "TERMINATED" | "CONTINUED_AS_NEW" | "TIMED_OUT" | "RETRYING_AFTER_ERROR"* required

The status of the workflow execution

total_duration_ms
integer | null

The total duration of the trace in milliseconds

user_id
string | null

The ID of the user who triggered the execution

workflow_id
string | null

The ID of the workflow

workflow_name
string* required

The name of the workflow

GET /v1/workflows/runs/{run_id}/history

Get Run History

Get Run History

Parameters

run_id
stringpath* required
decode_payloads
booleanquery

Responses

any

Successful Response