Appearance
Rule.io SDK / client/src / Automation
Interface: Automation
Defined in: client/src/resources/automations/automations.types.ts:56
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:73
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:87
ISO 8601 timestamp of when the automation was created.
description?
optionaldescription?:string
Defined in: client/src/resources/automations/automations.types.ts:66
Optional description.
id?
optionalid?:number
Defined in: client/src/resources/automations/automations.types.ts:62
Automation ID.
Optional because the API may omit it in partial responses.
name
name:
string
Defined in: client/src/resources/automations/automations.types.ts:64
Human-readable automation name.
sendoutType?
optionalsendoutType?:AutomationSendoutType
Defined in: client/src/resources/automations/automations.types.ts:85
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:79
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:89
ISO 8601 timestamp of when the automation was last updated.