- API Reference
- endpoint
- Workflows
Workflows Executions
Workflows Executions
GET /v1/workflows/executions/{execution_id}
Get Workflow Execution
Get Workflow Execution
Parameters
execution_id
stringpath* requiredinclude_search_keys
booleanqueryInclude the execution's search keys (metadata) in the response.
Responses
Successful Response
deployment_name
string | nullThe name of the deployment that ran this execution
end_time
date-time | null* requiredThe end time of the workflow execution, if available
execution_id
string* requiredThe ID of the workflow execution
parent_execution_id
string | nullThe parent execution ID of the workflow execution
result
any | null* requiredThe result of the workflow execution, if available
root_execution_id
string* requiredThe root execution ID of the workflow execution
run_id
string | nullThe unique run identifier (database UUID)
search_keys
map<string | null> | nullThe execution's search keys (metadata), if requested via include_search_keys.
start_time
date-time* requiredThe start time of the workflow execution
status
"RUNNING" | "COMPLETED" | "FAILED" | "CANCELED" | "TERMINATED" | "CONTINUED_AS_NEW" | "TIMED_OUT" | "RETRYING_AFTER_ERROR"* requiredThe status of the workflow execution
total_duration_ms
integer | nullThe total duration of the trace in milliseconds
user_id
string | nullThe ID of the user who triggered the execution
workflow_id
string | nullThe ID of the workflow
workflow_name
string* requiredThe name of the workflow
GET /v1/workflows/executions/{execution_id}/history
Get Workflow Execution History
Get Workflow Execution History
Parameters
execution_id
stringpath* requireddecode_payloads
booleanqueryResponses
Successful Response
POST /v1/workflows/executions/{execution_id}/signals
Signal Workflow Execution
Signal Workflow Execution
Parameters
execution_id
stringpath* requiredRequest Example
{
"name": "ipsum eiusmod"
}
Request Body
call_context
map<boolean | integer | string> | nullCleartext 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> | nullInput data for the signal, matching its schema
NetworkEncodedInput
AdditionalProperties
map<any>b64payload
string* requiredThe encoded payload
empty
booleanWhether the payload is empty
Default Value: false
encoding_options
array<"offloaded" | "encrypted" | "encrypted-partial" | "compressed">The encoding of the payload
name
string* requiredThe name of the signal to send
Server-Side Events
Successful Response
message
stringDefault Value: "Signal accepted"
POST /v1/workflows/executions/{execution_id}/queries
Query Workflow Execution
Query Workflow Execution
Parameters
execution_id
stringpath* requiredRequest Example
{
"name": "ipsum eiusmod"
}
Request Body
input
NetworkEncodedInput | map<any> | nullInput data for the query, matching its schema
NetworkEncodedInput
b64payload
string* requiredThe encoded payload
empty
booleanWhether the payload is empty
Default Value: false
encoding_options
array<"offloaded" | "encrypted" | "encrypted-partial" | "compressed">The encoding of the payload
name
string* requiredThe name of the query to request
Responses
Successful Response
query_name
string* requiredresult
any* requiredThe result of the Query workflow call
POST /v1/workflows/executions/{execution_id}/terminate
Terminate Workflow Execution
Terminate Workflow Execution
Parameters
execution_id
stringpath* requiredPOST /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* requiredList of execution IDs to process
Responses
Successful Response
results
map<BatchExecutionResult>Mapping of execution_id to result with status and optional error message
BatchExecutionResult
error
string | nullError message if operation failed
status
string* requiredStatus of the operation (success/failure)
POST /v1/workflows/executions/{execution_id}/cancel
Cancel Workflow Execution
Cancel Workflow Execution
Parameters
execution_id
stringpath* requiredPOST /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* requiredList of execution IDs to process
Responses
Successful Response
results
map<BatchExecutionResult>Mapping of execution_id to result with status and optional error message
BatchExecutionResult
error
string | nullError message if operation failed
status
string* requiredStatus of the operation (success/failure)
POST /v1/workflows/executions/{execution_id}/reset
Reset Workflow
Reset Workflow
Parameters
execution_id
stringpath* requiredRequest Example
{
"event_id": 87
}
Request Body
event_id
integer* requiredThe event ID to reset the workflow execution to
exclude_signals
booleanWhether to exclude signals that happened after the reset point
Default Value: false
exclude_updates
booleanWhether to exclude updates that happened after the reset point
Default Value: false
reason
string | nullReason for resetting the workflow execution
POST /v1/workflows/executions/{execution_id}/updates
Update Workflow Execution
Update Workflow Execution
Parameters
execution_id
stringpath* requiredRequest Example
{
"name": "ipsum eiusmod"
}
Request Body
call_context
map<boolean | integer | string> | nullCleartext 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> | nullInput data for the update, matching its schema
NetworkEncodedInput
b64payload
string* requiredThe encoded payload
empty
booleanWhether the payload is empty
Default Value: false
encoding_options
array<"offloaded" | "encrypted" | "encrypted-partial" | "compressed">The encoding of the payload
name
string* requiredThe name of the update to request
Responses
Successful Response
result
any* requiredThe result of the Update workflow call
update_name
string* requiredGET /v1/workflows/executions/{execution_id}/trace/info
Get Workflow Execution Trace Info
Get Workflow Execution Trace Info
Parameters
execution_id
stringpath* requiredResponses
Successful Response
has_trace_data
booleanWhether trace data is available in the trace backend for this execution
Default Value: false
otel_trace_id
string | nullThe 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* requiredResponses
Successful Response
data_source
string* requiredThe data source of the trace
deployment_name
string | nullThe name of the deployment that ran this execution
end_time
date-time | null* requiredThe end time of the workflow execution, if available
execution_id
string* requiredThe ID of the workflow execution
otel_trace_data
TempoGetTraceResponse | nullTrace 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
TempoTraceResource
attributes
array<TempoTraceAttribute>The attributes of the resource
TempoTraceAttribute
key
string* requiredThe key of the attribute
value
TempoTraceAttributeStringValue | TempoTraceAttributeIntValue | TempoTraceAttributeDoubleValue | TempoTraceAttributeBoolValue | TempoTraceAttributeArrayValue* requiredThe value of the attribute
TempoTraceAttributeStringValue
stringValue
string* requiredThe string value of the attribute
TempoTraceAttributeIntValue
intValue
string* requiredThe integer value of the attribute
TempoTraceAttributeDoubleValue
doubleValue
number* requiredThe floating point value of the attribute
TempoTraceAttributeBoolValue
boolValue
boolean* requiredThe boolean value of the attribute
TempoTraceAttributeArrayValue
TempoTraceAttributeArrayContainer
values
array<TempoTraceAttributeArrayElement>The values of the array
TempoTraceAttributeArrayElement
boolValue
boolean | nullA boolean element in the array
doubleValue
number | nullA floating point element in the array
intValue
string | nullAn integer element in the array
stringValue
string | nullA string element in the array
scopeSpans
array<TempoTraceScopeSpan>The spans of the scope
TempoTraceScopeSpan
TempoTraceScope
name
string* requiredThe name of the span
spans
array<TempoTraceSpan>The spans of the scope
TempoTraceSpan
attributes
array<TempoTraceAttribute>The attributes of the resource
TempoTraceAttribute
key
string* requiredThe key of the attribute
value
TempoTraceAttributeStringValue | TempoTraceAttributeIntValue | TempoTraceAttributeDoubleValue | TempoTraceAttributeBoolValue | TempoTraceAttributeArrayValue* requiredThe value of the attribute
TempoTraceAttributeStringValue
stringValue
string* requiredThe string value of the attribute
TempoTraceAttributeIntValue
intValue
string* requiredThe integer value of the attribute
TempoTraceAttributeDoubleValue
doubleValue
number* requiredThe floating point value of the attribute
TempoTraceAttributeBoolValue
boolValue
boolean* requiredThe boolean value of the attribute
TempoTraceAttributeArrayValue
TempoTraceAttributeArrayContainer
values
array<TempoTraceAttributeArrayElement>The values of the array
TempoTraceAttributeArrayElement
boolValue
boolean | nullA boolean element in the array
doubleValue
number | nullA floating point element in the array
intValue
string | nullAn integer element in the array
stringValue
string | nullA string element in the array
endTimeUnixNano
string* requiredThe 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* requiredThe key of the attribute
value
TempoTraceAttributeStringValue | TempoTraceAttributeIntValue | TempoTraceAttributeDoubleValue | TempoTraceAttributeBoolValue | TempoTraceAttributeArrayValue* requiredThe value of the attribute
TempoTraceAttributeStringValue
stringValue
string* requiredThe string value of the attribute
TempoTraceAttributeIntValue
intValue
string* requiredThe integer value of the attribute
TempoTraceAttributeDoubleValue
doubleValue
number* requiredThe floating point value of the attribute
TempoTraceAttributeBoolValue
boolValue
boolean* requiredThe boolean value of the attribute
TempoTraceAttributeArrayValue
TempoTraceAttributeArrayContainer
values
array<TempoTraceAttributeArrayElement>The values of the array
TempoTraceAttributeArrayElement
boolValue
boolean | nullA boolean element in the array
doubleValue
number | nullA floating point element in the array
intValue
string | nullAn integer element in the array
stringValue
string | nullA string element in the array
name
string* requiredThe name of the event
timeUnixNano
string* requiredThe time of the event in Unix nano
kind
"SPAN_KIND_INTERNAL" | "SPAN_KIND_SERVER" | "SPAN_KIND_CLIENT"* requiredname
string* requiredThe name of the scope
parentSpanId
string | nullThe parent span ID of the scope
spanId
string* requiredThe span ID of the scope
startTimeUnixNano
string* requiredThe start time of the scope in Unix nano
traceId
string* requiredThe trace ID of the scope
otel_trace_id
string | nullThe ID of the trace
parent_execution_id
string | nullThe parent execution ID of the workflow execution
result
any | null* requiredThe result of the workflow execution, if available
root_execution_id
string* requiredThe root execution ID of the workflow execution
run_id
string | nullThe unique run identifier (database UUID)
search_keys
map<string | null> | nullThe execution's search keys (metadata), if requested via include_search_keys.
start_time
date-time* requiredThe start time of the workflow execution
status
"RUNNING" | "COMPLETED" | "FAILED" | "CANCELED" | "TERMINATED" | "CONTINUED_AS_NEW" | "TIMED_OUT" | "RETRYING_AFTER_ERROR"* requiredThe status of the workflow execution
total_duration_ms
integer | nullThe total duration of the trace in milliseconds
user_id
string | nullThe ID of the user who triggered the execution
workflow_id
string | nullThe ID of the workflow
workflow_name
string* requiredThe 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* requiredResponses
Successful Response
deployment_name
string | nullThe name of the deployment that ran this execution
end_time
date-time | null* requiredThe end time of the workflow execution, if available
execution_id
string* requiredThe ID of the workflow execution
parent_execution_id
string | nullThe parent execution ID of the workflow execution
result
any | null* requiredThe result of the workflow execution, if available
root_execution_id
string* requiredThe root execution ID of the workflow execution
run_id
string | nullThe unique run identifier (database UUID)
search_keys
map<string | null> | nullThe execution's search keys (metadata), if requested via include_search_keys.
span_tree
WorkflowExecutionTraceSummarySpan | nullThe root span of the trace
WorkflowExecutionTraceSummarySpan
The root span of the trace
attributes
map<string | integer | number | boolean | array<any> | null>* requiredThe attributes of the span
children
array<WorkflowExecutionTraceSummarySpan | null>The child spans of the span
end_time_unix_nano
integer | null* requiredThe end time of the span in nanoseconds since the Unix epoch
The events of the span
WorkflowExecutionTraceEvent
attributes
map<string | integer | number | boolean | array<any> | null>* requiredThe attributes of the span
id
string* requiredThe ID of the event
internal
booleanWhether the event is internal
Default Value: false
name
string* requiredName of the event
timestamp_unix_nano
integer* requiredThe timestamp of the event in nanoseconds since the Unix epoch
type
"EVENT" | "EVENT_PROGRESS"name
string* requiredThe name of the span
span_id
string* requiredThe ID of the span
start_time_unix_nano
integer* requiredThe start time of the span in nanoseconds since the Unix epoch
start_time
date-time* requiredThe start time of the workflow execution
status
"RUNNING" | "COMPLETED" | "FAILED" | "CANCELED" | "TERMINATED" | "CONTINUED_AS_NEW" | "TIMED_OUT" | "RETRYING_AFTER_ERROR"* requiredThe status of the workflow execution
total_duration_ms
integer | nullThe total duration of the trace in milliseconds
user_id
string | nullThe ID of the user who triggered the execution
workflow_id
string | nullThe ID of the workflow
workflow_name
string* requiredThe 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* requiredmerge_same_id_events
booleanqueryinclude_internal_events
booleanqueryResponses
Successful Response
deployment_name
string | nullThe name of the deployment that ran this execution
end_time
date-time | null* requiredThe end time of the workflow execution, if available
events
array<WorkflowExecutionTraceEvent | WorkflowExecutionProgressTraceEvent>The events of the workflow execution
WorkflowExecutionTraceEvent
attributes
map<string | integer | number | boolean | array<any> | null>* requiredThe attributes of the span
id
string* requiredThe ID of the event
internal
booleanWhether the event is internal
Default Value: false
name
string* requiredName of the event
timestamp_unix_nano
integer* requiredThe timestamp of the event in nanoseconds since the Unix epoch
type
"EVENT" | "EVENT_PROGRESS"WorkflowExecutionProgressTraceEvent
attributes
map<string | integer | number | boolean | array<any> | null>* requiredThe attributes of the span
end_time_unix_ms
integer | nullThe end time of the event in milliseconds since the Unix epoch
error
string | nullThe error message, if any
id
string* requiredThe ID of the event
internal
booleanWhether the event is internal
Default Value: false
name
string* requiredName of the event
start_time_unix_ms
integer* requiredThe start time of the event in milliseconds since the Unix epoch
status
"RUNNING" | "COMPLETED" | "FAILED"timestamp_unix_nano
integer* requiredThe timestamp of the event in nanoseconds since the Unix epoch
type
"EVENT" | "EVENT_PROGRESS"execution_id
string* requiredThe ID of the workflow execution
parent_execution_id
string | nullThe parent execution ID of the workflow execution
result
any | null* requiredThe result of the workflow execution, if available
root_execution_id
string* requiredThe root execution ID of the workflow execution
run_id
string | nullThe unique run identifier (database UUID)
search_keys
map<string | null> | nullThe execution's search keys (metadata), if requested via include_search_keys.
start_time
date-time* requiredThe start time of the workflow execution
status
"RUNNING" | "COMPLETED" | "FAILED" | "CANCELED" | "TERMINATED" | "CONTINUED_AS_NEW" | "TIMED_OUT" | "RETRYING_AFTER_ERROR"* requiredThe status of the workflow execution
total_duration_ms
integer | nullThe total duration of the trace in milliseconds
user_id
string | nullThe ID of the user who triggered the execution
workflow_id
string | nullThe ID of the workflow
workflow_name
string* requiredThe name of the workflow
GET /v1/workflows/executions/{execution_id}/stream
Stream
Stream
Parameters
execution_id
stringpath* requiredevent_source
"DATABASE" | "LIVE" | "HYBRID"querylast_event_id
string | nullqueryServer-Side Events
Stream of Server-Sent Events (SSE)
ResponseBody
Stream of Server-Sent Events (SSE)
StreamEventSsePayload
broker_sequence
integer* requiredmetadata
map<any>stream
string* requiredtimestamp
date-timeStreamEventWorkflowContext
namespace
string* requiredparent_workflow_exec_id
string | nullroot_workflow_exec_id
string | nullworkflow_exec_id
string* requiredworkflow_name
string* requiredStreamEventSseErrorData
error
string* requiredreason
string* requiredevent
stringid
stringretry
integerGET /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* requiredrun_id
string | nullqueryFilter logs by workflow run ID
activity_id
string | nullqueryFilter logs by activity ID
after
date-time | nullqueryOnly return logs at or after this timestamp
before
date-time | nullqueryOnly return logs before this timestamp
order
"asc" | "desc"queryFirst-page sort order: 'asc' (oldest first) or 'desc'. Ignored when cursor is set.
cursor
string | nullqueryPagination cursor from a previous response's next_cursor; carries the window and order
limit
integerqueryMaximum number of logs to return
Responses
Successful Response
next_cursor
string | nullExecutionLogRecord
body
string* requiredlog_attributes
map<string>* requiredseverity_text
string* requiredspan_id
string* requiredtimestamp
date-time* requiredtrace_id
string* requiredGET /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* requiredrun_id
string | nullqueryFilter logs by workflow run ID
activity_id
string | nullqueryFilter logs by activity ID
after
date-time | nullqueryStart a fresh stream at this timestamp (ignored when resuming via last_event_id)
last_event_id
string | nullqueryResume from this cursor (a prior response's SSE id)
Last-Event-ID
string | nullheaderResume from this cursor (a prior response's SSE id). Takes precedence over the query parameter.
Server-Side Events
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.