SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How do I create a WhatsApp authentication template for one-time passcodes?

Objective

This article shows you how to build a WhatsApp authentication content template so you can send one-time passcodes over WhatsApp with a button that copies the code for the recipient.

 

Product

Content Template Builder

 

Environment

Twilio Console

 

User Account Permission/Role(s) Required

Your user needs the content templates create permission for the account.

 

Procedure

  1. In the Twilio Console, select Communications in the left sidebar.
  2. Select Messaging, then Templates.
  3. Select Create new template.
  4. Enter a Template name and select a Template language.
  5. Under Content type, select WhatsApp authentication, then select Continue.
  6. In the WhatsApp authentication section, review the defaults. Add security recommendation is selected, and Copy code text is already set to Copy Code.
  7. To tell recipients how long the code stays valid, select Show code expiration time in footer and enter a whole number in Code expiration time (minutes).
  8. Select Save.

 

Additional Information

  • The form is valid as it arrives, so you can save an authentication template without changing anything.
  • Code expiration time (minutes) must be a whole number between 1 and 90.
  • Copy code text is fixed at Copy Code and cannot be edited.
  • WhatsApp authentication templates always require approval before use, for both business-initiated messages and replies. When you submit one, the category is set to Authentication for you.

 

This content was generated by AI and reviewed, edited, and verified by a human.

Have more questions? Submit a request
Powered by Zendesk