Skip to content

Rule.io SDK


Rule.io SDK / client/src / CreateSmsAutomationMessagePayload

Interface: CreateSmsAutomationMessagePayload

Defined in: client/src/resources/messages/messages.types.ts:332

Payload for MessagesClient.createSmsAutomationMessage.

SMS messages do not have sender, preheader, or from-email fields. All fields are optional — the API applies account-level defaults when omitted.

Example

typescript
await client.messages.createSmsAutomationMessage(automationId, {
  utmCampaign: 'welcome-flow',
  automailSetting: { active: true, delayInSeconds: '0' },
});

Properties

automailSetting?

optional automailSetting?: AutomailSetting

Defined in: client/src/resources/messages/messages.types.ts:343

Automail delivery settings for this message.

Omitting this field leaves the setting unchanged on update, or uses the API default (active, no delay) on create.


utmCampaign?

optional utmCampaign?: string | null

Defined in: client/src/resources/messages/messages.types.ts:334

UTM campaign parameter appended to tracked links.


utmTerm?

optional utmTerm?: string | null

Defined in: client/src/resources/messages/messages.types.ts:336

UTM term parameter appended to tracked links.