Skip to main content

Configure SMS message templates

Prerequisite

  • A custom theme created and bound to one or more workspaces.

Edit SMS Templates

  1. Go to MessagesSMS MESSAGES
  2. Select a template (e.g., Login Code)
  3. Edit the message content
  4. Click Save

Using Variables in SMS

You can personalize messages using template variables:

OTP Variables

VariableDescription
[[OTP]]Inserts the plain text OTP code
[[OTP.Link]]Login link as alternative to manual code

User Data via .Data.User

Use Go-style template syntax to access payload values:

{{ .Data.User.Payload.first_name }}

Available Fields

VariableDescription
TenantIDTenant Identifier
UserPoolIDSource identity pool
UserIDUnique user ID
StatusCurrent status (e.g., Active)
PayloadCustom data payload (JSON)
MetadataUser metadata (JSON)