# Authentication Template

## Overview

These templates must be approved by WhatsApp before use to ensure they comply with their guidelines for transactional and security-related messages. This ensures secure and compliant delivery of sensitive information via WhatsApp.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FQoryo50aOpi782gNsMaC%2FScreenshot%202025-09-06%20160315.png?alt=media&#x26;token=098deb90-1875-4c53-94f9-d9669dfc8007" alt=""><figcaption></figcaption></figure>

## Creating an Authentication Template

Here's a step-by-step guide to create an authentication template:

1. Navigate to the Templates section and click on the option to create a new template.
2. You will be prompted to fill in several fields. Choose a unique name for your template, select the category as **'Authentication (OTP)'**. Additionally, specify the language for your template.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FVQmpsJVbAQdmQhRoKMps%2FScreenshot%202025-05-22%20164806.png?alt=media&#x26;token=5aa7580e-2332-41bb-93e6-611712342dba" alt=""><figcaption></figcaption></figure>

3. Enter the message body content for the template.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FS2UWK4JgGUTVUYsmwlGo%2FScreenshot%202025-02-10%20151405.png?alt=media&#x26;token=d1384912-b4f1-41af-a07f-7a8b7204d20f" alt=""><figcaption></figcaption></figure>

4. **Time to live** indicates the duration (in seconds) for which the message can be delivered after it is sent; once expired, the message can no longer be sent to the user.
5. The **Security Disclaimer** ensures users are aware that the OTP should not be shared with anyone to prevent unauthorized access.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FOAWaHmOMgNqijYtpZoZv%2FScreenshot%202025-02-10%20152548.png?alt=media&#x26;token=da4d71fd-320e-4662-affa-5a3931ac355a" alt=""><figcaption></figcaption></figure>

5. The **Expiration Warning** informs users that the OTP is only valid for a limited time (e.g., 5 minutes), enhancing security by reducing the risk of misuse. Once expired, the message can no longer be sent to the user.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2Fc2iN1pEGSeujBk5QuYhh%2FScreenshot%202025-02-10%20152712.png?alt=media&#x26;token=98fa6725-a730-483c-917b-4c259894ebb9" alt=""><figcaption></figcaption></figure>

6. Buttons are interactive elements that can be included in the message, allowing users to take actions (like verifying or resending the OTP) directly from the WhatsApp interface, improving user engagement and experience.

<figure><img src="https://789614814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvCr7uCTpZRGEF8A48OOJ%2Fuploads%2FK4zI3UQ4ylFsuiPKcNA6%2FScreenshot%202025-02-10%20153240.png?alt=media&#x26;token=445901d0-ef18-49e0-8e7f-75f3f75b99b1" alt=""><figcaption></figcaption></figure>

A **Copy Code** button allows users to quickly copy the OTP or authentication code to their clipboard. This makes it easier for users to switch to your app and paste the code without manually typing it, improving the user experience and reducing errors.

6. Submit it for approval. You should receive feedback on the approval status within a few hours to a few days.

The OTP authentication process via BizMagnets is an effective way to securely verify users. By using approved OTP templates, businesses can enhance user experience and maintain compliance with WhatsApp’s guidelines. Proper implementation and adherence to security practices are essential for the success of OTP-based authentication.
