📱 WhatsApp Cloud API - Meta’s Official API
Configure WhatsApp Business using Meta (Facebook) official API. Two configuration methods: quick via Embedded Signup or manual with credentials.📋 Overview
WhatsApp Cloud API is Meta’s official solution for integrating WhatsApp Business:Embedded Signup
⚡ Automatic setup via Meta
✅ Recommended for beginners
✅ Recommended for beginners
Manual
🔧 Credential-based setup
✅ More technical control
✅ More technical control
✨ Official API Features
Capabilities
✅ Text Messages - Send and receive✅ Media - Images, videos, audio, documents
✅ Location - Share/receive location
✅ Contacts - Send vCard
✅ Templates - Pre-approved messages by Meta
✅ Interactive Messages - Buttons and lists
✅ Replies - Reply to specific message
✅ Reactions - Emoji reactions
✅ Indicators - Typing, read, delivered
Limitations
⚠️ 24-hour window: After 24h of customer’s last message, can only send approved templates⚠️ Templates: Need Meta approval (takes 1-24h)
⚠️ Message limits: Based on account quality rating
🚀 Method 1: Embedded Signup (Recommended)
Automatic setup in 3 clicks!Prerequisites
- Facebook Business account
- Be administrator of Facebook Business Manager
- Modern browser (Chrome, Edge, Firefox)
Step by Step
Choose Embedded Signup
- In provider list, select: “WhatsApp Business - Quick setup with Meta”
- Click “Continue”
Connect with Meta
- Click “Connect with WhatsApp Business”
- A Meta pop-up window will open
- Log in to your Facebook Business account
Authorize Access
- Select WhatsApp Business Account or create new
- Choose phone number or add new
- Authorize permissions:
- Manage messages
- Send messages
- Manage templates
- Click “Continue”
Automatic Configuration
Chatwoot automatically:
- ✅ Gets API credentials
- ✅ Configures webhook
- ✅ Registers phone number
- ✅ Syncs templates
Embedded Signup Advantages
✅ Zero manual config: Everything automatic✅ Secure: OAuth2 via Meta
✅ Fast: Ready in 2 minutes
✅ Error-free: Correct credentials guaranteed
✅ Auto webhooks: Already configured
🔧 Method 2: Manual Configuration
For those who prefer full control or use custom systems.Prerequisites
- Meta for Developers account
- WhatsApp Business App created
- Verified phone number
Get Credentials from Meta
Access Meta for Developers
- Go to developers.facebook.com
- Login with your Facebook Business account
- Click “My Apps”
Create/Select App
Create new:
- Click “Create App”
- Type: “Business”
- App name: “Chatwoot WhatsApp”
- Contact email
- “Create App”
Get Phone Number ID
- On sidebar: “WhatsApp” → “Getting Started”
- In “Send and receive messages” section
- Copy the Phone Number ID
Get Business Account ID (WABA ID)
- Still on WhatsApp page
- Look for “WhatsApp Business Account ID”
- Or go to “WhatsApp” → “API Setup”
- Copy the Business Account ID
Generate Access Token (API Key)
- Go to “WhatsApp” → “API Setup”
- “Temporary access token” section:
- Click “Generate token”
- ⚠️ Token expires in 24h - for testing only!
- Create System User in Business Manager
- Generate permanent token with permissions:
whatsapp_business_managementwhatsapp_business_messaging
- Store token securely!
Configure in Chatwoot
Create Inbox
- “Settings” → “Inboxes” → “Add Inbox”
- Choose “WhatsApp”
- Provider: “WhatsApp Cloud - Quick setup via Meta”
Fill Credentials
Form:Inbox Name:Phone Number (E.164 format):Phone Number ID:Business Account ID:API Key (Access Token):
Configure Webhook in Meta
Important: Without webhook, you WON’T receive messages!Get URL and Token from Chatwoot
- In Chatwoot, go to created inbox
- “Settings” → “Configuration” tab
- See “Callback URL” section:
Configure in Meta
- Back to Meta for Developers
- Your app → “WhatsApp” → “Configuration”
- “Webhook” section
- Click “Edit”
Subscribe to Events
In “Webhook fields” section, check:✅ messages - Received messages
✅ message_template_status_update - Template status
⚠️ account_alerts - Important alerts
⚠️ phone_number_quality_update - Number qualityClick “Subscribe”
✅ message_template_status_update - Template status
⚠️ account_alerts - Important alerts
⚠️ phone_number_quality_update - Number qualityClick “Subscribe”
📝 Create Message Templates
Templates are pre-approved messages to send outside 24h window.Create Template in Meta
Access WhatsApp Manager
- Go to business.facebook.com
- Select your WhatsApp Business Account
- Sidebar: “Messaging tools” → “Message templates”
Create New Template
- Click “Create template”
- Category:
- Marketing: Promotions, offers
- Utility: Order updates, reminders
- Authentication: OTP codes
- Name:
welcome_message(no spaces, use _) - Language: English
Compose Message
Header (Optional):Body (Required):Footer (Optional):Buttons (Optional):
- Call to Action (URL, Phone)
- Quick Reply
Use Template in Chatwoot
Sync Templates
- In Chatwoot, go to WhatsApp inbox
- “Settings” → “Templates”
- Click “Sync”
- Approved templates appear in list
🔍 Verify Configuration
Configuration Checklist
🚨 Common Issues
Not Receiving Messages
Cause 1: Webhook not configuredCannot Send
Cause 1: Outside 24h window💡 Best Practices
Operations
✅ Monitor webhook: Check logs regularly✅ Sync templates: Weekly or after creating new
✅ Account quality: Check status monthly
✅ Permanent token: Use System User, not temporary
Security
✅ Secure API Key: Don’t share, don’t commit to Git✅ Webhook HTTPS: Always use secure URL
✅ IP whitelist: Configure in Meta if possible
🚀 Next Steps
Advanced Templates
Create templates with buttons, media and variables
WhatsApp Campaigns
Send bulk messages via templates

