Appearance
Rule.io SDK / client/src / Automation
Interface: Automation
Defined in: client/src/resources/automations/automations.types.ts:53
An automation entity as returned by the API.
Properties use camelCase; the wire format is normalised by the SDK.
Properties
active?
optionalactive?:boolean
Defined in: client/src/resources/automations/automations.types.ts:70
Whether the automation is active.
Inactive automations are paused — they do not fire even when the trigger condition is met.
createdAt?
optionalcreatedAt?:string
Defined in: client/src/resources/automations/automations.types.ts:84
ISO 8601 timestamp of when the automation was created.
description?
optionaldescription?:string
Defined in: client/src/resources/automations/automations.types.ts:63
Optional description.
id?
optionalid?:number
Defined in: client/src/resources/automations/automations.types.ts:59
Automation ID.
Optional because the API may omit it in partial responses.
name
name:
string
Defined in: client/src/resources/automations/automations.types.ts:61
Human-readable automation name.
sendoutType?
optionalsendoutType?:AutomationSendoutType
Defined in: client/src/resources/automations/automations.types.ts:82
Sendout type: 'marketing' or 'transactional'.
Mapped from the API's numeric status descriptor object.
trigger?
optionaltrigger?:AutomationTrigger|null
Defined in: client/src/resources/automations/automations.types.ts:76
The trigger that activates this automation.
null means the automation has no trigger (disabled or default state).
updatedAt?
optionalupdatedAt?:string
Defined in: client/src/resources/automations/automations.types.ts:86
ISO 8601 timestamp of when the automation was last updated.