query WorkflowExecution($workflowExecutionId: ID!) {
workflowExecution(workflowExecutionId: $workflowExecutionId) {
id
workflowId
workflow {
id
name
trigger
startStepId
steps {
id
workflowId
type
name
payload
transitions
}
publishedAt {
unixTimestamp
iso8601
}
}
triggeredBy
executionStatus
errorMessage
}
}{
"workflowExecutionId": "id"
}{
"data": {
"workflowExecution": {
"id": "id",
"workflowId": "id",
"workflow": {
"id": "id",
"name": "string",
"trigger": "string",
"startStepId": "id",
"steps": [
{
"id": "id",
"workflowId": "id",
"type": "CONDITION",
"name": "string",
"payload": "string",
"transitions": [
"id"
]
}
],
"publishedAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"triggeredBy": "string",
"executionStatus": "QUEUED",
"errorMessage": "string"
}
}
}workflowExecution
Get a single workflow execution by id. Returns null if no execution with the given ID exists. Use this to inspect the status, timing, and per-step results of a specific run.
workflowExecution(workflowExecutionId: ID!): WorkflowExecutionArguments
Returns
The workflow this execution belongs to. Null if the workflow has been deleted.
The event type that triggered this execution (e.g., thread.thread_created).
Human-readable error message when executionStatus is FAILED.
When the execution began processing. While QUEUED, the time it was enqueued.
When the execution reached a terminal state (SUCCESS, FAILED, or CANCELLED).
How long the run took to execute, in milliseconds. Measured from when it began processing, so it excludes time spent queued.
The type of entity this execution was triggered for.
The ID of the entity this execution was triggered for.
The actor that manually triggered this execution, if it was manually triggered.
The step executions for this workflow execution.
query WorkflowExecution($workflowExecutionId: ID!) {
workflowExecution(workflowExecutionId: $workflowExecutionId) {
id
workflowId
workflow {
id
name
trigger
startStepId
steps {
id
workflowId
type
name
payload
transitions
}
publishedAt {
unixTimestamp
iso8601
}
}
triggeredBy
executionStatus
errorMessage
}
}{
"workflowExecutionId": "id"
}{
"data": {
"workflowExecution": {
"id": "id",
"workflowId": "id",
"workflow": {
"id": "id",
"name": "string",
"trigger": "string",
"startStepId": "id",
"steps": [
{
"id": "id",
"workflowId": "id",
"type": "CONDITION",
"name": "string",
"payload": "string",
"transitions": [
"id"
]
}
],
"publishedAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"triggeredBy": "string",
"executionStatus": "QUEUED",
"errorMessage": "string"
}
}
}Was this page helpful?

