mistralM

Docs

sideBar

Workflows Executions

Workflows API - executions.

GET /v1/workflows/executions/{execution_id}

Get Workflow Execution

Get Workflow Execution

Parameters

execution_id
stringpath* required
include_search_keys
booleanquery

Include the execution's search keys (metadata) in the response.

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/executions/{execution_id}/history

Get Workflow Execution History

Get Workflow Execution History

Parameters

execution_id
stringpath* required
decode_payloads
booleanquery

Responses

any

Successful Response

POST /v1/workflows/executions/{execution_id}/signals

Signal Workflow Execution

Signal Workflow Execution

Parameters

execution_id
stringpath* required

Request Example

{
  "name": "ipsum eiusmod"
}

Request Body

call_context
map<boolean | integer | string> | null

Cleartext technical values (ids, flags) for the code this call runs, read with get_call_context(). Not covered by payload encryption: never put customer content here.

input
NetworkEncodedInput | map<any> | null

Input data for the signal, matching its schema

NetworkEncodedInput
AdditionalProperties
map<any>
b64payload
string* required

The encoded payload

empty
boolean

Whether the payload is empty

Default Value: false

encoding_options
array<"offloaded" | "encrypted" | "encrypted-partial" | "compressed">

The encoding of the payload

name
string* required

The name of the signal to send

Server-Side Events

Successful Response

message
string

Default Value: "Signal accepted"

POST /v1/workflows/executions/{execution_id}/queries

Query Workflow Execution

Query Workflow Execution

Parameters

execution_id
stringpath* required

Request Example

{
  "name": "ipsum eiusmod"
}

Request Body

input
NetworkEncodedInput | map<any> | null

Input data for the query, matching its schema

NetworkEncodedInput
b64payload
string* required

The encoded payload

empty
boolean

Whether the payload is empty

Default Value: false

encoding_options
array<"offloaded" | "encrypted" | "encrypted-partial" | "compressed">

The encoding of the payload

name
string* required

The name of the query to request

Responses

Successful Response

query_name
string* required
result
any* required

The result of the Query workflow call

POST /v1/workflows/executions/{execution_id}/terminate

Terminate Workflow Execution

Terminate Workflow Execution

Parameters

execution_id
stringpath* required

POST /v1/workflows/executions/terminate

Batch Terminate Workflow Executions

Batch Terminate Workflow Executions

Request Example

{
  "execution_ids": [
    "ipsum eiusmod"
  ]
}

Request Body

execution_ids
array<string>Min Items: 1Max Items: 100* required

List of execution IDs to process

Responses

Successful Response

Mapping of execution_id to result with status and optional error message

BatchExecutionResult
error
string | null

Error message if operation failed

status
string* required

Status of the operation (success/failure)

POST /v1/workflows/executions/{execution_id}/cancel

Cancel Workflow Execution

Cancel Workflow Execution

Parameters

execution_id
stringpath* required

POST /v1/workflows/executions/cancel

Batch Cancel Workflow Executions

Batch Cancel Workflow Executions

Request Example

{
  "execution_ids": [
    "ipsum eiusmod"
  ]
}

Request Body

execution_ids
array<string>Min Items: 1Max Items: 100* required

List of execution IDs to process

Responses

Successful Response

Mapping of execution_id to result with status and optional error message

BatchExecutionResult
error
string | null

Error message if operation failed

status
string* required

Status of the operation (success/failure)

POST /v1/workflows/executions/{execution_id}/reset

Reset Workflow

Reset Workflow

Parameters

execution_id
stringpath* required

Request Example

{
  "event_id": 87
}

Request Body

event_id
integer* required

The event ID to reset the workflow execution to

exclude_signals
boolean

Whether to exclude signals that happened after the reset point

Default Value: false

exclude_updates
boolean

Whether to exclude updates that happened after the reset point

Default Value: false

reason
string | null

Reason for resetting the workflow execution

POST /v1/workflows/executions/{execution_id}/updates

Update Workflow Execution

Update Workflow Execution

Parameters

execution_id
stringpath* required

Request Example

{
  "name": "ipsum eiusmod"
}

Request Body

call_context
map<boolean | integer | string> | null

Cleartext technical values (ids, flags) for the code this call runs, read with get_call_context(). Not covered by payload encryption: never put customer content here.

input
NetworkEncodedInput | map<any> | null

Input data for the update, matching its schema

NetworkEncodedInput
b64payload
string* required

The encoded payload

empty
boolean

Whether the payload is empty

Default Value: false

encoding_options
array<"offloaded" | "encrypted" | "encrypted-partial" | "compressed">

The encoding of the payload

name
string* required

The name of the update to request

Responses

Successful Response

result
any* required

The result of the Update workflow call

update_name
string* required

GET /v1/workflows/executions/{execution_id}/trace/info

Get Workflow Execution Trace Info

Get Workflow Execution Trace Info

Parameters

execution_id
stringpath* required

Responses

Successful Response

has_trace_data
boolean

Whether trace data is available in the trace backend for this execution

Default Value: false

otel_trace_id
string | null

The ID of the trace, if available

GET /v1/workflows/executions/{execution_id}/trace/otel

Get Workflow Execution Trace Otel

Get Workflow Execution Trace Otel

Parameters

execution_id
stringpath* required

Responses

Successful Response

data_source
string* required

The data source of the trace

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

otel_trace_data
TempoGetTraceResponse | null

Trace response in OpenTelemetry format.

This is the unified trace format used across all trace providers (Tempo, ClickHouse, etc.). Regardless of the underlying backend, all trace data is normalized to this Tempo-compatible OpenTelemetry format to ensure consistency in the API response structure.

TempoGetTraceResponse

Trace response in OpenTelemetry format.

This is the unified trace format used across all trace providers (Tempo, ClickHouse, etc.). Regardless of the underlying backend, all trace data is normalized to this Tempo-compatible OpenTelemetry format to ensure consistency in the API response structure.

batches
array<TempoTraceBatch>

The batches of the trace

TempoTraceBatch
resource
TempoTraceResource* required
TempoTraceResource
attributes
array<TempoTraceAttribute>

The attributes of the resource

TempoTraceAttribute
key
string* required

The key of the attribute

The value of the attribute

TempoTraceAttributeStringValue
stringValue
string* required

The string value of the attribute

TempoTraceAttributeIntValue
intValue
string* required

The integer value of the attribute

TempoTraceAttributeDoubleValue
doubleValue
number* required

The floating point value of the attribute

TempoTraceAttributeBoolValue
boolValue
boolean* required

The boolean value of the attribute

TempoTraceAttributeArrayValue
TempoTraceAttributeArrayContainer

The values of the array

TempoTraceAttributeArrayElement
boolValue
boolean | null

A boolean element in the array

doubleValue
number | null

A floating point element in the array

intValue
string | null

An integer element in the array

stringValue
string | null

A string element in the array

scopeSpans
array<TempoTraceScopeSpan>

The spans of the scope

TempoTraceScopeSpan
scope
TempoTraceScope* required
TempoTraceScope
name
string* required

The name of the span

spans
array<TempoTraceSpan>

The spans of the scope

TempoTraceSpan
attributes
array<TempoTraceAttribute>

The attributes of the resource

TempoTraceAttribute
key
string* required

The key of the attribute

The value of the attribute

TempoTraceAttributeStringValue
stringValue
string* required

The string value of the attribute

TempoTraceAttributeIntValue
intValue
string* required

The integer value of the attribute

TempoTraceAttributeDoubleValue
doubleValue
number* required

The floating point value of the attribute

TempoTraceAttributeBoolValue
boolValue
boolean* required

The boolean value of the attribute

TempoTraceAttributeArrayValue
TempoTraceAttributeArrayContainer

The values of the array

TempoTraceAttributeArrayElement
boolValue
boolean | null

A boolean element in the array

doubleValue
number | null

A floating point element in the array

intValue
string | null

An integer element in the array

stringValue
string | null

A string element in the array

endTimeUnixNano
string* required

The end time of the scope in Unix nano

events
array<TempoTraceEvent>

The events of the scope

TempoTraceEvent
attributes
array<TempoTraceAttribute>

The attributes of the resource

TempoTraceAttribute
key
string* required

The key of the attribute

The value of the attribute

TempoTraceAttributeStringValue
stringValue
string* required

The string value of the attribute

TempoTraceAttributeIntValue
intValue
string* required

The integer value of the attribute

TempoTraceAttributeDoubleValue
doubleValue
number* required

The floating point value of the attribute

TempoTraceAttributeBoolValue
boolValue
boolean* required

The boolean value of the attribute

TempoTraceAttributeArrayValue
TempoTraceAttributeArrayContainer

The values of the array

TempoTraceAttributeArrayElement
boolValue
boolean | null

A boolean element in the array

doubleValue
number | null

A floating point element in the array

intValue
string | null

An integer element in the array

stringValue
string | null

A string element in the array

name
string* required

The name of the event

timeUnixNano
string* required

The time of the event in Unix nano

kind
"SPAN_KIND_INTERNAL" | "SPAN_KIND_SERVER" | "SPAN_KIND_CLIENT"* required
name
string* required

The name of the scope

parentSpanId
string | null

The parent span ID of the scope

spanId
string* required

The span ID of the scope

startTimeUnixNano
string* required

The start time of the scope in Unix nano

traceId
string* required

The trace ID of the scope

otel_trace_id
string | null

The ID of the trace

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/executions/{execution_id}/trace/summary

Get Workflow Execution Trace Summary

Get Workflow Execution Trace Summary

Parameters

execution_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.

The root span of the trace

WorkflowExecutionTraceSummarySpan

The root span of the trace

attributes
map<string | integer | number | boolean | array<any> | null>* required

The attributes of the span

children
array<WorkflowExecutionTraceSummarySpan | null>

The child spans of the span

end_time_unix_nano
integer | null* required

The end time of the span in nanoseconds since the Unix epoch

events
array<WorkflowExecutionTraceEvent>* required

The events of the span

WorkflowExecutionTraceEvent
attributes
map<string | integer | number | boolean | array<any> | null>* required

The attributes of the span

id
string* required

The ID of the event

internal
boolean

Whether the event is internal

Default Value: false

name
string* required

Name of the event

timestamp_unix_nano
integer* required

The timestamp of the event in nanoseconds since the Unix epoch

type
"EVENT" | "EVENT_PROGRESS"
name
string* required

The name of the span

span_id
string* required

The ID of the span

start_time_unix_nano
integer* required

The start time of the span in nanoseconds since the Unix epoch

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/executions/{execution_id}/trace/events

Get Workflow Execution Trace Events

Get Workflow Execution Trace Events

Parameters

execution_id
stringpath* required
merge_same_id_events
booleanquery
include_internal_events
booleanquery

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

The events of the workflow execution

WorkflowExecutionTraceEvent
attributes
map<string | integer | number | boolean | array<any> | null>* required

The attributes of the span

id
string* required

The ID of the event

internal
boolean

Whether the event is internal

Default Value: false

name
string* required

Name of the event

timestamp_unix_nano
integer* required

The timestamp of the event in nanoseconds since the Unix epoch

type
"EVENT" | "EVENT_PROGRESS"
WorkflowExecutionProgressTraceEvent
attributes
map<string | integer | number | boolean | array<any> | null>* required

The attributes of the span

end_time_unix_ms
integer | null

The end time of the event in milliseconds since the Unix epoch

error
string | null

The error message, if any

id
string* required

The ID of the event

internal
boolean

Whether the event is internal

Default Value: false

name
string* required

Name of the event

start_time_unix_ms
integer* required

The start time of the event in milliseconds since the Unix epoch

status
"RUNNING" | "COMPLETED" | "FAILED"
timestamp_unix_nano
integer* required

The timestamp of the event in nanoseconds since the Unix epoch

type
"EVENT" | "EVENT_PROGRESS"
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/executions/{execution_id}/stream

Stream

Stream

Parameters

execution_id
stringpath* required
event_source
"DATABASE" | "LIVE" | "HYBRID"query
last_event_id
string | nullquery

Server-Side Events

event-stream<ResponseBody>

Stream of Server-Sent Events (SSE)

ResponseBody

Stream of Server-Sent Events (SSE)

StreamEventSsePayload
broker_sequence
integer* required
metadata
map<any>
stream
string* required
timestamp
date-time
workflow_context
StreamEventWorkflowContext* required
StreamEventWorkflowContext
namespace
string* required
parent_workflow_exec_id
string | null
root_workflow_exec_id
string | null
workflow_exec_id
string* required
workflow_name
string* required
StreamEventSseErrorData
error
string* required
reason
string* required
event
string
id
string
retry
integer

GET /v1/workflows/executions/{execution_id}/logs

Get Workflow Execution Logs

Retrieve logs for a workflow execution.

Use after/before/order on the first request to set the time range and sort order; for the next pages pass the cursor from the previous response (it remembers the range and order).

Parameters

execution_id
stringpath* required
run_id
string | nullquery

Filter logs by workflow run ID

activity_id
string | nullquery

Filter logs by activity ID

after
date-time | nullquery

Only return logs at or after this timestamp

before
date-time | nullquery

Only return logs before this timestamp

order
"asc" | "desc"query

First-page sort order: 'asc' (oldest first) or 'desc'. Ignored when cursor is set.

cursor
string | nullquery

Pagination cursor from a previous response's next_cursor; carries the window and order

limit
integerquery

Maximum number of logs to return

Responses

Successful Response

next_cursor
string | null
results
array<ExecutionLogRecord>* required
ExecutionLogRecord
body
string* required
log_attributes
map<string>* required
severity_text
string* required
span_id
string* required
timestamp
date-time* required
trace_id
string* required

GET /v1/workflows/executions/{execution_id}/logs/stream

Stream Workflow Execution Logs

Stream logs for a workflow execution via SSE.

Resume cursor comes from the Last-Event-ID header or last_event_id query param (header wins) and takes precedence over after; omit all to tail from the execution start.

Parameters

execution_id
stringpath* required
run_id
string | nullquery

Filter logs by workflow run ID

activity_id
string | nullquery

Filter logs by activity ID

after
date-time | nullquery

Start a fresh stream at this timestamp (ignored when resuming via last_event_id)

last_event_id
string | nullquery

Resume from this cursor (a prior response's SSE id)

Last-Event-ID
string | nullheader

Resume from this cursor (a prior response's SSE id). Takes precedence over the query parameter.

Server-Side Events

event-stream<ResponseBody>

Stream of Server-Sent Events (SSE): log events carry an ExecutionLogRecord; error events carry a StreamError payload.

ResponseBody

Stream of Server-Sent Events (SSE): log events carry an ExecutionLogRecord; error events carry a StreamError payload.

ExecutionLogRecord
body
string* required
log_attributes
map<string>* required
severity_text
string* required
span_id
string* required
timestamp
date-time* required
trace_id
string* required
StreamError
error
string* required
reason
string* required
event
"log" | "error"
id
string