Connect WhatsApp Business to NHZ Gateway
NHZ Gateway uses Meta's official WhatsApp Business Platform (Cloud API), so your number is never at risk from unofficial tools. You connect your own WhatsApp Business account once, in about 30 minutes, and every chat lands in the same inbox as your texts.
- a Facebook account that can manage your business in Meta;
- a phone number for WhatsApp that can receive an SMS or call to confirm it. If the number is already on the WhatsApp or WhatsApp Business app, you must delete that WhatsApp account first, or use a different number;
- a card to add in Meta for message fees (replies within 24 hours of the customer's last message are free);
- a verified business in NHZ Gateway, if your account asks for it (Setup, Verification).
Step 1. Create a Meta app
- Go to developers.facebook.com, sign in, and open My Apps, then Create app.
- When asked what the app is for, choose the WhatsApp use case (Connect with customers through WhatsApp). If you are shown app types instead, choose Business.
- Select your business portfolio (create one if you do not have one) and finish creating the app.
Step 2. Get your test number and IDs
- In the app's left menu open WhatsApp, then API Setup.
- Meta gives you a free test number. Under To, add your own mobile and confirm it with the code Meta sends. The test number can message up to five numbers you add here.
- Copy the Phone number ID and the WhatsApp Business Account ID shown on that page.
- Note the API version in the sample request on that page (it looks like
v24.0).
Step 3. Create a permanent access token
The token on the API Setup page expires after 24 hours. For everyday use, create a permanent one:
- Open business.facebook.com, then Settings (Business settings), then Users, then System users, and click Add. Give it a name such as NHZ Gateway and the Admin role.
- Click Assign assets: add your app with full control, and your WhatsApp account with full control.
- Click Generate new token, choose your app, set expiry to Never, and tick
whatsapp_business_messagingandwhatsapp_business_management. - Copy the token straight away; Meta shows it only once. Treat it like a password.
For a quick test you can use the 24-hour token instead and replace it later.
Step 4. Copy your app secret
In the Meta app, open App settings, then Basic, and click Show next to App secret. NHZ Gateway uses it to check that incoming messages really come from Meta.
Step 5. Paste everything into NHZ Gateway
- In NHZ Gateway open Settings and scroll to WhatsApp Business.
- Fill in the Phone number ID, WhatsApp Business Account ID, API version, access token and app secret, then save.
- The page now shows a webhook address and a verify token. Keep it open for the next step.
Step 6. Send replies back to NHZ Gateway (webhook)
- In the Meta app open WhatsApp, then Configuration.
- Under Webhook click Edit. Paste the Callback URL
https://gateway.nhzglobal.com/api/whatsapp/webhookand the verify token from your NHZ Gateway settings, then Verify and save. - Under Webhook fields, click Manage and subscribe to
messages. - Meta delivers real incoming messages only to apps that are Live. In the app's top bar switch App mode from Development to Live; Meta asks for a privacy policy link first (your own website's).
Step 7. Test it
- In NHZ Gateway open Send, choose WhatsApp, enter your own mobile (one you added in Step 2) and send a message. Within 24 hours of the person messaging you, you can send any text; outside that window you must use an approved template (Step 8).
- Reply from your phone. The reply appears in the Inbox, and the WhatsApp card in Settings shows when the last webhook arrived.
Step 8. Go live with your real number
- In API Setup, click Add phone number, enter your business display name and category, and confirm the number by SMS or call. Meta reviews the display name.
- In WhatsApp Manager (business.facebook.com), open Payment settings and add a card for message fees.
- Verify your business in Meta (Security Centre in Business settings). Unverified accounts can only start conversations with a small number of people a day; the limit rises as you send messages people want.
- Create message templates in WhatsApp Manager for messages you start, such as reminders. Once Meta approves them they appear in NHZ Gateway's Settings and inbox.
- Put the new Phone number ID into NHZ Gateway Settings and save.
Common problems
| What you see | What to do |
|---|---|
| Webhook "could not be verified" | Save your WhatsApp details in NHZ Gateway first, then copy the verify token exactly, with no spaces. |
| Sending fails with an expired token error | You used the 24-hour token. Create the permanent System User token (Step 3) and paste it in. |
| Sends work but replies never arrive | Check you subscribed to messages and that the app is Live. |
| "Recipient not in allowed list" | With the test number, add the recipient under To in API Setup. |
| Message outside the 24-hour window is refused | Use an approved template for the first message. |
Stuck? Email [email protected] and we will help. A one-click "Connect WhatsApp" button is on the way, which will replace most of these steps.
Try NHZ Gateway free. Pair a phone in a minute, then text, automate and connect your website.
Start free trial See pricing