--- title: "Register the OTP Template" slug: "register-the-otp-template" description: "Documents the POST /v1/template/create endpoint for registering a WhatsApp OTP template by locale and template name, covering parameters and rate limits." tags: ["whatsapp verify api", "whatsapp otp"] updated: 2026-11-18T12:03:14Z published: 2026-11-18T12:03:14Z canonical: "academy.insiderone.com/register-the-otp-template" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # Register the OTP Template Before you create an OTP template for WhatsApp verification messages, complete the following prerequisites: 1. Create a WhatsApp channel by following the steps in [Create a Channel](https://academy.insiderone.com/docs/create-a-channel-whatsapp-otp). 2. Create an authentication template in your WhatsApp Business Account through the WhatsApp Template Management API. For a sample request, see [Create an Authentication Template with Security Code](https://academy.insiderone.com/docs/create-a-whatsapp-template#create-an-authentication-template-with-security-code). 3. Use the Template Creation API on this page to register the authentication template for OTP verification messages. Set **templateName** to the exact name of the authentication template you created. ## Endpoint and Headers > **POST** https://verify.useinsider.com/v1/template/create [](https://developers.insiderone.com/#5bf76c72-7370-45a0-b289-ca55f2a2a715) > [!WARNING] > This API key is sensitive and should never be used on the frontend or mobile SDK; it should only be implemented on the backend. | Header | Sample Value | Description | | --- | --- | --- | | X-INS-AUTH-KEY | 1a2b3c4d5e6f | This key is required to authorize your request. Refer to [API Authentication Tokens](https://academy.insiderone.com/docs/api-authentication-tokens) to generate your token. | | Content-Type | application/json | This header specifies the media type of the resource. | ## Body Parameters | Parameter | Description | Data Type | Required | Rules | | --- | --- | --- | --- | --- | | channel | The channel you will send the OTP code to. It will be WhatsApp. | String | Yes | oneof:whatsapp | | locale | Determines the language/locale in which the OTP code message will be sent. | String | Yes | oneof:pt af sq ar az bn bg ca zh_CN zh_HK zh_TW hr cs da nl en en_GB en_US et fil fi fr ka de el gu ha he hi hu id ga it ja kn kk rw_RW ko ky_KG lo lv lt mk ms ml mr nb fa pl pt_BR pt_PT pa ro ru sr sk sl es es_AR es_ES es_MX sw sv ta te th tr uk ur uz vi zu | | templateName | The exact name of the existing authentication template in your WhatsApp Business Account. | String | Yes | The template has to exist already. | ## Sample Request Every request to the request endpoint must include a JSON-formatted request body containing your parameters. > [!WARNING] > Make sure to replace the sample values in the request header(s) and body where required before sending your request. The following request registers an existing WhatsApp authentication template for OTP verification messages using the specified locale and template name. ```bash curl --location 'https://verify.useinsider.com/v1/template/create' \ --header 'Content-Type: application/json' \ --header 'x-ins-auth-key: 1a2b3c4d5e6f' \ --data '{    "channel": "whatsapp",    "locale": "tr",    "templateName": "otp_template" }' ``` ## Sample Responses ### 202 Accepted This response indicates that your request was successfully completed. ```json {    "status": "success" } ``` ### 400 Bad Request **Invalid request payload:** ```json {    "errors": [        {            "message": "invalid request payload"        }    ] } ``` **Invalid channel value:** ```json {    "errors": [        {            "message": "this field must be one of these:whatsapp",            "field": "channel"        }    ] } ``` ### 401 Unauthorized ```json {    "errors": [        {            "message": "unauthorized"        }    ] } ``` ### 404 Not Found This response is returned when you create or update an OTP template and your account is not yet registered in Verify. ```json {    "errors": [        {            "message": "this channel is not registered yet",            "field": "channel"        }    ] } ``` ### 409 Conflict ```json {    "errors": [        {            "message": "template already exists"        }    ] } ``` ### 429 Too Many Requests ```json {    "errors": [        {            "message": "rate limit exceeded"        }    ] } ``` ### 500 Internal Server Error ```json {    "errors": [        {            "message": "server error"        }    ] } ``` ## Limitations - All functions must be executed with a simple **HTTPS POST** request. - The **API Key** should be provided as the authorization key in the request header. If the key is incorrect, the operation will not be executed, and an authorization error will be returned in the response. - For effective usage, create a dedicated template for each language. - The service is subject to a rate limit of **25 requests per minute** to ensure optimal system performance, and if you exceed this limit, you will receive an HTTP **429 Too Many Requests** response. > The default limit shown here is a standard baseline. If your use case requires higher capacity, feel free to reach out to the Insider One team. We can adjust it to fit your needs. ## Related - [Create a Channel](/create-a-channel-whatsapp-otp.md) - [Generate OTP Codes](/generate-otp-codes-whatsapp.md) - [Update OTP Templates](/update-otp-templates-whatsapp.md) - [Generate OTP API Key](/generate-otp-api-key.md) - [API Authentication Tokens](/api-authentication-tokens.md) - [API Rate Limits](/api-rate-limits.md) - [API Status and Error Codes](/api-status-and-error-codes.md) - [Insider One APIs in Postman](/insider-apis-in-postman.md)