WhatsApp Cloud API Setup
Connect your WhatsApp Business account to WACM.in using Meta's Cloud API.
Prerequisites
WhatsApp Business Account (WABA) connected to your Facebook app
A verified phone number for WhatsApp Business
Step 1: Create a Facebook App
- 1. Go to developers.facebook.com
- 2. Click "Create App" → Select "Business" type
- 3. Fill in app details and create
- 4. Add "WhatsApp" product to your app from the dashboard
Step 2: Get Your Credentials
Collect these values from your Meta Developer Console:
Required Credentials
| Parameter | Type | Required | Description |
|---|---|---|---|
| Permanent Access Token | string | Required | Generate from Meta Developer Console with whatsapp_business_messaging permission |
| Phone Number ID | string | Required | Found in WhatsApp → API Setup section |
| Business Account ID | string | Required | Your WhatsApp Business Account ID (WABA) |
| Facebook App ID | string | Required | Your Facebook App ID from dashboard |
| Facebook App Secret | string | Required | Your Facebook App Secret from dashboard settings |
Step 3: Configure in WACM Dashboard
Navigate to Settings → WhatsApp API in your WACM dashboard and enter the credentials:
{
"whatsapp_permanent_access_token": "EAA...",
"whatsapp_phone_number_id": "1234567890",
"whatsapp_business_account_id": "9876543210",
"facebook_app_id": "111222333444",
"facebook_app_secret": "your_app_secret_here"
}Step 4: Configure Webhook
Set up your webhook URL in the Meta Developer Console to receive incoming messages:
https://yourdomain.com/api/wpbox/{your_sanctum_token}Verify Token
Use your Laravel Sanctum personal access token as the verify token in Meta's webhook configuration.
Subscribe to Webhook Events
Make sure to subscribe to these events:
messages- Receive incoming messagesmessage_template_status_update- Template status changes
Step 5: Test Your Connection
Send a test message to verify everything is working:
curl -X POST "https://api.wacm.in/api/v1/messages/text" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"phone": "+919876543210",
"message": "Test message from WACM!"
}'Success!
If you receive a 200 response, your WhatsApp Cloud API is properly configured and ready to use.
Ready to Send Messages?
Explore the full WhatsApp Business API reference.