Scope
This section describes how to configure third-party integrations required for authentication and messaging services β including WhatsApp OTP via Meta and Google reCAPTCHA API keys.
βοΈ System Config Overview
Before deploying your production environment, ensure that all third-party configurations are properly set up.Each integration below has a specific purpose:
| Integration | Purpose |
|---|---|
| WhatsApp (Meta) | Used for sending OTP codes and user notifications. |
| Google reCAPTCHA | Used for protecting login and registration forms from bots. |
π¬ WhatsApp Configurations
π§© Step 1. Create a Meta (Facebook) Developer App
Go to Meta for DevelopersClick Create App β on the βAdd Use Casesβ screen scroll down and select Other β choose Business as the app type β Next.
Fill in the following:
- App Name: e.g.
Your Project Name WhatsApp - Contact Email: your business email
- Business Account: select your company (or create one)
Then click Create App
π¬ Step 2. Add the WhatsApp Product
In the left menu, scroll to Add Product β find WhatsApp β click Set Up.β The WhatsApp Business Platform is now linked to your app.
βοΈ Step 3. Connect Your Business Phone Number
Open App Dashboard β Products β WhatsApp β Getting Started.Click Add phone number and fill in:
- Display Name: the name users will see (e.g.
Your Project Name) - Business Name, Website, and Email
- Enter your Phone Number (must not already be linked to any WhatsApp account)
- Verify with the 6-digit code sent to your phone
π’ Step 4. Confirm Your Business Information
Visit Business Settingsβ Business Info
Ensure the following are filled correctly:
- Legal Name
- Business Address
- Business Email
- Website URL
π Step 5. Create a Permanent Access Token
This token allows your backend to send WhatsApp messages through API. A. Create a System User Go to Business Settings β System UsersClick Add β Add System User
- Name:
yourproject_api_user - Role:
Admin
- Click your new System User
- Add Assets β Apps β your app β grant Full Control
- Add Assets β WhatsApp Accounts β your WhatsApp Account β grant Full Access
- Refresh the browser page
- Click Generate New Token
- Choose your App
- Enable:
whatsapp_business_managementwhatsapp_business_messaging
- Enable Never Expires
- Copy the generated token and store it securely.
π§Ύ Step 6. Find Your Account Identifiers
Return to your app: Developers β Your App β WhatsApp β Getting StartedCopy:
- WhatsApp Business Account ID
- Phone Number ID
π‘ Step 7. Create an OTP Template
Go to Message TemplatesClick Create Template and choose:
- Category:
Authentication - Type:
Copy Code - Name:
otp_login - Language:
English (US)
{{1}} is your verification code.
Do not share this code. It expires in 10 minutes.
Click Submit β wait for Approved status.β Copy the Template Name and Language Code.
π§° Step 8. Share These Details with Developers
| Field | Example | Location |
|---|---|---|
| Phone Number ID | 987654321098765 | App β WhatsApp β Getting Started |
| Business Display Name | Your Project Name | During number setup |
| Sender Phone (E.164) | +120978282366 | During number setup |
| Permanent Access Token | EAABcdEf...XYZ | Business Settings β System Users |
| Approved Template Name | otp_login | WhatsApp Manager |
| Template Language Code | en_US | WhatsApp Manager |
Share securely: Use encrypted email or password manager.