WhatsApp
WhatsApp Webhook
The webhook is how Meta delivers incoming messages to OfficeUG.
Connect it
- In OfficeUG, open Settings → WhatsApp API and copy the Webhook URL. It looks like
https://officeug.com/whatsapp-api/webhook/{company_id}. - In the Meta developer dashboard, go to WhatsApp → Configuration and paste it as the Callback URL.
- Paste your OfficeUG webhook verify token as the Verify token, then click Verify and save.
- Under Webhook fields, subscribe to
messages.
Copy the URL from your own settings page, since it contains your company's ID.
How verification works
When you click Verify and save, Meta sends this request:
GET /whatsapp-api/webhook/{company_id}?hub.mode=subscribe&hub.verify_token=YOUR_TOKEN&hub.challenge=1158201444If the token matches, OfficeUG replies with the hub.challenge value and Meta marks the webhook as verified.
How incoming messages are checked
Meta signs every message using your App Secret and sends the result in the X-Hub-Signature-256 header:
X-Hub-Signature-256: sha256=HMAC_SHA256(raw_request_body, your_app_secret)Messages with a missing or wrong signature are refused with 403.
Troubleshooting
| What you see | What to check |
|---|---|
| Meta says it can't validate the callback URL | The verify token must match exactly. Copy it again from OfficeUG. |
| Outgoing messages work, but replies never arrive | Confirm you subscribed to messages, and that your App Secret is saved. |
| It stopped working after you changed your Meta app secret | Save the new App Secret in OfficeUG. |