WhatsApp/authentication
templates let companies deliver WA approved one-time-password button. Unlike other templates the body is preset by WhatsApp. Some modifications can be made by specifying certain parameters however custom authentication templates are not allowed.
whatsapp/authentication
templates a single variable must be defined at send time and set to the one time passcode.
whatsapp/authentication
templates must be approved by WhatsApp to send to customers.
add_security_recommendation:
code_expiration_minutes:
Description: The amount of time you want to inform the customer that the one time passcode is available for. Adds a footer message stating "This code expires in x minutes" where x is the number specified.
actions:
Description: Buttons that recipients can tap on to act on the message:
Authentication templates are slightly different from other content types in that the body field is preset and there is a pre-existing content variable.
To send these templates you will need to send them as usual but include a content variable containing the OTP code you would like to send.
The OTP code that you send must be less than 15 characters long.
_10--data-urlencode "ContentVariables={"1": "12345"}" \