Create Authentication Template

If your mobile app offers users the option to receive one-time passwords or verification codes via the WhatsApp app or WhatsApp Business app, you must use an authentication template with a one-time password button (OTP) to deliver the password or code.

If you want to create the authentication message template via Templates API, you need to provide (required) the WhatsApp Business Account ID (wabaId) or the unique identifier of the sender (senderId).

To know how to create an authentication template go to the Creating & Sending Authentication WhatsApp Template section.

Query Params
string
string
Body Params
string
required

Name of the template created in your WhatsApp Business Account.

The name of each template you create cannot be the same.

string
enum
required

Type of message template.

Supported Template Categories for WhatsApp Authentication Message Template.

  • AUTHENTICATION: authentication template with a one-time password button (OTP) to deliver the password or code.

Allowed:
templateLanguages
array of objects
required

Array of languages objects containing the language that template may be rendered in and the components.

templateLanguages*
Responses

Language
Credentials
Bearer
JWT
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json