Appearance
Rule.io SDK / client/src / CreateDefaultSmsMessageParams
Interface: CreateDefaultSmsMessageParams
Defined in: client/src/resources/automations/automations.types.ts:291
Options for AutomationsClient.createDefaultSmsMessage.
Example
typescript
const setup = await client.automations.createDefaultSmsMessage(automationId);
console.log(setup.messageId, setup.templateId, setup.dynamicSetId);Properties
message?
optionalmessage?:Partial<CreateSmsAutomationMessagePayload>
Defined in: client/src/resources/automations/automations.types.ts:298
Optional overrides for the auto-created SMS message.
Any field provided here replaces the default. See CreateSmsAutomationMessagePayload for available fields.
sendoutType?
optionalsendoutType?:AutomationSendoutType
Defined in: client/src/resources/automations/automations.types.ts:327
Sendout type of the parent automation — used to decide whether to include an unsubscription footer. Defaults to 'marketing'.
template?
optionaltemplate?:object
Defined in: client/src/resources/automations/automations.types.ts:306
Optional overrides for the auto-created SMS template.
Provide content to supply a custom SMS document — this skips the default body generation entirely. Provide name to override the auto-generated template name.
content?
optionalcontent?:SmsDocument
Custom SMS document. When omitted a default body is generated.
name?
optionalname?:string
Template name. Defaults to 'Automation ${id} SMS template'.
unsubscriptionMethod?
optionalunsubscriptionMethod?:"unsubscribeLink"|"stopWord"
Defined in: client/src/resources/automations/automations.types.ts:322
Unsubscription method included in the auto-generated SMS body footer.
'unsubscribeLink'(default) — appends::unsubscribe.'stopWord'— appends the stop-word merge-tag placeholder.
Has no effect when template.content is provided (the footer is then the caller's responsibility) or when sendoutType is 'transactional' (transactional automations do not include an unsubscription footer).