Configure SMS message templates
Prerequisite
- A custom theme created and bound to one or more workspaces.
Edit SMS Templates
- Go to Messages → SMS MESSAGES
- Select a template (e.g., Login Code)
- Edit the message content
- Click Save
Using Variables in SMS
You can personalize messages using template variables:
OTP Variables
Variable | Description |
---|---|
[[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
Variable | Description |
---|---|
TenantID | Tenant Identifier |
UserPoolID | Source identity pool |
UserID | Unique user ID |
Status | Current status (e.g., Active) |
Payload | Custom data payload (JSON) |
Metadata | User metadata (JSON) |