Prerequisites
Before you start, make sure you have:- A Meta Business Account at business.facebook.com
- A WhatsApp Business Account (WABA) created inside Meta Business Suite
- A phone number registered as a WhatsApp Business number (cannot be in use on WhatsApp personal or WhatsApp Business app simultaneously)
- A System User with a permanent access token (recommended over short-lived tokens)
Find your credentials
You need four values from Meta. Here’s where to find each one.Phone Number ID
Phone Number ID
- Go to developers.facebook.com and open your app.
- In the left sidebar, click WhatsApp → API Setup.
- Under From, select your phone number.
- Copy the Phone number ID shown below the number.
Business Account ID (WABA ID)
Business Account ID (WABA ID)
- In the same WhatsApp → API Setup page, look for WhatsApp Business Account ID.
- Copy the numeric ID shown there.
Access Token (System User Token)
Access Token (System User Token)
A permanent access token is recommended so you don’t need to refresh it.
- Go to Meta Business Suite → Settings → Users → System users.
- Create or select a system user with Admin access.
- Click Generate new token, select your WhatsApp app, and grant the
whatsapp_business_messagingandwhatsapp_business_managementpermissions. - Copy the token — it’s only shown once.
Webhook Verify Token
Webhook Verify Token
This is a string you choose. It can be any random string (e.g.
wapnotify_webhook_abc123). Meta sends this token to your webhook URL to confirm ownership. You’ll enter the same string in both WapNotify and the Meta webhook configuration.App Secret (for webhook signature verification)
App Secret (for webhook signature verification)
- In your Meta app, go to Settings → Basic.
- Copy the App Secret.
Connect in WapNotify
- Log in as an Admin and go to Settings → WhatsApp Setup.
- Click Manual Setup.
- Fill in the form:
| Field | Value |
|---|---|
| Phone Number ID | From Meta app → WhatsApp → API Setup |
| Business Account ID | Your WABA ID |
| Access Token | Your system user token |
| Webhook Verify Token | Your chosen string |
| App Secret | From Meta app → Settings → Basic |
- Click Save & Validate. WapNotify will call the Meta API to verify the credentials.
- Once validated, copy the Webhook URL displayed on the page.
Configure the webhook in Meta
After saving your credentials, you need to tell Meta where to send events.- In your Meta app, go to WhatsApp → Configuration.
- Click Edit on the Webhook section.
- Paste the Webhook URL from WapNotify into the Callback URL field.
- Enter the same Verify Token you used in WapNotify.
- Click Verify and save.
- Subscribe to the messages webhook field.