Skip to main content

Authentication Templates (OTP)

Authentication templates are special templates designed for sending verification codes (OTP — One-Time Password) to your customers. These are used for login verification, account signup, password resets, etc.

How Authentication templates are different

When you select Authentication as the category, the template creation process is simplified:

FeatureRegular TemplatesAuthentication Templates
Template Type selectionYesNot needed (auto-configured)
Parameter Format selectionYesNot needed (auto-configured)
Manual component buildingYesAuto-generated
FooterOptional, user-writtenAuto-generated with expiration
ButtonsUser choiceAuto-added (Copy Code)

Creating an Authentication Template

Step 1: Basic Info

  1. Enter a Template Name (e.g., login_otp, signup_verification)
  2. Select Authentication as the category
  3. Choose the Language

That's it for basic info — Template Type and Parameter Format are handled automatically.

📸
Screenshot: Authentication template Basic Info with only Name, Category (Authentication), and Language fields
auth-basic-info.png
1. On the Create Template page, select Authentication as the category
2. Notice that Template Type and Parameter Format fields disappear
3. Capture the Basic Info section showing only Name, Category, and Language
Save to: static/img/screenshots/templates/authentication-templates/auth-basic-info.png

Step 2: Automatic Setup

The system automatically creates:

Body message (in your selected language):

{{1}} is your verification code.

Optional security line (you can toggle this on):

Do not share this code with anyone.

Footer (auto-generated):

This code expires in X minutes.

Button:

Copy Code (lets the customer copy the OTP with one tap)

📸
Screenshot: Auto-generated Authentication template components — body, security line toggle, footer, and Copy Code button
auth-auto-generated-components.png
1. After selecting Authentication category and a language
2. Capture the auto-generated components area showing body text, security toggle, expiration, and Copy Code button
Save to: static/img/screenshots/templates/authentication-templates/auth-auto-generated-components.png

Step 3: Configuration

You need to set:

  • Code expiration time — How many minutes the code is valid for (e.g., 5 minutes, 10 minutes)
  • Security recommendation — Toggle on/off the "Do not share this code" line

Step 4: Submit

Click Create Template to submit for WhatsApp review.


Multi-Language Support

Authentication templates come with pre-built translations for 50+ languages. When you select a language, the body text, security recommendation, and footer are automatically translated.

Examples:

LanguageBody Text
English{{1}} is your verification code.
Hindi{{1}} आपका सत्यापन कोड है।
Tamil{{1}} உங்கள் சரிபார்ப்புக் குறியீடு.
Spanish{{1}} es tu codigo de verificacion.
Arabic{{1}} هو رمز التحقق الخاص بك.
tip

You don't need to manually translate OTP messages. Just pick the language and the system does it for you.


How the OTP flow works (for your customer)

1. Customer tries to log in / sign up

2. Your system generates an OTP (e.g., 847291)

3. Your system sends the Authentication template
with {{1}} = "847291"

4. Customer receives the WhatsApp message:
"847291 is your verification code.
Do not share this code with anyone.
This code expires in 5 minutes."

5. Customer taps "Copy Code" button → OTP is copied

6. Customer pastes it in your app → Verified!