Skip to main content
objectAutomationHistoryDetail

Fields

_id
String

Unique execution history document id.

executionId
String

Execution engine's run id — stable across waiting/resume cycles for the same run.

automationNs
String

Namespace of the automation that ran.

triggerNs
String

Namespace of the trigger that started this run.

triggerType
String

Trigger type at the time this run started.

triggerEvent
String

Trigger event at the time this run started.

targetId
String

Id of the entity the run acted on (typically a customer/conversation).

targetType
String

Type of targetId (e.g. customer).

status
String

Run status: running, completed, failed, waiting, or archived.

startedAt
Date

When the run started.

completedAt
Date

When the run finished, if it has.

duration
Int

Total run duration in milliseconds, once completed.

waitingNodeNs
String

Node the run is paused at, when status is waiting.

waitingReason
String

Why the run is paused (e.g. delay, awaitingInput).

resumeAt
Date

When a waiting run is scheduled to resume, if time-based.

nextNodeNs
String

Node the run would execute next, when status is waiting.

executionContext
JSON

Full execution context (trigger payload, resolved customer, placeholder values) used while running this automation.

May contain customer PII collected by the trigger/flow — treat like any other customer data export.

Per-node execution trace — see ExecutionStep. Populated in full on AutomationHistoryDetail.

nodeCount
Int

Number of nodes executed so far in this run.

errorMessage
String

Failure detail, when status is failed.

modifiedAt
Date

Last time this history document changed.

parentExecutionId
String

Parent run's executionId, when this run was spawned by another (e.g. a sub-flow).

customerPhone
String

Target customer's phone, denormalized for display.

customerName
String

Target customer's name, denormalized for display.

آخر تعديل في ١١ أغسطس ٢٠٢٦