Want to send OTPs or authentication codes to users via WhatsApp? This tutorial will walk you through creating an authentication template, mapping variables, and generating the official Meta (Facebook) API to start sending OTPs instantly.
🔹 Step 1: Open WhatsApp Manager
Go to 👉 business.facebook.com/wa/manage
Click “Manage Templates” to begin.

🔹 Step 2: Create an Authentication Template
Choose the Authentication template type.
Click Next.
Enter a Template Name.
Click Copy Code (used later during mapping).
Click Submit.


🔹 Step 3: Map the Variables
Click the # icon under the Actions column to open Map Variables.
Under Body Variables and Button Variables, select the same variable (for OTP).
This ensures the code appears both in the message body and button.


🔹 Step 4: Open API Developer Section
Click the API Developer option from the side menu.
Choose Send Message.
If you haven't already, Generate API Key and then Click Send Message.


Step 5: Get the API Endpoint
Select your newly created Authentication Template.
Enter dummy OTP values in the input fields.
Click Get API Endpoint.


You’ll receive:
✅ API Token
✅ Phone Number ID
✅ Template Name & ID
✅ Complete JSON Payload

Step 6: Use the API to Send OTPs
You can use this with:
Custom backend code (Node.js, PHP, Python)
Automation tools (like n8n, Zapier, or Postman)
Chatbot builders or CRM tools
🚀 Conclusion
With Bulkwise,
Use this API to send OTPs during login, user registration, or any secure action.
Meta's WhatsApp Business API is secure, scalable, and officially supported.
🛠️ This setup is perfect for developers, SaaS builders, and businesses looking to automate secure communication.