Template previews
Updated: Nov 4, 2025 You can generate previews of authentication template text in various languages that include or exclude the security recommendation string and code expiration string using the GET /<WABA_ID>/message_template_previews endpoint.Request syntax
Request parameters
| Placeholder | Description | Example Value |
|---|---|---|
<LANGUAGE>Comma-separated list | Optional. Comma-separated list of language and locale codes of language versions you want returned. If omitted, versions of all supported languages will be returned. | en_US,es_ES |
<ADD_SECURITY_RECOMMENDATION>Boolean | Optional. Set to true if you want the security recommendation body string included in the response.If omitted, the security recommendation string will not be included. | true |
<CODE_EXPIRATION_MINUTES>Int64 | Optional. Set to an integer if you want the code expiration footer string included in the response. If omitted, the code expiration footer string will not be included. Value indicates number of minutes until code expires. Minimum 1, maximum 90. | 10 |
<BUTTON_TYPES>Comma-separated list of strings | Required. Comma-separated list of strings indicating button type. If included, the response will include the button text for each button in the response. For authentication templates, this value must be OTP. | OTP |

