Skip to main content
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:
IntegrationPurpose
WhatsApp (Meta)Used for sending OTP codes and user notifications.
Google reCAPTCHAUsed for protecting login and registration forms from bots.

πŸ’¬ WhatsApp Configurations

🧩 Step 1. Create a Meta (Facebook) Developer App

Go to Meta for Developers
Click 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
βœ… You’ll now see your App Dashboard.

πŸ’¬ 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
βœ… Once verified, your number appears under your WhatsApp Business Account.

🏒 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
(Verification documents are not required yet, but must match your business details.)

πŸ”‘ 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 Users
Click Add β†’ Add System User
  • Name: yourproject_api_user
  • Role: Admin
B. Assign Permissions and Link App
  • 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
C. Generate Token
  • Click Generate New Token
  • Choose your App
  • Enable:
    • whatsapp_business_management
    • whatsapp_business_messaging
  • Enable Never Expires
  • Copy the generated token and store it securely.
βœ… This is your Permanent Access Token.

🧾 Step 6. Find Your Account Identifiers

Return to your app: Developers β†’ Your App β†’ WhatsApp β†’ Getting Started
Copy:
  • WhatsApp Business Account ID
  • Phone Number ID
βœ… Both are required for integration.

πŸ’‘ Step 7. Create an OTP Template

Go to Message Templates
Click Create Template and choose:
  • Category: Authentication
  • Type: Copy Code
  • Name: otp_login
  • Language: English (US)
Body Example: {{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

FieldExampleLocation
Phone Number ID987654321098765App β†’ WhatsApp β†’ Getting Started
Business Display NameYour Project NameDuring number setup
Sender Phone (E.164)+120978282366During number setup
Permanent Access TokenEAABcdEf...XYZBusiness Settings β†’ System Users
Approved Template Nameotp_loginWhatsApp Manager
Template Language Codeen_USWhatsApp Manager
Share securely: Use encrypted email or password manager.