{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-products/whatsapp/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Authentication templates","description":"Integration and usage documentation.","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"authentication-templates","__idx":0},"children":["Authentication templates"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Authentication templates enable businesses to send one-time passcodes to users."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["They are subject to strict content restrictions:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Use WhatsApp's preset message text: ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<VERIFICATION_CODE> is your verification code."]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["URLs, media, and emojis are not allowed"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Parameters are limited to 15 characters"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"components","__idx":1},"children":["Components"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Component"},"children":["Component"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Fixed body text"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<VERIFICATION_CODE> is your verification code."]}]}," — preset, not customizable"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Security disclaimer (optional)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["For your security, do not share this code."]}]}," — preset"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Expiration warning (optional)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["This code expires in <NUM_MINUTES> minutes."]}]}," — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["NUM_MINUTES"]}," is configurable"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Button (optional)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["One-tap autofill button, copy code button, or no button"]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Which optional components are visible and the value of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["NUM_MINUTES"]}," are defined at ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["configuration time"]},", when the template is set up. These settings cannot be changed at API call time via the send OTP message API."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"button-behavior","__idx":2},"children":["Button behavior"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Autofill button"]}," — when tapped, opens your app and delivers the OTP code directly. Note: not supported on all devices."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Copy code button"]}," — when tapped, copies the OTP code to the device clipboard."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/products/whatsapp/enterprise-documentation/developer-documentation/api-references/send-message-apis/send-otp"},"children":["send OTP message API"]}," to send this type of message."]}]},"headings":[{"value":"Authentication templates","id":"authentication-templates","depth":1},{"value":"Components","id":"components","depth":2},{"value":"Button behavior","id":"button-behavior","depth":2}],"frontmatter":{"seo":{"title":"Authentication templates"}},"lastModified":"2026-03-07T14:23:07.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/whatsapp/enterprise-documentation/developer-documentation/integration-guide/authentication-templates","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}