Skip to content

Rule.io SDK


Rule.io SDK / rcml/src / CreateSmsDocumentOptions

Interface: CreateSmsDocumentOptions

Defined in: rcml/src/sms/create-sms-document.ts:17

Options for createSmsDocument.

Properties

content

content: string | SmsContentJson

Defined in: rcml/src/sms/create-sms-document.ts:27

The SMS message body.

Accepts either:

  • A string in SMS RFM (SMS Rule Flavor Markdown) — use ::placeholder{…} for dynamic values, :link[url]{…} for links, and ::unsubscribe for the footer. Both \n and \n\n are preserved as \n characters inside message node text.
  • A pre-built SmsContentJson document — validated on the way in.