Appearance
Rule.io SDK / client/src / CreateSmsAutomationPayload
Type Alias: CreateSmsAutomationPayload
CreateSmsAutomationPayload =
CreateEmailAutomationPayload
Defined in: client/src/resources/automations/automations.types.ts:141
Payload for AutomationsClient.createSmsAutomation.
The message type is fixed to 'text_message' by the method.
Example
typescript
const automation = await client.automations.createSmsAutomation({
name: 'Order shipped SMS',
trigger: { type: 'TAG', id: tagId },
sendoutType: 'transactional',
});