Skip to main content
Search

WhatsApp

Connect a WhatsApp Business number through Meta's Cloud API step by step, so that the AI assistant and your agents answer customers in WhatsApp, and fix it when messages do not arrive.

WhatsApp is connected through Meta's WhatsApp Cloud API: you create an app at Meta, add a business phone number, register it, and enter the number's IDs and keys in a WhatsApp inbox in your panel. Then you point Meta's webhook at the panel, publish the app, add a payment method and route the inbox to the assistant. The channel is marked Beta in the panel. The same steps, with the exact labels of the Russian and English panel, are in the setup guide: https://my.epavdesk.com/guide#s3-3

How far we tested it

On 13 October 2026 we went through this path with a Meta test number: the customer's message became a conversation in the panel, the push notification arrived and the assistant answered within 4 to 6 seconds. Meta did not deliver a single reply to the customer, though: it held the new, unverified business portfolio with error 131031 (see "When the account is restricted" below). We have not yet seen a reply delivered on a real number. The Meta steps below follow Meta's official documentation (pages updated between June and September 2026, read on 16 October 2026) and our test. Meta changes its interface often, so its labels may differ a little from what you see.

What you need before you start

  • A Facebook account and a Meta business portfolio (https://business.facebook.com) that is not restricted from advertising, see Step 1.
  • A phone number where you can get a code by SMS or by voice call. Take a number that is not registered in the WhatsApp or WhatsApp Business app: to move such a number you would have to delete its account in the app, and that deletes its chat history.
  • Pages on your website with your privacy policy, your terms and how to delete one's data. Meta asks for their addresses before the app can be published, see Step 9.
  • A Visa or Mastercard card for Meta's Billing Hub. The first 1,000 replies a month per number are free, see "The 24-hour window and templates" below.
  • About an hour for the steps, plus Meta's own waiting times.

A public HTTPS address for the webhook is also required, and you already have it: your site address. There is nothing to set up for it on your side.

Meta's new account model

Since September 2026 Meta is splitting the former WhatsApp Business account (WABA) into two accounts: the WhatsApp account, which holds the phone number and the business profile, and the Messaging account, which holds templates and billing. Meta moves businesses over in stages until mid-October 2026, so your WhatsApp Manager may show either look. The former WhatsApp Business account ID becomes the Messaging account ID, and Meta says existing IDs, endpoints and access tokens keep working. The steps below give the new label and the former one.

Step 1. Create the Meta app

  1. Go to https://developers.facebook.com/apps and press "Create App". If Meta asks you to register as a developer first, follow its steps.
  2. Enter the app name and your contact email, choose the use case "Connect with customers through WhatsApp" and press "Next".
  3. Choose your business portfolio or create a new one. Meta lists the publishing requirements ("Next"), then press "Create app".

You land on "Customize use case", "Connect on WhatsApp", "Quickstart".

If Meta answers "Business is not allowed to claim App. Your business is prohibited from advertising, including claiming apps.", the business portfolio is restricted from advertising, and such a portfolio cannot take apps either. You see the restriction and ask for a review in Business Support Home (see Meta's help at https://www.facebook.com/business/help/254088759757736): "Account status overview", the restricted account, "Request review". Meta usually decides within 48 hours, reviews only a limited number of times, and the decision is final. On 13 October 2026 a new portfolio that the same Facebook account created after such a refusal was held by Meta too, with error 131031.

Step 2. Add the phone number

  1. On "Quickstart" press "Start using the API". "API Setup" opens.
  2. Connect the app to a Messaging account (formerly "WhatsApp Business account"): pick one in the list, or press "Create a WhatsApp Business account" and fill in the business profile.
  3. In "From", pick the number: - Meta's test number, to check incoming messages first. Meta creates and registers it for you. Add your own WhatsApp number under "To"; Meta sends a code to it. For real customers you need your own number. - Your own number: add it in the same list. Meta takes you through your business details (legal name, website or social media page, country), the WhatsApp Business profile with the display name your customers will see, the number and whether the code comes by SMS or by voice call, and the code itself.

Your own number then also shows in WhatsApp Manager (https://business.facebook.com/latest/whatsapp_manager) under "Account tools", "Phone numbers". Meta reviews the display name later, when the number reaches a higher messaging limit; Meta's help says you can start sending messages without that review.

Step 3. Copy the two IDs

The inbox needs two IDs. In "API Setup", under the chosen number, copy "Phone number ID" and "Messaging account ID" (formerly "WhatsApp Business Account ID"). The second one goes into the field WhatsApp Business Account ID of the panel. Both are long numbers issued by Meta. The phone number itself, the app ID or the business portfolio ID do not work in their place, and the panel checks on saving that the number belongs to the account.

Step 4. Create a permanent access token

The token from "Generate access token" in "API Setup" is a temporary user token: Meta says such tokens expire quickly, the panel form names the term "Temporary tokens expire in 24 hours", and the channel stops when it runs out. The panel needs the token of a system user:

  1. Open Business Settings (https://business.facebook.com/settings) of the portfolio that owns both your app and your number. Under "Users", "System users", press "Add" (or "Add new system user"), enter a name, give it the "Admin" role and press "Create system user".
  2. Click the system user's name, press "Assign assets", choose your app and give it "Manage app". If your WhatsApp account is in the same window, give it full control too. Press "Assign assets" and reload the page: the app should show "Full control".
  3. Press "Generate token" (or "Generate new token"). Pick your app, choose "Never" as the expiry when Meta offers it, and tick the permissions Meta lists for WhatsApp: business_management, whatsapp_business_management and whatsapp_business_messaging. Press "Generate token".
  4. Copy the token at once and keep it somewhere safe: Meta shows it only once.

An "Admin" system user gets access to every WhatsApp account and Messaging account of the portfolio by default. An "Employee" system user needs access to both, granted separately under "Accounts", "WhatsApp accounts" and "Accounts", "Messaging accounts": access to the Messaging account alone is not enough.

Meta's documentation says some businesses must use expiring tokens, valid for 60 days. If yours only offers that, issue a new token before the 60 days run out and paste it into the panel, see "The access token expired" below.

Step 5. Copy the app secret

In the Meta app open "App settings", "Basic", press "Show" next to "App secret" and copy the value. The panel uses it to check that incoming messages really come from Meta.

Step 6. Register your own number for the Cloud API

Meta registers its test number by itself, so skip this step for it. Your own number is not registered for the Cloud API after the SMS or voice code, and the panel does not register numbers. Meta does it only through an API request: "You can only register a number via the API - you cannot register a number through WhatsApp Manager (WAM) or the App Dashboard" (Meta's page on registering a number, updated on 26 June 2026). There are two ways:

  • In the browser, without a terminal. Open Meta's reference page https://developers.facebook.com/documentation/business-messaging/whatsapp/reference/whatsapp-business-phone-number/phone-number-registration and press "Try it". The "API Playground" opens: sign in with your Facebook account, enter the access token (Step 4), the "Phone-Number-ID" (Step 3) and a six-digit pin, and press "Send request". We have not gone this way live ourselves.
  • In a terminal, once, on any computer:
curl -X POST 'https://graph.facebook.com/v26.0/YOUR_PHONE_NUMBER_ID/register' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --data '{"messaging_product":"whatsapp","pin":"123456"}'

Use the API version of the WhatsApp inbox form in place of v26.0 if you changed it there.

The PIN is six digits. It is not the SMS or voice code, and you never enter it in the panel. Open WhatsApp Manager, "Account tools", "Phone numbers", your number: if it has a "Two-step verification" tab, use that PIN, or change it there with "Change PIN". If there is no such tab, Meta no longer checks the PIN on registration and any six digits will do (Meta's page on the new account model, updated on 22 September 2026). If you get stuck, write to support@epavdesk.com and we help.

Once registered, the number shows "Connected" in the status column of WhatsApp Manager, "Account tools", "Phone numbers". Without the registration replies fail, and the panel marks them "The phone number is not registered on the WhatsApp Business Platform".

Step 7. Add the WhatsApp inbox

Open Admin > Inboxes > New inbox and choose WhatsApp. Admin is the shield, the last icon of the upper group in the left icon bar (tooltip Admin). Inboxes is the item under Channel in the admin menu, not the Inboxes icon at the top of the bar.

field what to enter
Name how the inbox is called in the panel, for example WhatsApp
Phone number ID "Phone number ID" from Step 3
WhatsApp Business Account ID "Messaging account ID", formerly "WhatsApp Business Account ID", from Step 3
Access token the system user token from Step 4
App secret the app secret from Step 5
API version keep v26.0 unless Meta asks for another version
Webhook verify token a long random string that you make up

For the verify token, any long random string will do, for example from a password generator or from openssl rand -hex 32 in a terminal. Keep a copy: after saving, the form shows this field masked, and you need the value again in Meta.

Leave Root URL under Admin > General as it is. It already holds your site address, and the webhook address is built from it.

Press Create. The panel checks that the token can reach the phone number and that the number belongs to the account; if the check fails, you see "Meta rejected these credentials" followed by Meta's reason: usually a token from another app or without the permissions, swapped IDs, or a number from another account. After saving, the inbox shows Callback URL in its Webhook section, like https://<your site address>/webhooks/whatsapp/<inbox number>, with a copy button, and the panel subscribes your app to the account in the background and points the account's message callback at this inbox.

The form also has Enabled, which switches the inbox on and off, AI chat without agents, Prompt to tag before replying, which warns agents before they reply in a conversation without tags, CSAT Surveys and Reopen window (hours).

Step 8. Set the webhook in Meta

The callback that the panel sets for the account delivers messages, but Meta does not send template status updates through it. Set the webhook on the app level as well:

  1. In the Meta app go to "Use cases", "Customize", "Configuration". For an app created without the "Connect with customers through WhatsApp" use case the page is "WhatsApp", "Configuration".
  2. Enter the panel's Callback URL in "Callback URL" and your verify token in "Verify token". Press "Verify and save".
  3. In "Webhook fields", subscribe to messages and message_template_status_update.
  4. Back in the panel, save the inbox once more. The panel then repeats the account-level registration with Meta's settings in place.

On 13 October 2026 Meta subscribed both fields by itself right after "Verify and save". If "Verify and save" fails, the verify token in Meta differs from the one in the panel, or the callback URL was copied only in part.

messages brings incoming messages and delivery statuses. message_template_status_update keeps the approval status of your templates up to date in the panel. The panel never changes the app-level webhook in Meta's dashboard: if your site address changes later, the panel moves the account-level callback by itself, but you update the app-level "Callback URL" in Meta by hand.

Step 9. Publish the app

Until the app is published, Meta sends it only test events from the dashboard and messages from people who have a role on the app: "Apps in development mode can only receive test notifications initiated through the app dashboard or notifications initiated by people who have a role on the app." Your customers' messages reach the panel only after publishing.

  1. In the Meta app open "App settings", "Basic" and fill in what Meta asks for. On 13 October 2026 Meta asked us for the "Privacy Policy URL", the "Terms of Service URL", the "User Data Deletion" address and the "Category". Meta's page on these settings also marks "Display Name", "Contact Email" and "App Icon" as required for publishing. Press "Save changes".
  2. Open "Publish", "Go live" and press the "Go live" button in the bottom right corner. The screen lists anything that is still missing.

App Review is not needed for your own business: "If you are a direct developer and only access your own business data, you do not need to undergo App Review."

Step 10. Add a payment method

Without a payment method Meta delivers only the free replies, the first 1,000 a month per number, and sends no templates. In WhatsApp Manager open "Overview", the three-dot icon, "Manage account settings", the "Settings" tab, "Payment settings", "Add payment method". The same page is Billing Hub at https://business.facebook.com/latest/billing_hub/payment_methods/. Meta takes Visa and Mastercard, not American Express or PayPal, and the person adding it needs the "Manage WhatsApp account" permission. Under the new account model the payment method belongs to the Messaging account.

Step 11. Route the inbox to the assistant

The assistant answers only conversations assigned to it, and an automation rule makes that assignment for each inbox. A WhatsApp inbox you add after your site was set up always needs the rule described in Routing a new channel to the assistant: add it right after creating the inbox, or write to support@epavdesk.com and we add the rule for you. Without the rule the assistant stays silent in WhatsApp: no first message with the AI notice goes out and no answer, and the conversations wait in the list for an agent.

Step 12. Test the connection

From another phone, not the business number, send a WhatsApp message with a question your knowledge base answers. A new conversation should appear in the panel, and the customer should get the first message with the AI notice and then the assistant's answer. Reply to the conversation from the panel to check that agents' replies go out too.

When messages do not arrive

A message that Meta did not deliver gets a red mark in the conversation, and hovering it shows the reason in your panel language:

what the panel says Meta code what to do
The WhatsApp Business account is restricted by Meta 131031, 368 Meta locked or restricted the account, for a policy violation or because it could not verify data. See "When the account is restricted" below
Meta did not deliver it: payment method problem in Billing Hub 131042 add a payment method (Step 10), then send the failed replies again by hand
Meta did not deliver it: more than 24 hours since the customer's last message, only a template can be sent 131047 send an approved template
Meta could not deliver it: the number has no WhatsApp or an outdated app 131026 the customer's number has no WhatsApp, or the app is too old
Too many messages to this customer in a short time, try again later 131056 wait and send again
The phone number is not registered on the WhatsApp Business Platform 133010 register the number (Step 6)
Meta limited this number: earlier messages were marked as spam 131048 write only to customers who expect an answer
Meta did not deliver it: the customer's limit of marketing messages 131049 send marketing templates to this customer later

Other reasons show Meta's own text. When the reason is the payment method (131042), the conversation also gets a private note, and users who can manage inboxes get one notification a day per inbox, in the panel, by push and by email.

When the account is restricted

Meta's error table describes 131031 as an account "restricted or disabled for violating a platform policy, or we were unable to verify data", and Meta lifts an account lock only after an appeal: in Business Support Home select the Messaging account, choose the issue and press "Request Review"; Meta reviews it within 24 to 48 hours.

Our own case on 13 October 2026: the setup was complete, the assistant answered, and every reply failed with 131031, "Business account has been locked". The business portfolio was new and unverified. Meta's account status (health status) showed the codes 141006 (no payment method on the account), 141010 (the business is not verified) and 131000 (the business profile lacks the legal name, country and website). After the business profile was filled in, 131000 disappeared; after a card was added, 141006 disappeared; 141010 stayed, and the replies were still not delivered. Codes 141006 and 141010 are not in Meta's error table; their meaning above is what Meta's answer said on that day. What to do in such a case:

  1. Fill in your business details in the business portfolio (legal name, address, phone, website) and add a payment method (Step 10).
  2. Verify the business: in Meta Business Suite open "Security Centre" and press "Start verification". Meta asks for details that match your company documents and a website on HTTPS, and decides within up to 14 working days. If it says "Ineligible for verification", you do not need to verify there.
  3. Ask for a review in Business Support Home, "Account status overview", the account, "Request review".

Customers' messages do not reach the panel

Check, in this order:

  • the Meta app is published (Step 9);
  • "Webhook fields" shows the messages subscription (Step 8);
  • the App secret comes from the same Meta app as the access token. With a wrong secret the inbox still saves, but the panel rejects every incoming message as not coming from Meta;
  • the account-level registration went through. You cannot see the server log of your site, so after fixing the Meta settings save the inbox again, and if messages still do not arrive, write to support@epavdesk.com and we check the log for you.

If template statuses do not change in the panel, check the app-level webhook and the message_template_status_update subscription.

The access token expired

When Meta rejects the saved token (Meta error 190 for an expired token), the inbox form shows a red notice, "Meta rejected this inbox's access token. Messages and media will fail to send or download until you paste a new token below and save.", until you paste a new token and save. An hour after the first rejection, users who can manage inboxes also get a panel and browser notification, once a day until the token is replaced. Issue a new token (Step 4), paste it over the masked value in Access token and press Save.

Business verification and messaging limits

You can start without business verification, but see "When the account is restricted" above: Meta may hold the replies of a new, unverified portfolio. A new business portfolio begins with limits that all its numbers share:

  • business-initiated messages, outside the 24-hour window, to at most 250 different customers in any 24 hours;
  • at most two registered business phone numbers.

The first limit grows to 2,000 after business verification ("Security Centre", "Start verification") or after 2,000 delivered template messages to different customers within 30 days. Replies inside the 24-hour window do not count toward it.

The 24-hour window and templates

For 24 hours after the customer's last message you can reply without a template, by the assistant or by an agent. Meta's pricing page (updated on 30 September 2026, checked by us on 16 October 2026) says that since 1 October 2026 these replies are paid above a free allowance: each business phone number gets the first 1,000 a month free, and from the 1,001st Meta charges for each reply at the rate of the recipient's country, the same as for utility templates. Messages in the free window that a Click to WhatsApp ad opens stay free. Meta bills you directly in its Billing Hub. Meta sets and changes these terms and rates; the current ones are on its pricing page.

During the last four hours of that window, the reply box shows "Reply window closes in ...", and once it has closed, "24-hour reply window closed" with a Send template button: from then on only templates approved by Meta can be sent.

  • Templates are managed in Admin > WhatsApp templates. Create one with New template and send it for approval with Submit to Meta, or load templates you already approved in Meta with Sync from Meta.
  • In a conversation, Send template in the reply box sends an approved template.
  • To write to someone first, press New conversation in the sidebar above My Inbox, open the WhatsApp tab, and choose the inbox, the contact or phone number, and the template.

Paid messages, both the replies above the free 1,000 and the templates that start conversations from your side, need a payment method in Meta's Billing Hub, see Step 10. Without it Meta delivers replies only within the free 1,000 of the month and refuses the rest.

When Meta does not deliver a message, the panel shows the reason, see "When messages do not arrive" above.

The AI notice

Every new WhatsApp conversation that a rule hands to the assistant starts with the notice that the customer is talking to an AI: "You are chatting with an AI assistant. Ask for a human at any time and I will pass you on." With AI chat without agents on, only the first sentence is sent. The notice comes in the language the assistant answers in, as far as the panel has a translation for it: usually the language of the customer's first message, or always the same language if the assistant's Languages list holds just one (see Assistant settings). The WhatsApp form has no greeting field, so the notice is the whole first message.

While the assistant answers

  • The customer sees their message marked as read and the typing indicator while the assistant prepares an answer.
  • When the assistant offers the customer one to three short options, they appear as tap buttons under its message, and a tap comes back as the customer's reply. WhatsApp takes buttons only with labels of up to 20 characters under a message of up to 1024 characters; otherwise the message goes out as plain text without buttons.
  • When the assistant asks whether the answer helped, the question comes with the buttons Yes, thanks and I need more help in the language of the answer, within the same limits.
  • WhatsApp does not take messages longer than 4096 characters and does not show tables, so a long answer arrives in several parts and a table as lines of text.
  • Voice messages are turned into text for the assistant and the agent: see Voice messages.

When the assistant is paused

While the AI assistant is paused (after a cancellation or the end of a paid period), a new WhatsApp conversation still starts with the usual first message and the AI notice. To the customer's question the bot replies at once that it is passing them to a colleague, and the conversation goes to your agents. See When the AI assistant is paused. After the trial a site without payment is stopped, and WhatsApp messages get no answer until payment, see Trial mode.

AI chat without agents

Turn on AI chat without agents in the WhatsApp inbox when nobody but the bot answers there. The assistant then never hands a conversation to agents: when the knowledge base has no answer, it says so and asks for another question. More in AI chat without agents.

When a conversation continues

While a conversation is open, everything the customer writes goes into it. After it is resolved, Reopen window (hours) decides what happens to the next message: within that many hours the same conversation reopens, later a new one starts. A new inbox starts with 48 hours, and 0 means the next message always starts a new conversation.

Customer ratings (CSAT)

With CSAT Surveys on, the form shows the CSAT survey template: Message, Button text and Language. The panel registers this text with Meta as a template. Once Meta approves it, a resolved conversation gets the survey even when the 24-hour window has already closed. Until then the panel sends the survey text with a rating link, but only while the window is open. If neither is possible, the conversation gets the note "CSAT survey was not sent. The WhatsApp reply window is closed." A conversation gets one survey at most.

Files

WhatsApp takes one file per message. The size limits depend on the type: images up to 5 MB, video and audio up to 16 MB, documents up to 100 MB.

Identity checks

A WhatsApp number proves only that the person owns the phone, not who they are in your own systems. The assistant therefore never treats a WhatsApp contact as signed in: custom tools marked Require verified contact run only after the person confirms an email address with a one-time code that the assistant sends by email. The code is sent with your own mail set up in Admin > Notifications > Email, or by the EPAV mailbox when it is switched on in the cabinet: the mailbox sends customers these codes and nothing else. See Custom tools.

Keys stay hidden

The access token, the app secret and the verify token are stored encrypted and shown masked in the form. When you save the form with a masked value unchanged, the stored value stays. To replace a key, paste the new value over the masked one and save.

Was this article helpful?