Configure WhatsApp Cloud API for 2FA login and document alerts
1. Create Meta Developer Account
Go to developers.facebook.com → Create App → Business type.
2. Add WhatsApp Product
Inside your App dashboard → Add Product → WhatsApp → Set Up.
3. Get your Phone Number ID
WhatsApp → API Setup → copy the Phone Number ID (not the phone number itself).
4. Get Access Token
In API Setup, generate a Permanent Token via Meta Business Suite → System Users. Paste it below.
5. Create Message Templates
Go to WhatsApp Manager → Message Templates. Create two:
• OTP template — Authentication category, one 1 variable (the code)
• Alert template — Utility category, three variables: 1 doc ID, 2 subject, 3 status
OTP Template (Authentication)
Alert Template (Utility)
Copy these texts when creating templates in Meta Business Suite → WhatsApp Manager → Message Templates.
The 1 2 3 are variable placeholders that get filled automatically.