mistralM

Docs

sideBar

Workflows Events

Workflows API - events.

GET /v1/workflows/events/stream

Get Stream Events

Stream workflow events as Server-Sent Events (SSE).

One of root_workflow_exec_id, parent_workflow_exec_id or workflow_exec_id is required.

Parameters

scope
"activity" | "workflow" | "*"query
activity_name
stringquery
activity_id
stringquery
workflow_name
stringquery
workflow_exec_id
stringquery
root_workflow_exec_id
stringquery
parent_workflow_exec_id
stringquery
stream
stringquery
start_seq
integerquery
metadata_filters
map<any> | nullquery
workflow_event_types
array<"WORKFLOW_EXECUTION_STARTED" | "WORKFLOW_EXECUTION_COMPLETED" | "WORKFLOW_EXECUTION_FAILED" | "WORKFLOW_EXECUTION_CANCELED" | "WORKFLOW_EXECUTION_CONTINUED_AS_NEW" | "WORKFLOW_TASK_TIMED_OUT" | "WORKFLOW_TASK_FAILED" | "CUSTOM_TASK_STARTED" | "CUSTOM_TASK_IN_PROGRESS" | "CUSTOM_TASK_COMPLETED" | "CUSTOM_TASK_FAILED" | "CUSTOM_TASK_TIMED_OUT" | "CUSTOM_TASK_CANCELED" | "ACTIVITY_TASK_STARTED" | "ACTIVITY_TASK_COMPLETED" | "ACTIVITY_TASK_RETRYING" | "ACTIVITY_TASK_FAILED"> | nullquery
last-event-id
string | nullheader

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/events/list

Get Workflow Events

Get Workflow Events

Parameters

root_workflow_exec_id
string | nullquery

Execution ID of the root workflow that initiated this execution chain.

workflow_exec_id
string | nullquery

Execution ID of the workflow that emitted this event.

workflow_run_id
string | nullquery

Run ID of the workflow that emitted this event.

limit
integerquery

Maximum number of events to return.

cursor
string | nullquery

Cursor for pagination.

Responses

Successful Response

List of workflow events.

WorkflowExecutionStartedResponse

Emitted when a workflow execution begins.

This is the first event in any workflow execution lifecycle.

Attributes for workflow execution started events.

WorkflowExecutionStartedAttributesResponse

Attributes for workflow execution started events.

attempt
integer

Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.

Default Value: 1

display_name
string | null

The user-friendly display name of the workflow, if available.

input
JSONPayloadResponse* required

A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied.

JSONPayloadResponse

A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied.

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

The encoding of the payload

type
string

Discriminator indicating this is a raw JSON payload.

Default Value: "json"

value
any* required

The JSON-serializable payload value. When encrypted, contains base64-encoded data.

task_id
string* required

Unique identifier for the task within the workflow execution.

workflow_name
string* required

The registered name of the workflow being executed.

chain_run_id
string | null

Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.

continued_run_id
string | null

Run ID of the execution this run continued from. Non-null for continue-as-new runs.

event_id
string* required

Unique identifier for this event instance.

event_timestamp
integer* required

Unix timestamp in nanoseconds when the event was created.

event_type
string

Event type discriminator.

Default Value: "WORKFLOW_EXECUTION_STARTED"

first_execution_run_id
string | null

Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.

parent_workflow_exec_id
string | null* required

Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.

root_workflow_exec_id
string* required

Execution ID of the root workflow that initiated this execution chain.

schedule_id
string | null

Temporal schedule ID that triggered this execution, if any.

workflow_exec_id
string* required

Execution ID of the workflow that emitted this event.

workflow_name
string* required

The registered name of the workflow that emitted this event.

workflow_run_id
string* required

Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.

WorkflowExecutionCompletedResponse

Emitted when a workflow execution completes successfully.

This is a terminal event indicating the workflow finished without errors.

Attributes for workflow execution completed events.

WorkflowExecutionCompletedAttributesResponse

Attributes for workflow execution completed events.

attempt
integer

Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.

Default Value: 1

result
JSONPayloadResponse* required

A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied.

JSONPayloadResponse

A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied.

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

The encoding of the payload

type
string

Discriminator indicating this is a raw JSON payload.

Default Value: "json"

value
any* required

The JSON-serializable payload value. When encrypted, contains base64-encoded data.

task_id
string* required

Unique identifier for the task within the workflow execution.

chain_run_id
string | null

Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.

continued_run_id
string | null

Run ID of the execution this run continued from. Non-null for continue-as-new runs.

event_id
string* required

Unique identifier for this event instance.

event_timestamp
integer* required

Unix timestamp in nanoseconds when the event was created.

event_type
string

Event type discriminator.

Default Value: "WORKFLOW_EXECUTION_COMPLETED"

first_execution_run_id
string | null

Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.

parent_workflow_exec_id
string | null* required

Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.

root_workflow_exec_id
string* required

Execution ID of the root workflow that initiated this execution chain.

schedule_id
string | null

Temporal schedule ID that triggered this execution, if any.

workflow_exec_id
string* required

Execution ID of the workflow that emitted this event.

workflow_name
string* required

The registered name of the workflow that emitted this event.

workflow_run_id
string* required

Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.

WorkflowExecutionFailedResponse

Emitted when a workflow execution fails due to an unhandled exception.

This is a terminal event indicating the workflow ended with an error.

Attributes for workflow execution failed events.

WorkflowExecutionFailedAttributes

Attributes for workflow execution failed events.

attempt
integer

Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.

Default Value: 1

failure
Failure* required

Represents an error or exception that occurred during execution.

Failure

Represents an error or exception that occurred during execution.

message
string* required

A human-readable description of the failure.

task_id
string* required

Unique identifier for the task within the workflow execution.

chain_run_id
string | null

Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.

continued_run_id
string | null

Run ID of the execution this run continued from. Non-null for continue-as-new runs.

event_id
string* required

Unique identifier for this event instance.

event_timestamp
integer* required

Unix timestamp in nanoseconds when the event was created.

event_type
string

Event type discriminator.

Default Value: "WORKFLOW_EXECUTION_FAILED"

first_execution_run_id
string | null

Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.

parent_workflow_exec_id
string | null* required

Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.

root_workflow_exec_id
string* required

Execution ID of the root workflow that initiated this execution chain.

schedule_id
string | null

Temporal schedule ID that triggered this execution, if any.

workflow_exec_id
string* required

Execution ID of the workflow that emitted this event.

workflow_name
string* required

The registered name of the workflow that emitted this event.

workflow_run_id
string* required

Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.

WorkflowExecutionCanceledResponse

Emitted when a workflow execution is canceled.

This is a terminal event indicating the workflow was explicitly canceled.

Attributes for workflow execution canceled events.

WorkflowExecutionCanceledAttributes

Attributes for workflow execution canceled events.

attempt
integer

Workflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.

Default Value: 1

reason
string | null

Optional reason provided for the cancellation.

task_id
string* required

Unique identifier for the task within the workflow execution.

chain_run_id
string | null

Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.

continued_run_id
string | null

Run ID of the execution this run continued from. Non-null for continue-as-new runs.

event_id
string* required

Unique identifier for this event instance.

event_timestamp
integer* required

Unix timestamp in nanoseconds when the event was created.

event_type
string

Event type discriminator.

Default Value: "WORKFLOW_EXECUTION_CANCELED"

first_execution_run_id
string | null

Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.

parent_workflow_exec_id
string | null* required

Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.

root_workflow_exec_id
string* required

Execution ID of the root workflow that initiated this execution chain.

schedule_id
string | null

Temporal schedule ID that triggered this execution, if any.

workflow_exec_id
string* required

Execution ID of the workflow that emitted this event.

workflow_name
string* required

The registered name of the workflow that emitted this event.

workflow_run_id
string* required

Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.

WorkflowExecutionContinuedAsNewResponse

Emitted when a workflow continues as a new execution.

This occurs when a workflow uses continue-as-new to reset its history while maintaining logical continuity.

Attributes for workflow execution continued-as-new events.

WorkflowExecutionContinuedAsNewAttributesResponse

Attributes for workflow execution continued-as-new events.

input
JSONPayloadResponse* required

A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied.

JSONPayloadResponse

A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied.

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

The encoding of the payload

type
string

Discriminator indicating this is a raw JSON payload.

Default Value: "json"

value
any* required

The JSON-serializable payload value. When encrypted, contains base64-encoded data.

new_execution_run_id
string* required

The run ID of the new workflow execution that continues this workflow.

task_id
string* required

Unique identifier for the task within the workflow execution.

workflow_name
string* required

The registered name of the continued workflow.

chain_run_id
string | null

Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.

continued_run_id
string | null

Run ID of the execution this run continued from. Non-null for continue-as-new runs.

event_id
string* required

Unique identifier for this event instance.

event_timestamp
integer* required

Unix timestamp in nanoseconds when the event was created.

event_type
string

Event type discriminator.

Default Value: "WORKFLOW_EXECUTION_CONTINUED_AS_NEW"

first_execution_run_id
string | null

Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.

parent_workflow_exec_id
string | null* required

Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.

root_workflow_exec_id
string* required

Execution ID of the root workflow that initiated this execution chain.

schedule_id
string | null

Temporal schedule ID that triggered this execution, if any.

workflow_exec_id
string* required

Execution ID of the workflow that emitted this event.

workflow_name
string* required

The registered name of the workflow that emitted this event.

workflow_run_id
string* required

Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.

WorkflowTaskTimedOutResponse

Emitted when a workflow task times out.

This indicates the workflow task (a unit of workflow execution) exceeded its configured timeout.

attributes
WorkflowTaskTimedOutAttributes* required

Attributes for workflow task timed out events.

WorkflowTaskTimedOutAttributes

Attributes for workflow task timed out events.

task_id
string* required

Unique identifier for the task within the workflow execution.

timeout_type
string | null

The type of timeout that occurred (e.g., 'START_TO_CLOSE', 'SCHEDULE_TO_START').

chain_run_id
string | null

Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.

continued_run_id
string | null

Run ID of the execution this run continued from. Non-null for continue-as-new runs.

event_id
string* required

Unique identifier for this event instance.

event_timestamp
integer* required

Unix timestamp in nanoseconds when the event was created.

event_type
string

Event type discriminator.

Default Value: "WORKFLOW_TASK_TIMED_OUT"

first_execution_run_id
string | null

Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.

parent_workflow_exec_id
string | null* required

Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.

root_workflow_exec_id
string* required

Execution ID of the root workflow that initiated this execution chain.

schedule_id
string | null

Temporal schedule ID that triggered this execution, if any.

workflow_exec_id
string* required

Execution ID of the workflow that emitted this event.

workflow_name
string* required

The registered name of the workflow that emitted this event.

workflow_run_id
string* required

Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.

WorkflowTaskFailedResponse

Emitted when a workflow task fails.

This indicates an error occurred during workflow task execution, which may trigger a retry depending on configuration.

attributes
WorkflowTaskFailedAttributes* required

Attributes for workflow task failed events.

WorkflowTaskFailedAttributes

Attributes for workflow task failed events.

failure
Failure* required

Represents an error or exception that occurred during execution.

Failure

Represents an error or exception that occurred during execution.

message
string* required

A human-readable description of the failure.

task_id
string* required

Unique identifier for the task within the workflow execution.

chain_run_id
string | null

Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.

continued_run_id
string | null

Run ID of the execution this run continued from. Non-null for continue-as-new runs.

event_id
string* required

Unique identifier for this event instance.

event_timestamp
integer* required

Unix timestamp in nanoseconds when the event was created.

event_type
string

Event type discriminator.

Default Value: "WORKFLOW_TASK_FAILED"

first_execution_run_id
string | null

Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.

parent_workflow_exec_id
string | null* required

Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.

root_workflow_exec_id
string* required

Execution ID of the root workflow that initiated this execution chain.

schedule_id
string | null

Temporal schedule ID that triggered this execution, if any.

workflow_exec_id
string* required

Execution ID of the workflow that emitted this event.

workflow_name
string* required

The registered name of the workflow that emitted this event.

workflow_run_id
string* required

Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.

CustomTaskStartedResponse

Emitted when a custom task begins execution.

Custom tasks represent user-defined units of work within a workflow, such as LLM calls, API requests, or data processing steps.

Attributes for custom task started events.

CustomTaskStartedAttributesResponse

Attributes for custom task started events.

custom_task_id
string* required

Unique identifier for the custom task within the workflow.

custom_task_type
string* required

The type/category of the custom task (e.g., 'llm_call', 'api_request').

A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied.

JSONPayloadResponse

A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied.

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

The encoding of the payload

type
string

Discriminator indicating this is a raw JSON payload.

Default Value: "json"

value
any* required

The JSON-serializable payload value. When encrypted, contains base64-encoded data.

chain_run_id
string | null

Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.

continued_run_id
string | null

Run ID of the execution this run continued from. Non-null for continue-as-new runs.

event_id
string* required

Unique identifier for this event instance.

event_timestamp
integer* required

Unix timestamp in nanoseconds when the event was created.

event_type
string

Event type discriminator.

Default Value: "CUSTOM_TASK_STARTED"

first_execution_run_id
string | null

Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.

parent_workflow_exec_id
string | null* required

Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.

root_workflow_exec_id
string* required

Execution ID of the root workflow that initiated this execution chain.

schedule_id
string | null

Temporal schedule ID that triggered this execution, if any.

workflow_exec_id
string* required

Execution ID of the workflow that emitted this event.

workflow_name
string* required

The registered name of the workflow that emitted this event.

workflow_run_id
string* required

Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.

CustomTaskInProgressResponse

Emitted during custom task execution to report progress.

This event supports streaming updates via JSON or JSON Patch payloads, enabling real-time progress tracking for long-running tasks.

Attributes for custom task in-progress events with streaming updates.

CustomTaskInProgressAttributesResponse

Attributes for custom task in-progress events with streaming updates.

custom_task_id
string* required

Unique identifier for the custom task within the workflow.

custom_task_type
string* required

The type/category of the custom task (e.g., 'llm_call', 'api_request').

The current state or incremental update for the task.

JSONPayloadResponse

A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied.

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

The encoding of the payload

type
string

Discriminator indicating this is a raw JSON payload.

Default Value: "json"

value
any* required

The JSON-serializable payload value. When encrypted, contains base64-encoded data.

JSONPatchPayloadResponse

A payload containing a list of JSON Patch operations.

Used for streaming incremental updates to workflow state. When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied.

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

The encoding of the payload

type
string

Discriminator indicating this is a JSON Patch payload.

Default Value: "json_patch"

value
array<JSONPatchAppend | JSONPatchAdd | JSONPatchReplace | JSONPatchRemove> | string* required
JSONPatchAppend
op
string* required

'append' is an extension for efficient string concatenation in streaming scenarios.

path
string* required

A JSON Pointer (RFC 6901) identifying the target location within the document. Can be a string path (e.g., '/foo/bar'), '/', '', or an empty list [] for root-level operations.

JSONPatchAdd
op
string* required

Add operation

path
string* required

A JSON Pointer (RFC 6901) identifying the target location within the document. Can be a string path (e.g., '/foo/bar'), '/', '', or an empty list [] for root-level operations.

JSONPatchReplace
op
string* required

Replace operation

path
string* required

A JSON Pointer (RFC 6901) identifying the target location within the document. Can be a string path (e.g., '/foo/bar'), '/', '', or an empty list [] for root-level operations.

JSONPatchRemove
op
string* required

Remove operation

path
string* required

A JSON Pointer (RFC 6901) identifying the target location within the document. Can be a string path (e.g., '/foo/bar'), '/', '', or an empty list [] for root-level operations.

chain_run_id
string | null

Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.

continued_run_id
string | null

Run ID of the execution this run continued from. Non-null for continue-as-new runs.

event_id
string* required

Unique identifier for this event instance.

event_timestamp
integer* required

Unix timestamp in nanoseconds when the event was created.

event_type
string

Event type discriminator.

Default Value: "CUSTOM_TASK_IN_PROGRESS"

first_execution_run_id
string | null

Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.

parent_workflow_exec_id
string | null* required

Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.

root_workflow_exec_id
string* required

Execution ID of the root workflow that initiated this execution chain.

schedule_id
string | null

Temporal schedule ID that triggered this execution, if any.

workflow_exec_id
string* required

Execution ID of the workflow that emitted this event.

workflow_name
string* required

The registered name of the workflow that emitted this event.

workflow_run_id
string* required

Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.

CustomTaskCompletedResponse

Emitted when a custom task completes successfully.

Contains the final result of the task execution.

Attributes for custom task completed events.

CustomTaskCompletedAttributesResponse

Attributes for custom task completed events.

custom_task_id
string* required

Unique identifier for the custom task within the workflow.

custom_task_type
string* required

The type/category of the custom task (e.g., 'llm_call', 'api_request').

payload
JSONPayloadResponse* required

A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied.

JSONPayloadResponse

A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied.

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

The encoding of the payload

type
string

Discriminator indicating this is a raw JSON payload.

Default Value: "json"

value
any* required

The JSON-serializable payload value. When encrypted, contains base64-encoded data.

chain_run_id
string | null

Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.

continued_run_id
string | null

Run ID of the execution this run continued from. Non-null for continue-as-new runs.

event_id
string* required

Unique identifier for this event instance.

event_timestamp
integer* required

Unix timestamp in nanoseconds when the event was created.

event_type
string

Event type discriminator.

Default Value: "CUSTOM_TASK_COMPLETED"

first_execution_run_id
string | null

Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.

parent_workflow_exec_id
string | null* required

Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.

root_workflow_exec_id
string* required

Execution ID of the root workflow that initiated this execution chain.

schedule_id
string | null

Temporal schedule ID that triggered this execution, if any.

workflow_exec_id
string* required

Execution ID of the workflow that emitted this event.

workflow_name
string* required

The registered name of the workflow that emitted this event.

workflow_run_id
string* required

Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.

CustomTaskFailedResponse

Emitted when a custom task fails.

Contains details about the failure for debugging and error handling.

attributes
CustomTaskFailedAttributes* required

Attributes for custom task failed events.

CustomTaskFailedAttributes

Attributes for custom task failed events.

custom_task_id
string* required

Unique identifier for the custom task within the workflow.

custom_task_type
string* required

The type/category of the custom task (e.g., 'llm_call', 'api_request').

failure
Failure* required

Represents an error or exception that occurred during execution.

Failure

Represents an error or exception that occurred during execution.

message
string* required

A human-readable description of the failure.

chain_run_id
string | null

Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.

continued_run_id
string | null

Run ID of the execution this run continued from. Non-null for continue-as-new runs.

event_id
string* required

Unique identifier for this event instance.

event_timestamp
integer* required

Unix timestamp in nanoseconds when the event was created.

event_type
string

Event type discriminator.

Default Value: "CUSTOM_TASK_FAILED"

first_execution_run_id
string | null

Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.

parent_workflow_exec_id
string | null* required

Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.

root_workflow_exec_id
string* required

Execution ID of the root workflow that initiated this execution chain.

schedule_id
string | null

Temporal schedule ID that triggered this execution, if any.

workflow_exec_id
string* required

Execution ID of the workflow that emitted this event.

workflow_name
string* required

The registered name of the workflow that emitted this event.

workflow_run_id
string* required

Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.

CustomTaskTimedOutResponse

Emitted when a custom task exceeds its timeout.

Indicates the task did not complete within its configured time limit.

attributes
CustomTaskTimedOutAttributes* required

Attributes for custom task timed out events.

CustomTaskTimedOutAttributes

Attributes for custom task timed out events.

custom_task_id
string* required

Unique identifier for the custom task within the workflow.

custom_task_type
string* required

The type/category of the custom task (e.g., 'llm_call', 'api_request').

timeout_type
string | null

The type of timeout that occurred.

chain_run_id
string | null

Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.

continued_run_id
string | null

Run ID of the execution this run continued from. Non-null for continue-as-new runs.

event_id
string* required

Unique identifier for this event instance.

event_timestamp
integer* required

Unix timestamp in nanoseconds when the event was created.

event_type
string

Event type discriminator.

Default Value: "CUSTOM_TASK_TIMED_OUT"

first_execution_run_id
string | null

Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.

parent_workflow_exec_id
string | null* required

Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.

root_workflow_exec_id
string* required

Execution ID of the root workflow that initiated this execution chain.

schedule_id
string | null

Temporal schedule ID that triggered this execution, if any.

workflow_exec_id
string* required

Execution ID of the workflow that emitted this event.

workflow_name
string* required

The registered name of the workflow that emitted this event.

workflow_run_id
string* required

Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.

CustomTaskCanceledResponse

Emitted when a custom task is canceled.

Indicates the task was explicitly stopped before completion.

attributes
CustomTaskCanceledAttributes* required

Attributes for custom task canceled events.

CustomTaskCanceledAttributes

Attributes for custom task canceled events.

custom_task_id
string* required

Unique identifier for the custom task within the workflow.

custom_task_type
string* required

The type/category of the custom task (e.g., 'llm_call', 'api_request').

reason
string | null

Optional reason provided for the cancellation.

chain_run_id
string | null

Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.

continued_run_id
string | null

Run ID of the execution this run continued from. Non-null for continue-as-new runs.

event_id
string* required

Unique identifier for this event instance.

event_timestamp
integer* required

Unix timestamp in nanoseconds when the event was created.

event_type
string

Event type discriminator.

Default Value: "CUSTOM_TASK_CANCELED"

first_execution_run_id
string | null

Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.

parent_workflow_exec_id
string | null* required

Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.

root_workflow_exec_id
string* required

Execution ID of the root workflow that initiated this execution chain.

schedule_id
string | null

Temporal schedule ID that triggered this execution, if any.

workflow_exec_id
string* required

Execution ID of the workflow that emitted this event.

workflow_name
string* required

The registered name of the workflow that emitted this event.

workflow_run_id
string* required

Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.

ActivityTaskStartedResponse

Emitted when an activity task begins execution.

This is the first event for an activity, emitted on the first attempt only. Subsequent retry attempts emit ACTIVITY_TASK_RETRYING instead.

Attributes for activity task started events.

ActivityTaskStartedAttributesResponse

Attributes for activity task started events.

activity_name
string* required

The registered name of the activity being executed.

input
JSONPayloadResponse* required

A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied.

JSONPayloadResponse

A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied.

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

The encoding of the payload

type
string

Discriminator indicating this is a raw JSON payload.

Default Value: "json"

value
any* required

The JSON-serializable payload value. When encrypted, contains base64-encoded data.

task_id
string* required

Unique identifier for the activity task within the workflow.

chain_run_id
string | null

Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.

continued_run_id
string | null

Run ID of the execution this run continued from. Non-null for continue-as-new runs.

event_id
string* required

Unique identifier for this event instance.

event_timestamp
integer* required

Unix timestamp in nanoseconds when the event was created.

event_type
string

Event type discriminator.

Default Value: "ACTIVITY_TASK_STARTED"

first_execution_run_id
string | null

Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.

parent_workflow_exec_id
string | null* required

Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.

root_workflow_exec_id
string* required

Execution ID of the root workflow that initiated this execution chain.

schedule_id
string | null

Temporal schedule ID that triggered this execution, if any.

workflow_exec_id
string* required

Execution ID of the workflow that emitted this event.

workflow_name
string* required

The registered name of the workflow that emitted this event.

workflow_run_id
string* required

Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.

ActivityTaskCompletedResponse

Emitted when an activity task completes successfully.

Contains timing information about the successful execution.

Attributes for activity task completed events.

ActivityTaskCompletedAttributesResponse

Attributes for activity task completed events.

activity_name
string* required

The registered name of the activity being executed.

result
JSONPayloadResponse* required

A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied.

JSONPayloadResponse

A payload containing arbitrary JSON data.

Used for complete state snapshots or final results. When encrypted, the value field contains base64-encoded encrypted data and encoding_options indicates the type of encryption applied.

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

The encoding of the payload

type
string

Discriminator indicating this is a raw JSON payload.

Default Value: "json"

value
any* required

The JSON-serializable payload value. When encrypted, contains base64-encoded data.

task_id
string* required

Unique identifier for the activity task within the workflow.

chain_run_id
string | null

Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.

continued_run_id
string | null

Run ID of the execution this run continued from. Non-null for continue-as-new runs.

event_id
string* required

Unique identifier for this event instance.

event_timestamp
integer* required

Unix timestamp in nanoseconds when the event was created.

event_type
string

Event type discriminator.

Default Value: "ACTIVITY_TASK_COMPLETED"

first_execution_run_id
string | null

Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.

parent_workflow_exec_id
string | null* required

Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.

root_workflow_exec_id
string* required

Execution ID of the root workflow that initiated this execution chain.

schedule_id
string | null

Temporal schedule ID that triggered this execution, if any.

workflow_exec_id
string* required

Execution ID of the workflow that emitted this event.

workflow_name
string* required

The registered name of the workflow that emitted this event.

workflow_run_id
string* required

Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.

ActivityTaskRetryingResponse

Emitted when an activity task fails and will be retried.

Contains information about the failed attempt and the error that occurred.

attributes
ActivityTaskRetryingAttributes* required

Attributes for activity task retrying events.

ActivityTaskRetryingAttributes

Attributes for activity task retrying events.

activity_name
string* required

The registered name of the activity being executed.

attempt
integer* required

The attempt number that failed (1-indexed).

failure
Failure* required

Represents an error or exception that occurred during execution.

Failure

Represents an error or exception that occurred during execution.

message
string* required

A human-readable description of the failure.

task_id
string* required

Unique identifier for the activity task within the workflow.

chain_run_id
string | null

Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.

continued_run_id
string | null

Run ID of the execution this run continued from. Non-null for continue-as-new runs.

event_id
string* required

Unique identifier for this event instance.

event_timestamp
integer* required

Unix timestamp in nanoseconds when the event was created.

event_type
string

Event type discriminator.

Default Value: "ACTIVITY_TASK_RETRYING"

first_execution_run_id
string | null

Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.

parent_workflow_exec_id
string | null* required

Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.

root_workflow_exec_id
string* required

Execution ID of the root workflow that initiated this execution chain.

schedule_id
string | null

Temporal schedule ID that triggered this execution, if any.

workflow_exec_id
string* required

Execution ID of the workflow that emitted this event.

workflow_name
string* required

The registered name of the workflow that emitted this event.

workflow_run_id
string* required

Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.

ActivityTaskFailedResponse

Emitted when an activity task fails after exhausting all retry attempts.

This is a terminal event indicating the activity could not complete successfully.

attributes
ActivityTaskFailedAttributes* required

Attributes for activity task failed events (final failure after all retries).

ActivityTaskFailedAttributes

Attributes for activity task failed events (final failure after all retries).

activity_name
string* required

The registered name of the activity being executed.

attempt
integer* required

The final attempt number that failed (1-indexed).

failure
Failure* required

Represents an error or exception that occurred during execution.

Failure

Represents an error or exception that occurred during execution.

message
string* required

A human-readable description of the failure.

task_id
string* required

Unique identifier for the activity task within the workflow.

chain_run_id
string | null

Identifies one start of an execution. Shared by its continue-as-new, retry and reset runs, and by every sub-workflow below it. Starting the same execution ID again gives a new value.

continued_run_id
string | null

Run ID of the execution this run continued from. Non-null for continue-as-new runs.

event_id
string* required

Unique identifier for this event instance.

event_timestamp
integer* required

Unix timestamp in nanoseconds when the event was created.

event_type
string

Event type discriminator.

Default Value: "ACTIVITY_TASK_FAILED"

first_execution_run_id
string | null

Run ID of the first execution in this workflow chain. Equals workflow_run_id on a fresh start. Continue-as-new, retry and reset runs keep the original value.

parent_workflow_exec_id
string | null* required

Execution ID of the parent workflow that initiated this execution. If this is a root workflow, this field is not set.

root_workflow_exec_id
string* required

Execution ID of the root workflow that initiated this execution chain.

schedule_id
string | null

Temporal schedule ID that triggered this execution, if any.

workflow_exec_id
string* required

Execution ID of the workflow that emitted this event.

workflow_name
string* required

The registered name of the workflow that emitted this event.

workflow_run_id
string* required

Run ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.

next_cursor
string | null

Cursor for pagination.