- API Reference
- endpoint
- Workflows
Workflows Events
Workflows 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" | "*"queryactivity_name
stringqueryactivity_id
stringqueryworkflow_name
stringqueryworkflow_exec_id
stringqueryroot_workflow_exec_id
stringqueryparent_workflow_exec_id
stringquerystream
stringquerystart_seq
integerquerymetadata_filters
map<any> | nullqueryworkflow_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"> | nullquerylast-event-id
string | nullheaderServer-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/events/list
Get Workflow Events
Get Workflow Events
Parameters
root_workflow_exec_id
string | nullqueryExecution ID of the root workflow that initiated this execution chain.
workflow_exec_id
string | nullqueryExecution ID of the workflow that emitted this event.
workflow_run_id
string | nullqueryRun ID of the workflow that emitted this event.
limit
integerqueryMaximum number of events to return.
cursor
string | nullqueryCursor for pagination.
Responses
Successful Response
events
array<WorkflowExecutionStartedResponse | WorkflowExecutionCompletedResponse | WorkflowExecutionFailedResponse | WorkflowExecutionCanceledResponse | WorkflowExecutionContinuedAsNewResponse | WorkflowTaskTimedOutResponse | WorkflowTaskFailedResponse | CustomTaskStartedResponse | CustomTaskInProgressResponse | CustomTaskCompletedResponse | CustomTaskFailedResponse | CustomTaskTimedOutResponse | CustomTaskCanceledResponse | ActivityTaskStartedResponse | ActivityTaskCompletedResponse | ActivityTaskRetryingResponse | ActivityTaskFailedResponse>* requiredList 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
integerWorkflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.
Default Value: 1
display_name
string | nullThe user-friendly display name of the workflow, if available.
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
stringDiscriminator indicating this is a raw JSON payload.
Default Value: "json"
value
any* requiredThe JSON-serializable payload value. When encrypted, contains base64-encoded data.
task_id
string* requiredUnique identifier for the task within the workflow execution.
workflow_name
string* requiredThe registered name of the workflow being executed.
chain_run_id
string | nullIdentifies 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 | nullRun ID of the execution this run continued from. Non-null for continue-as-new runs.
event_id
string* requiredUnique identifier for this event instance.
event_timestamp
integer* requiredUnix timestamp in nanoseconds when the event was created.
event_type
stringEvent type discriminator.
Default Value: "WORKFLOW_EXECUTION_STARTED"
first_execution_run_id
string | nullRun 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* requiredExecution 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* requiredExecution ID of the root workflow that initiated this execution chain.
schedule_id
string | nullTemporal schedule ID that triggered this execution, if any.
workflow_exec_id
string* requiredExecution ID of the workflow that emitted this event.
workflow_name
string* requiredThe registered name of the workflow that emitted this event.
workflow_run_id
string* requiredRun 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
integerWorkflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.
Default Value: 1
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
stringDiscriminator indicating this is a raw JSON payload.
Default Value: "json"
value
any* requiredThe JSON-serializable payload value. When encrypted, contains base64-encoded data.
task_id
string* requiredUnique identifier for the task within the workflow execution.
chain_run_id
string | nullIdentifies 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 | nullRun ID of the execution this run continued from. Non-null for continue-as-new runs.
event_id
string* requiredUnique identifier for this event instance.
event_timestamp
integer* requiredUnix timestamp in nanoseconds when the event was created.
event_type
stringEvent type discriminator.
Default Value: "WORKFLOW_EXECUTION_COMPLETED"
first_execution_run_id
string | nullRun 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* requiredExecution 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* requiredExecution ID of the root workflow that initiated this execution chain.
schedule_id
string | nullTemporal schedule ID that triggered this execution, if any.
workflow_exec_id
string* requiredExecution ID of the workflow that emitted this event.
workflow_name
string* requiredThe registered name of the workflow that emitted this event.
workflow_run_id
string* requiredRun 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
integerWorkflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.
Default Value: 1
Represents an error or exception that occurred during execution.
Failure
Represents an error or exception that occurred during execution.
message
string* requiredA human-readable description of the failure.
task_id
string* requiredUnique identifier for the task within the workflow execution.
chain_run_id
string | nullIdentifies 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 | nullRun ID of the execution this run continued from. Non-null for continue-as-new runs.
event_id
string* requiredUnique identifier for this event instance.
event_timestamp
integer* requiredUnix timestamp in nanoseconds when the event was created.
event_type
stringEvent type discriminator.
Default Value: "WORKFLOW_EXECUTION_FAILED"
first_execution_run_id
string | nullRun 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* requiredExecution 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* requiredExecution ID of the root workflow that initiated this execution chain.
schedule_id
string | nullTemporal schedule ID that triggered this execution, if any.
workflow_exec_id
string* requiredExecution ID of the workflow that emitted this event.
workflow_name
string* requiredThe registered name of the workflow that emitted this event.
workflow_run_id
string* requiredRun 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
integerWorkflow retry attempt number. 1 on first run and CAN; >1 on workflow-level retries.
Default Value: 1
reason
string | nullOptional reason provided for the cancellation.
task_id
string* requiredUnique identifier for the task within the workflow execution.
chain_run_id
string | nullIdentifies 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 | nullRun ID of the execution this run continued from. Non-null for continue-as-new runs.
event_id
string* requiredUnique identifier for this event instance.
event_timestamp
integer* requiredUnix timestamp in nanoseconds when the event was created.
event_type
stringEvent type discriminator.
Default Value: "WORKFLOW_EXECUTION_CANCELED"
first_execution_run_id
string | nullRun 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* requiredExecution 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* requiredExecution ID of the root workflow that initiated this execution chain.
schedule_id
string | nullTemporal schedule ID that triggered this execution, if any.
workflow_exec_id
string* requiredExecution ID of the workflow that emitted this event.
workflow_name
string* requiredThe registered name of the workflow that emitted this event.
workflow_run_id
string* requiredRun 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.
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
stringDiscriminator indicating this is a raw JSON payload.
Default Value: "json"
value
any* requiredThe JSON-serializable payload value. When encrypted, contains base64-encoded data.
new_execution_run_id
string* requiredThe run ID of the new workflow execution that continues this workflow.
task_id
string* requiredUnique identifier for the task within the workflow execution.
workflow_name
string* requiredThe registered name of the continued workflow.
chain_run_id
string | nullIdentifies 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 | nullRun ID of the execution this run continued from. Non-null for continue-as-new runs.
event_id
string* requiredUnique identifier for this event instance.
event_timestamp
integer* requiredUnix timestamp in nanoseconds when the event was created.
event_type
stringEvent type discriminator.
Default Value: "WORKFLOW_EXECUTION_CONTINUED_AS_NEW"
first_execution_run_id
string | nullRun 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* requiredExecution 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* requiredExecution ID of the root workflow that initiated this execution chain.
schedule_id
string | nullTemporal schedule ID that triggered this execution, if any.
workflow_exec_id
string* requiredExecution ID of the workflow that emitted this event.
workflow_name
string* requiredThe registered name of the workflow that emitted this event.
workflow_run_id
string* requiredRun 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 for workflow task timed out events.
WorkflowTaskTimedOutAttributes
Attributes for workflow task timed out events.
task_id
string* requiredUnique identifier for the task within the workflow execution.
timeout_type
string | nullThe type of timeout that occurred (e.g., 'START_TO_CLOSE', 'SCHEDULE_TO_START').
chain_run_id
string | nullIdentifies 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 | nullRun ID of the execution this run continued from. Non-null for continue-as-new runs.
event_id
string* requiredUnique identifier for this event instance.
event_timestamp
integer* requiredUnix timestamp in nanoseconds when the event was created.
event_type
stringEvent type discriminator.
Default Value: "WORKFLOW_TASK_TIMED_OUT"
first_execution_run_id
string | nullRun 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* requiredExecution 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* requiredExecution ID of the root workflow that initiated this execution chain.
schedule_id
string | nullTemporal schedule ID that triggered this execution, if any.
workflow_exec_id
string* requiredExecution ID of the workflow that emitted this event.
workflow_name
string* requiredThe registered name of the workflow that emitted this event.
workflow_run_id
string* requiredRun 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 for workflow task failed events.
WorkflowTaskFailedAttributes
Attributes for workflow task failed events.
Represents an error or exception that occurred during execution.
Failure
Represents an error or exception that occurred during execution.
message
string* requiredA human-readable description of the failure.
task_id
string* requiredUnique identifier for the task within the workflow execution.
chain_run_id
string | nullIdentifies 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 | nullRun ID of the execution this run continued from. Non-null for continue-as-new runs.
event_id
string* requiredUnique identifier for this event instance.
event_timestamp
integer* requiredUnix timestamp in nanoseconds when the event was created.
event_type
stringEvent type discriminator.
Default Value: "WORKFLOW_TASK_FAILED"
first_execution_run_id
string | nullRun 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* requiredExecution 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* requiredExecution ID of the root workflow that initiated this execution chain.
schedule_id
string | nullTemporal schedule ID that triggered this execution, if any.
workflow_exec_id
string* requiredExecution ID of the workflow that emitted this event.
workflow_name
string* requiredThe registered name of the workflow that emitted this event.
workflow_run_id
string* requiredRun 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* requiredUnique identifier for the custom task within the workflow.
custom_task_type
string* requiredThe type/category of the custom task (e.g., 'llm_call', 'api_request').
payload
JSONPayloadResponseA 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
stringDiscriminator indicating this is a raw JSON payload.
Default Value: "json"
value
any* requiredThe JSON-serializable payload value. When encrypted, contains base64-encoded data.
chain_run_id
string | nullIdentifies 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 | nullRun ID of the execution this run continued from. Non-null for continue-as-new runs.
event_id
string* requiredUnique identifier for this event instance.
event_timestamp
integer* requiredUnix timestamp in nanoseconds when the event was created.
event_type
stringEvent type discriminator.
Default Value: "CUSTOM_TASK_STARTED"
first_execution_run_id
string | nullRun 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* requiredExecution 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* requiredExecution ID of the root workflow that initiated this execution chain.
schedule_id
string | nullTemporal schedule ID that triggered this execution, if any.
workflow_exec_id
string* requiredExecution ID of the workflow that emitted this event.
workflow_name
string* requiredThe registered name of the workflow that emitted this event.
workflow_run_id
string* requiredRun 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* requiredUnique identifier for the custom task within the workflow.
custom_task_type
string* requiredThe 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
stringDiscriminator indicating this is a raw JSON payload.
Default Value: "json"
value
any* requiredThe 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
stringDiscriminator indicating this is a JSON Patch payload.
Default Value: "json_patch"
JSONPatchAppend
op
string* required'append' is an extension for efficient string concatenation in streaming scenarios.
path
string* requiredA 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* requiredAdd operation
path
string* requiredA 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* requiredReplace operation
path
string* requiredA 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* requiredRemove operation
path
string* requiredA 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 | nullIdentifies 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 | nullRun ID of the execution this run continued from. Non-null for continue-as-new runs.
event_id
string* requiredUnique identifier for this event instance.
event_timestamp
integer* requiredUnix timestamp in nanoseconds when the event was created.
event_type
stringEvent type discriminator.
Default Value: "CUSTOM_TASK_IN_PROGRESS"
first_execution_run_id
string | nullRun 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* requiredExecution 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* requiredExecution ID of the root workflow that initiated this execution chain.
schedule_id
string | nullTemporal schedule ID that triggered this execution, if any.
workflow_exec_id
string* requiredExecution ID of the workflow that emitted this event.
workflow_name
string* requiredThe registered name of the workflow that emitted this event.
workflow_run_id
string* requiredRun 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* requiredUnique identifier for the custom task within the workflow.
custom_task_type
string* requiredThe 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
stringDiscriminator indicating this is a raw JSON payload.
Default Value: "json"
value
any* requiredThe JSON-serializable payload value. When encrypted, contains base64-encoded data.
chain_run_id
string | nullIdentifies 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 | nullRun ID of the execution this run continued from. Non-null for continue-as-new runs.
event_id
string* requiredUnique identifier for this event instance.
event_timestamp
integer* requiredUnix timestamp in nanoseconds when the event was created.
event_type
stringEvent type discriminator.
Default Value: "CUSTOM_TASK_COMPLETED"
first_execution_run_id
string | nullRun 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* requiredExecution 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* requiredExecution ID of the root workflow that initiated this execution chain.
schedule_id
string | nullTemporal schedule ID that triggered this execution, if any.
workflow_exec_id
string* requiredExecution ID of the workflow that emitted this event.
workflow_name
string* requiredThe registered name of the workflow that emitted this event.
workflow_run_id
string* requiredRun 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 for custom task failed events.
CustomTaskFailedAttributes
Attributes for custom task failed events.
custom_task_id
string* requiredUnique identifier for the custom task within the workflow.
custom_task_type
string* requiredThe type/category of the custom task (e.g., 'llm_call', 'api_request').
Represents an error or exception that occurred during execution.
Failure
Represents an error or exception that occurred during execution.
message
string* requiredA human-readable description of the failure.
chain_run_id
string | nullIdentifies 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 | nullRun ID of the execution this run continued from. Non-null for continue-as-new runs.
event_id
string* requiredUnique identifier for this event instance.
event_timestamp
integer* requiredUnix timestamp in nanoseconds when the event was created.
event_type
stringEvent type discriminator.
Default Value: "CUSTOM_TASK_FAILED"
first_execution_run_id
string | nullRun 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* requiredExecution 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* requiredExecution ID of the root workflow that initiated this execution chain.
schedule_id
string | nullTemporal schedule ID that triggered this execution, if any.
workflow_exec_id
string* requiredExecution ID of the workflow that emitted this event.
workflow_name
string* requiredThe registered name of the workflow that emitted this event.
workflow_run_id
string* requiredRun 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 for custom task timed out events.
CustomTaskTimedOutAttributes
Attributes for custom task timed out events.
custom_task_id
string* requiredUnique identifier for the custom task within the workflow.
custom_task_type
string* requiredThe type/category of the custom task (e.g., 'llm_call', 'api_request').
timeout_type
string | nullThe type of timeout that occurred.
chain_run_id
string | nullIdentifies 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 | nullRun ID of the execution this run continued from. Non-null for continue-as-new runs.
event_id
string* requiredUnique identifier for this event instance.
event_timestamp
integer* requiredUnix timestamp in nanoseconds when the event was created.
event_type
stringEvent type discriminator.
Default Value: "CUSTOM_TASK_TIMED_OUT"
first_execution_run_id
string | nullRun 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* requiredExecution 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* requiredExecution ID of the root workflow that initiated this execution chain.
schedule_id
string | nullTemporal schedule ID that triggered this execution, if any.
workflow_exec_id
string* requiredExecution ID of the workflow that emitted this event.
workflow_name
string* requiredThe registered name of the workflow that emitted this event.
workflow_run_id
string* requiredRun 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 for custom task canceled events.
CustomTaskCanceledAttributes
Attributes for custom task canceled events.
custom_task_id
string* requiredUnique identifier for the custom task within the workflow.
custom_task_type
string* requiredThe type/category of the custom task (e.g., 'llm_call', 'api_request').
reason
string | nullOptional reason provided for the cancellation.
chain_run_id
string | nullIdentifies 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 | nullRun ID of the execution this run continued from. Non-null for continue-as-new runs.
event_id
string* requiredUnique identifier for this event instance.
event_timestamp
integer* requiredUnix timestamp in nanoseconds when the event was created.
event_type
stringEvent type discriminator.
Default Value: "CUSTOM_TASK_CANCELED"
first_execution_run_id
string | nullRun 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* requiredExecution 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* requiredExecution ID of the root workflow that initiated this execution chain.
schedule_id
string | nullTemporal schedule ID that triggered this execution, if any.
workflow_exec_id
string* requiredExecution ID of the workflow that emitted this event.
workflow_name
string* requiredThe registered name of the workflow that emitted this event.
workflow_run_id
string* requiredRun 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* requiredThe registered name of the activity being executed.
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
stringDiscriminator indicating this is a raw JSON payload.
Default Value: "json"
value
any* requiredThe JSON-serializable payload value. When encrypted, contains base64-encoded data.
task_id
string* requiredUnique identifier for the activity task within the workflow.
chain_run_id
string | nullIdentifies 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 | nullRun ID of the execution this run continued from. Non-null for continue-as-new runs.
event_id
string* requiredUnique identifier for this event instance.
event_timestamp
integer* requiredUnix timestamp in nanoseconds when the event was created.
event_type
stringEvent type discriminator.
Default Value: "ACTIVITY_TASK_STARTED"
first_execution_run_id
string | nullRun 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* requiredExecution 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* requiredExecution ID of the root workflow that initiated this execution chain.
schedule_id
string | nullTemporal schedule ID that triggered this execution, if any.
workflow_exec_id
string* requiredExecution ID of the workflow that emitted this event.
workflow_name
string* requiredThe registered name of the workflow that emitted this event.
workflow_run_id
string* requiredRun 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* requiredThe registered name of the activity being executed.
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
stringDiscriminator indicating this is a raw JSON payload.
Default Value: "json"
value
any* requiredThe JSON-serializable payload value. When encrypted, contains base64-encoded data.
task_id
string* requiredUnique identifier for the activity task within the workflow.
chain_run_id
string | nullIdentifies 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 | nullRun ID of the execution this run continued from. Non-null for continue-as-new runs.
event_id
string* requiredUnique identifier for this event instance.
event_timestamp
integer* requiredUnix timestamp in nanoseconds when the event was created.
event_type
stringEvent type discriminator.
Default Value: "ACTIVITY_TASK_COMPLETED"
first_execution_run_id
string | nullRun 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* requiredExecution 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* requiredExecution ID of the root workflow that initiated this execution chain.
schedule_id
string | nullTemporal schedule ID that triggered this execution, if any.
workflow_exec_id
string* requiredExecution ID of the workflow that emitted this event.
workflow_name
string* requiredThe registered name of the workflow that emitted this event.
workflow_run_id
string* requiredRun 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 for activity task retrying events.
ActivityTaskRetryingAttributes
Attributes for activity task retrying events.
activity_name
string* requiredThe registered name of the activity being executed.
attempt
integer* requiredThe attempt number that failed (1-indexed).
Represents an error or exception that occurred during execution.
Failure
Represents an error or exception that occurred during execution.
message
string* requiredA human-readable description of the failure.
task_id
string* requiredUnique identifier for the activity task within the workflow.
chain_run_id
string | nullIdentifies 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 | nullRun ID of the execution this run continued from. Non-null for continue-as-new runs.
event_id
string* requiredUnique identifier for this event instance.
event_timestamp
integer* requiredUnix timestamp in nanoseconds when the event was created.
event_type
stringEvent type discriminator.
Default Value: "ACTIVITY_TASK_RETRYING"
first_execution_run_id
string | nullRun 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* requiredExecution 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* requiredExecution ID of the root workflow that initiated this execution chain.
schedule_id
string | nullTemporal schedule ID that triggered this execution, if any.
workflow_exec_id
string* requiredExecution ID of the workflow that emitted this event.
workflow_name
string* requiredThe registered name of the workflow that emitted this event.
workflow_run_id
string* requiredRun 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 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* requiredThe registered name of the activity being executed.
attempt
integer* requiredThe final attempt number that failed (1-indexed).
Represents an error or exception that occurred during execution.
Failure
Represents an error or exception that occurred during execution.
message
string* requiredA human-readable description of the failure.
task_id
string* requiredUnique identifier for the activity task within the workflow.
chain_run_id
string | nullIdentifies 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 | nullRun ID of the execution this run continued from. Non-null for continue-as-new runs.
event_id
string* requiredUnique identifier for this event instance.
event_timestamp
integer* requiredUnix timestamp in nanoseconds when the event was created.
event_type
stringEvent type discriminator.
Default Value: "ACTIVITY_TASK_FAILED"
first_execution_run_id
string | nullRun 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* requiredExecution 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* requiredExecution ID of the root workflow that initiated this execution chain.
schedule_id
string | nullTemporal schedule ID that triggered this execution, if any.
workflow_exec_id
string* requiredExecution ID of the workflow that emitted this event.
workflow_name
string* requiredThe registered name of the workflow that emitted this event.
workflow_run_id
string* requiredRun ID of the workflow execution. Changes on continue-as-new while workflow_exec_id stays the same.
next_cursor
string | nullCursor for pagination.