SMS Templates
The SMS Templates API provides operations to manage custom SMS templates for verification.
Note: Only SMS custom Templates are available through the API.
SMS Templates customize the SMS message that is sent to users. One default SMS Template is provided. All custom Templates must have the variable ${code} as part of the text. The ${code} variable is replaced with the actual SMS code when the message is sent. Optionally, you can also use the variable ${org.name}. If a Template contains ${org.name}, it is replaced with the organization name before the SMS message is sent.
Only two macros are supported for SMS Templates:
Type | Description |
|---|---|
| ${code} | The one-time verification code that's required for a user to sign in. |
| ${org.name} | The Okta org name that the user is trying to authenticate into. |
Note: The length of your SMS message can't exceed 160 characters. If the verification code portion of the message falls outside of the 160-character limit, your message isn't sent.