المقالات متاحة باللغة الإنجليزية.

WhatsApp API and Webhooks

Connect WhatsApp through Meta Embedded Signup or configure Meta Business and Cloud API fields manually.

Last updated

On this page

Introduction

WhatsApp API settings are required before Inbox, templates, campaigns, catalog, appointments, chatbots, and webhooks can fully work.

Use Connect with Meta when available. It opens Meta Business login and saves the required WhatsApp account values automatically after the account is approved by Meta. Manual Setup remains available as a closed advanced panel for admins who want to use their own Meta app, token, app secret, and webhook configuration.

The WhatsApp API tab shows two setup cards at the top: Connect with Meta on the left and Manual Setup on the right. Open Manual Setup only when you need the advanced fallback form.

Manual Setup

Manual Setup is the existing advanced setup path and stays hidden until Open Manual Setup is clicked. Use it when Connect with Meta is unavailable, when support asks for a direct setup, or when the business wants to use its own Meta app and long-lived token without the gateway flow.

Saving Manual Setup switches the account back to manual mode. Existing contacts, conversations, templates, reports, and module links are preserved because the same WhatsApp account record stays in use.

If the account is currently connected with Meta Gateway, enter a valid manual access token and app secret before saving Manual Setup.

The unsaved-changes notice appears only after a field is changed. If every edited field is returned to its original value, the notice clears automatically and nothing needs to be saved.

Field Guide

FieldMeaning
Business NameOperator label for the connected Meta Business.
WABA IDWhatsApp Business Account identifier from Meta.
Phone NumberThe business WhatsApp number customers see.
Phone Number IDThe Cloud API sender identifier for the connected number.
Access TokenAuthorization token used for Meta API calls.
App IDMeta developer app identifier.
App SecretUsed to validate signed webhook requests when configured.
Webhook Verify TokenShared token used during Meta webhook verification. After save it is hidden; leave the field blank to keep the current value.
Remote Webhook URLOptional relay URL when a deployment requires it.

Help Guide Button

The WhatsApp API tab includes a Meta Account Help guide. Use it when setting up Business Manager, developer app, phone number, token, and webhook for the first time.

Disconnect and Reconnect

Disconnect clears the active WhatsApp credentials and marks the account disconnected without deleting customer history. After disconnecting, use Connect with Meta again or fill Manual Setup and save.

If Connect with Meta fails repeatedly, use Manual Setup or contact support with the visible error message from the WhatsApp API tab.

Change an Already Connected Account

Use Change with Meta or open Manual Setup when the business deliberately needs a different WhatsApp sender. WAPI opens a right-side confirmation before a connected identity can be replaced.

Review the impact, select the acknowledgement, and choose Continue account change. Cancel closes the drawer without changing credentials or starting Meta login.

WAPI verifies the new Phone Number ID and WABA with Meta before activation. If verification, login, callback, permission, or confirmation fails, the currently connected account remains unchanged.

After a verified number change, future WhatsApp activity uses the new sender. Existing Contacts, messages, invoices, and reports remain available, while open service-window, Chatbot, and AI conversation sessions are reset so old sender state cannot continue under the new identity.

A same-account token refresh is treated as a credential refresh. It does not create a false number-change record or reset active conversation sessions.

FAQs & Troubleshooting

Can messages send without Phone Number ID?

No. Phone Number ID is required for Cloud API sends.

Should I use Connect with Meta or Manual Setup?

Use Connect with Meta first because it avoids copying technical values manually. Use Manual Setup if you need your own Meta app/token setup or if the assisted connection is temporarily unavailable.

Does Connect with Meta fill the Manual Setup fields?

Connect with Meta saves the required account values automatically in the backend. Safe identifiers can appear when Manual Setup is opened, but secret values such as the access token and webhook verify token are protected and are not shown.

What happens if a new WhatsApp account cannot be verified?

The existing connected account stays active. WAPI does not save the candidate as the active sender, and you can correct the values or restart Connect with Meta.

Will changing the WhatsApp number delete old chats?

No. Existing Contacts, messages, invoices, and reports remain linked and readable. Only transient service-window, Chatbot, and AI session state is reset for safety.

Does WAPI charge Meta WhatsApp message fees in Connect with Meta mode?

No. The customer’s own WhatsApp Business Account remains responsible for Meta messaging charges. WAPI only provides the software connection workflow.

Why is webhook token important?

Meta uses it to verify that your callback URL belongs to this app setup.

Can a Cloud API number be linked to Facebook Page or Instagram without installing WhatsApp on the phone?

Cloud API numbers can still be linked, but Meta usually sends a WhatsApp confirmation code to that number. There is no separate official code-less linking path documented for Page or Instagram contact linking. If the code does not appear in a phone app, confirm the exact number Meta is verifying and check Inbox or webhook capture for Meta-origin inbound verification messages.

Troubleshooting Checklist

  • If WhatsApp status is disconnected, check token, phone number ID, WABA ID, and webhook setup.
  • If Connect with Meta does not complete, try Reconnect once. If it still fails, use Manual Setup so messaging can continue while support reviews the assisted connection.
  • The Default public callback is generated from the current installation domain and uses one /public segment, for example https://yourdomain.com/public/webhook.
  • If inbound messages do not arrive, verify callback URL, subscriptions, and app secret behavior.
  • If Meta sends a WhatsApp confirmation code for Page or Instagram linking and the number is Cloud API-only, verify the exact destination number and check whether the code arrived as an inbound Inbox message or raw webhook event.
  • If templates do not sync, check WABA access and token permissions.
Next ArticlePayment, Google, API Integration, and AI Settings