Automation rules engine with scheduling, snoozing, and alerting
List automation rules
Supervisor or admin only.
query Parameters
is_activetrigger_typeList automation rules › Responses
Automation rules
idnamedescriptionis_activetrigger_typeConditions for rule matching (empty = always match)
Tagged-union array of automation actions
priorityrollout_percentagestop_on_matchcooldown_secscreated_atupdated_atsnoozed_untilcreated_byupdated_byCreate an automation rule
Supervisor or admin only.
Create an automation rule › Request Body
nametrigger_typedescriptionis_activeconditionsalert_settingsschedule_settingspriorityrollout_percentagestop_on_matchcooldown_secsCreate an automation rule › Responses
Automation rule created
idnamedescriptionis_activetrigger_typeConditions for rule matching (empty = always match)
Tagged-union array of automation actions
priorityrollout_percentagestop_on_matchcooldown_secscreated_atupdated_atsnoozed_untilcreated_byupdated_byList snoozed automation rules
Returns rules currently snoozed (snoozed_until in the future). Supervisor or admin only.
query Parameters
trigger_typeis_activepageper_pageList snoozed automation rules › Responses
Snoozed automation rules
idnamedescriptionis_activetrigger_typeConditions for rule matching (empty = always match)
Tagged-union array of automation actions
priorityrollout_percentagestop_on_matchcooldown_secscreated_atupdated_atsnoozed_untilcreated_byupdated_byAutomation stats overview
Aggregate stats across all rules. Supervisor or admin only.
query Parameters
window_daysAutomation stats overview › Responses
Automation stats overview
total_rulesactive_rulessnoozed_rulestotal_eventstotal_runsmatched_runsexecuted_runsfailed_eventsAutomation stats time series
Bucketed time series of rule runs. Supervisor or admin only.
query Parameters
window_daysbucket_daysAutomation stats time series › Responses
Time series data
buckettotal_runsmatched_runsexecuted_runsAutomation alert stats
Rules with high failure rates or anomalous patterns. Supervisor or admin only.
query Parameters
window_daysmin_matched_runsfailure_rate_threshold_pctAutomation alert stats › Responses
Alert stats per rule
rule_idrule_namematched_runsexecuted_runsfailure_rate_pctalert_levelDry-run an automation rule against a test payload
Evaluates conditions and simulates actions without executing them. Supervisor or admin only.
Dry-run an automation rule against a test payload › Request Body
event_payloadrule_idtrigger_typeconditionsDry-run an automation rule against a test payload › Responses
Dry-run result
matchedwould_executeGet an automation rule by ID
Supervisor or admin only.
path Parameters
idGet an automation rule by ID › Responses
Automation rule
idnamedescriptionis_activetrigger_typeConditions for rule matching (empty = always match)
Tagged-union array of automation actions
priorityrollout_percentagestop_on_matchcooldown_secscreated_atupdated_atsnoozed_untilcreated_byupdated_byUpdate an automation rule
Supervisor or admin only.
path Parameters
idUpdate an automation rule › Request Body
namedescriptionis_activetrigger_typeconditionsalert_settingsschedule_settingspriorityrollout_percentagestop_on_matchcooldown_secsUpdate an automation rule › Responses
Updated automation rule
idnamedescriptionis_activetrigger_typeConditions for rule matching (empty = always match)
Tagged-union array of automation actions
priorityrollout_percentagestop_on_matchcooldown_secscreated_atupdated_atsnoozed_untilcreated_byupdated_bySnooze an automation rule until a given time
Supervisor or admin only.
path Parameters
idSnooze an automation rule until a given time › Request Body
snoozed_untilSnooze an automation rule until a given time › Responses
Rule snoozed
messageidsnoozed_untilGet time series stats for a specific automation rule
Supervisor or admin only.
path Parameters
idquery Parameters
window_daysbucket_daysGet time series stats for a specific automation rule › Responses
Time series for this rule
buckettotal_runsmatched_runsexecuted_runsGet the effective state of an automation rule
Returns whether the rule is currently active considering snooze, global pause, and schedule. Supervisor or admin only.
path Parameters
idGet the effective state of an automation rule › Responses
Effective state
rule_idis_activeis_snoozedsnoozed_untilglobal_pausedschedule_activeeffective_activeUpdate alert settings for an automation rule
Accepts either a preset name or explicit alert_settings. Supervisor or admin only.
path Parameters
idUpdate alert settings for an automation rule › Request Body
presetUpdate alert settings for an automation rule › Responses
Updated automation rule
idnamedescriptionis_activetrigger_typeConditions for rule matching (empty = always match)
Tagged-union array of automation actions
priorityrollout_percentagestop_on_matchcooldown_secscreated_atupdated_atsnoozed_untilcreated_byupdated_byUpdate schedule settings for an automation rule
Supervisor or admin only.
path Parameters
idUpdate schedule settings for an automation rule › Responses
Updated automation rule
idnamedescriptionis_activetrigger_typeConditions for rule matching (empty = always match)
Tagged-union array of automation actions
priorityrollout_percentagestop_on_matchcooldown_secscreated_atupdated_atsnoozed_untilcreated_byupdated_byUpdate rollout percentage for an automation rule
Supervisor or admin only.
path Parameters
idUpdate rollout percentage for an automation rule › Request Body
rollout_percentageUpdate rollout percentage for an automation rule › Responses
Updated automation rule
idnamedescriptionis_activetrigger_typeConditions for rule matching (empty = always match)
Tagged-union array of automation actions
priorityrollout_percentagestop_on_matchcooldown_secscreated_atupdated_atsnoozed_untilcreated_byupdated_byPreview upcoming schedule windows for an automation rule
Returns future time slots when the rule will be active based on its schedule settings. Supervisor or admin only.
path Parameters
idquery Parameters
hoursstart_atPreview upcoming schedule windows for an automation rule › Responses
Schedule preview windows
rule_idGet global automation control state
Returns the singleton automation control record. Supervisor or admin only.
Get global automation control state › Responses
Automation control state
singletonis_pausedupdated_atpause_reasonpaused_untilupdated_byUpdate global automation control state
Pause or resume all automation processing globally. Supervisor or admin only.
Update global automation control state › Request Body
is_pausedpause_reasonpaused_untilUpdate global automation control state › Responses
Updated automation control
singletonis_pausedupdated_atpause_reasonpaused_untilupdated_byList automation rule runs
Paginated (cursor or offset). Supervisor or admin only.
query Parameters
rule_idevent_idcursorKeyset cursor (format ISO8601|uuid)
pageper_pagesort_bysort_orderList automation rule runs › Responses
Automation rule runs
next_cursortotalExport automation runs as CSV
Supervisor or admin only.
query Parameters
limitrule_idevent_idmatchedexecutedsort_bysort_ordercreated_fromcreated_toExport automation runs as CSV › Responses
CSV file of automation runs
List automation runs for a specific rule
Supervisor or admin only.
path Parameters
rule_idquery Parameters
event_idcursorpageper_pagesort_bysort_orderList automation runs for a specific rule › Responses
Runs for the given rule
next_cursortotalList automation runs for a specific event
Supervisor or admin only.
path Parameters
event_idquery Parameters
rule_idcursorpageper_pagesort_bysort_orderList automation runs for a specific event › Responses
Runs for the given event
next_cursortotalGet a single automation run by ID
Supervisor or admin only.
path Parameters
idGet a single automation run by ID › Responses
Automation run detail
idevent_idrule_idconversation_idmatchedexecutedresultcreated_atrule_nameevent_typeevent_sourceevent_statuscontact_idchannel_sourceList automation event queue items
Supervisor or admin only.
query Parameters
statusevent_typesourcepayload_hashcursorpageper_pagesort_bysort_orderList automation event queue items › Responses
Automation event queue items
next_cursortotalExport automation events as CSV
Supervisor or admin only.
query Parameters
limitstatusevent_typesourcepayload_hashsort_bysort_ordercreated_fromcreated_toExport automation events as CSV › Responses
CSV file of automation events
List automation events for a conversation
Supervisor or admin only.
path Parameters
conversation_idquery Parameters
statusevent_typesourcecursorpageper_pagesort_bysort_orderList automation events for a conversation › Responses
Events for the conversation
next_cursortotalList automation events for a rule
Supervisor or admin only.
path Parameters
rule_idquery Parameters
statusevent_typesourcepayload_hashcursorpageper_pagesort_bysort_orderList automation events for a rule › Responses
Events for the rule
next_cursortotalList automation events by payload fingerprint
Finds all events with the given SHA-256 payload hash. Supervisor or admin only.
path Parameters
payload_hash64-char hex SHA-256 digest
List automation events by payload fingerprint › Responses
Events with matching payload hash
idevent_typeconversation_idpayloadpayload_hashSHA-256 hex digest of the payload
sourcestatusattemptsavailable_atcreated_atcontact_idprocessed_aterrorGet a single automation event by ID
Supervisor or admin only.
path Parameters
idGet a single automation event by ID › Responses
Automation event
idevent_typeconversation_idpayloadpayload_hashSHA-256 hex digest of the payload
sourcestatusattemptsavailable_atcreated_atcontact_idprocessed_aterror