When you call the /config/{appId}/flows/{flow}/2faMessages endpoint it automatically adds a default set of two-factor authentication messages (in English) to your flow. Here, in JSON format, is what gets added:
{ "2faMessages": { "registrationVerification": { "email": { "html": "<p>Your one time use code to complete registration for {{site_name}} is: {{code}}.</p>", "subject": "{{site_name}} One Time Code", "text": "Your one time use code to complete registration for {{site_name}} is: {{code}}." }, "sms": "Your one time use code to complete registration for {{site_name}} is: {{code}}." }, "resendVerification": { "email": { "html": "<p>Your one time use code to complete registration for {{site_name}} is: {{code}}.</p>", "subject": "{{site_name}} One Time Code", "text": "Your one time use code to complete registration for {{site_name}} is: {{code}}." }, "sms": "Your one time use code to complete registration for {{site_name}} is: {{code}}." }, "secondFactor": { "email": { "html": "<p>{{site_name}}: Your secure access code is {{code}}. Do not share this code with anyone. {{site_name}} will never ask you for it.</p>", "subject": "{{site_name}} One Time Code", "text": "{{site_name}}: Your secure access code is {{code}}. Do not share this code with anyone. {{site_name}} will never ask you for it." }, "sms": "{{site_name}}: Your secure access code is {{code}}. Do not share this code with anyone. {{site_name}} will never ask you for it." } } }
See Also
- Adding the 2FA Messages to Your Flow
- Viewing Your 2FA Messages
- Modifying a 2FA Message
- Formatting Your HTML Emails by Using CSS
- Creating a Localized Version of a 2FA Message
{{site_name} } {{code} }