Product Guide

WhatsApp Authentication Template: How to Set Up OTP Messages

Authentication templates deliver one-time passwords on WhatsApp. Here is how they work, how to set one up and what to avoid.

Quick answer: A WhatsApp authentication template is a special template category used only to deliver one-time passwords (OTPs) and login codes. It has a fixed structure, a code variable, and a button to copy or autofill the code. It cannot be used for promotions.

What is an authentication template used for?

  • Logging a customer into your app or website
  • Confirming a phone number
  • Verifying a booking or payment

Many Indian businesses already send OTPs by SMS. WhatsApp is an alternative that customers often see faster, especially when they are already chatting with you.

How it differs from other categories

Category Purpose
Authentication One-time codes only
Utility Updates about something the customer requested
Marketing Promotions and re-engagement

Authentication templates are tightly controlled. Meta fixes much of the wording, and you cannot add marketing content.

Setting it up

  1. Choose the Authentication category.
  2. Pick a button type, such as copy code or one-tap autofill on supported devices.
  3. Set the code expiry if you want the message to tell the customer how long it is valid.
  4. Submit for approval.
  5. From your system, generate the code and pass it as the variable when sending.

Security basics

  • Generate codes on your server, not in the template
  • Keep codes short-lived
  • Limit retries to prevent abuse
  • Never ask customers to share a code with staff
  • Log delivery failures and offer an alternative method

Common mistakes

  • Adding promotional text or links, which breaks the category rules
  • Reusing one code for many users
  • Sending codes to numbers that did not request them

Where OTP over WhatsApp makes sense

Many Indian businesses already send OTPs by SMS, but SMS can be delayed or filtered. WhatsApp can be a useful second route, especially for customers who are already chatting with you. Common cases include logging into a customer portal, confirming a booking from a website and verifying a phone number during sign-up.

A simple architecture

  1. A customer enters their number on your website or app.
  2. Your server generates a short-lived code.
  3. Your server calls the WhatsApp Business Platform with the approved authentication template and the code.
  4. The customer sees the message and taps the button to copy or autofill the code.
  5. Your server checks the code and the expiry time.

If you use a provider, they often handle step three through an API you call from your system.

Handling failures

  • If delivery fails, offer another method such as SMS or email
  • Limit how many codes can be requested per number per hour
  • Do not reveal whether a number exists on your system
  • Log every attempt so you can spot abuse

Keep sales and security separate

Never mix a marketing message with an OTP message, even if the customer is warm. Authentication templates are for codes only. Keep your sales conversation in the normal chat and your security messages in the authentication template.

FAQ

Can I send an OTP without a template?

Outside an open customer service window, you need an approved template. Authentication templates are built for this.

Is it cheaper than SMS?

It depends on current WhatsApp and SMS pricing. Compare both for your volume.

Do customers need to save my number?

No, but they must be reachable on WhatsApp and the phone number must be correct.

For the full category comparison, read WhatsApp marketing vs utility vs authentication templates.

Growfy focuses on sales conversations, so verification messages stay with your existing login system while Growfy handles replies and follow-up. Chat With Growfy →

New posts, when they land

Practical WhatsApp and AI playbooks for small businesses. No more than a couple of emails a month, and nothing you did not ask for.