(API) How to create TFA templates

To create an TFA template it’s easy, follow these steps:

Instructions

TFA Template for Email:

 

Steps:

  1. Go to Customization;

  2. Click on Two Factor Auth;

  3. Fill the subject of email;

  4. Fill the body with a nice HTML Code (Note: you are required to include the {{code}} tag);

  5. Click on Save, that’s it.;

If you don’t want to fill the body with HTML, you need to put a {{code}} tag.

After that, when your client request a TFA Code in the API by Email, your receiver will see a friendly Email:

HTML used in this tutorial:

<h1 class="text-center"> TFA Code sent by Botdoc. </h1> <label>Hi, you are receiving the TFA Code in order to open our protected links. </label> <h4> Your code Is: {{code}}</h4> <br> <label>Thanks for using our plataform</label>

 

TFA Template for SMS:

Steps:

  1. Go to Customization;

  2. Click on Two Factor Auth;

  3. Fill the body of: SMS - Two Factor Authentication Template, with a nice message;

  4. If you fill the body, you are required to include the {{code}} tag;

  5. Click on Save, that’s it.

After that, when your client requests a TFA Code in the API by SMS, your receiver will see a friendly SMS Text: