# Authentication (OTP) Templates

The Authentication Template is used to send secure messages such as OTPs (One-Time Passwords) for user verification. This template ensures safe and time-bound communication for login, verification, and transaction authentication.

{% embed url="<https://app.supademo.com/demo/cml944fam0xbnvhwzoqf7rovu?utm_source=link>" %}

### Create a New Template &#x20;

**Steps:**  <br>

{% embed url="<https://app.supademo.com/demo/cmoi3r8lw00l9x70jkti66o9l?utm_source=link>" %}

1. Enter a name in the **Name** field for your template
2. Configure the required authentication settings

### Time To Live (TTL) &#x20;

The **Time To Live (TTL)** defines how long the authentication message remains valid.

{% embed url="<https://app.supademo.com/demo/cmoi3sd1100a72m0jj4eiy674?utm_source=link>" %}

**Example:** &#x20;

* If TTL is set to **3 hours**:
* Delivered if the user opens within 3 hours
* Not delivered if opened after 3 hours

### Select Template Configuration &#x20;

#### Category  <br>

{% embed url="<https://app.supademo.com/demo/cmoi3teqz00ae2m0j1tdajfff?utm_source=link>" %}

1. Click on **Category**
2. Select **Authentication**

This ensures the template is used for secure verification purposes.

### Enable Security Recommendation  <br>

{% embed url="<https://app.supademo.com/demo/cmoi3uie700ag2m0jlebot6p9?utm_source=link>" %}

* Toggle **Security Recommendation** to add an extra layer of protection
* This helps improve the reliability and compliance of authentication messages

### Set Code Expiration  <br>

{% embed url="<https://app.supademo.com/demo/cmoi3wa9b00au2m0j1nmmmkfq?utm_source=link>" %}

* Enter the **code expiration time (in minutes)**
* This defines how long the OTP or verification code remains valid

Example: &#x20;

* If set to **5 minutes**, the OTP expires after 5 minutes

### Save Template &#x20;

**Steps:** &#x20;

1. Click **Create**<br>

{% embed url="<https://app.supademo.com/demo/cmoi44yrt00m2x70j9hcpteaw?utm_source=link>" %}

2. The template will be saved and submitted for approval

### Filter Templates &#x20;

You can easily locate authentication templates using filters.

Steps: &#x20;

1. Click the **Status Dropdown** to filter by approval status
2. Select **Authentication** from the **Category Filter**

{% embed url="<https://app.supademo.com/demo/cmoi465ls0005yd0j7he0i8ft?utm_source=link>" %}

### View Template Details &#x20;

**Steps:** &#x20;

1. Select the **OTP Verification Code** template

{% embed url="<https://app.supademo.com/demo/cmoi479hg00m4x70jjrijeutp?utm_source=link>" %}

2. View complete template details

### Preview Template &#x20;

* Access the **Template Preview** to see how the authentication message will appear to users<br>

{% embed url="<https://app.supademo.com/demo/cmoi48osm00bp2m0ja062g9an?utm_source=link>" %}

### Summary &#x20;

The Authentication Template helps you:

* Send secure OTP and verification messages
* Configure expiration for time-sensitive codes
* Enhance security using recommended settings
* Filter and manage authentication templates efficiently

Preview the final verification message before sending


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ownchat.app/whatsapp-channel/whatsapp-templates/authentication-otp-templates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
