Appearance
Rule.io SDK / client/src / Message
Interface: Message
Defined in: client/src/resources/messages/messages.types.ts:51
A message entity as returned by the API.
This is the base return type for all message methods. For dispatcher- and message-type-specific call sites, prefer the named aliases (EmailCampaignMessage, EmailAutomationMessage) which make the method signature self-documenting.
Properties use camelCase; the wire format is normalised by the SDK.
Properties
createdAt?
optionalcreatedAt?:string
Defined in: client/src/resources/messages/messages.types.ts:83
ISO 8601 timestamp of when the message was created.
dispatcher?
optionaldispatcher?:MessageDispatcher
Defined in: client/src/resources/messages/messages.types.ts:81
Dispatcher this message belongs to.
Present in responses from the v3 API.
fromEmail?
optionalfromEmail?:string|null
Defined in: client/src/resources/messages/messages.types.ts:65
Sending email address (e.g. "jane@acme.com").
fromName?
optionalfromName?:string|null
Defined in: client/src/resources/messages/messages.types.ts:63
Display name of the sender (e.g. "Jane from Acme").
id?
optionalid?:number
Defined in: client/src/resources/messages/messages.types.ts:57
Message ID.
Optional because the API may omit it in partial responses.
messageType?
optionalmessageType?:number
Defined in: client/src/resources/messages/messages.types.ts:75
Message type code.
1 = email, 2 = SMS. Present in responses from the v3 API.
preheader?
optionalpreheader?:string|null
Defined in: client/src/resources/messages/messages.types.ts:61
Short preview text displayed in inbox previews (the preheader).
subject
subject:
string
Defined in: client/src/resources/messages/messages.types.ts:59
Email subject line shown to recipients.
updatedAt?
optionalupdatedAt?:string
Defined in: client/src/resources/messages/messages.types.ts:85
ISO 8601 timestamp of when the message was last updated.
utmCampaign?
optionalutmCampaign?:string|null
Defined in: client/src/resources/messages/messages.types.ts:67
UTM campaign parameter appended to tracked links in the email.
utmTerm?
optionalutmTerm?:string|null
Defined in: client/src/resources/messages/messages.types.ts:69
UTM term parameter appended to tracked links in the email.