You can connect your number to the official WhatsApp API without losing the app or the history, but it does not happen from the app's panel: it is called coexistence, and only a provider that supports it turns it on. If instead you delete the WhatsApp Business account and register the number by hand, the history is lost and that number stops working in the app.
It is not an opinion. Meta writes it in its guide to using an existing WhatsApp number: either you delete the account, or you come in with a provider that supports onboarding numbers from the WhatsApp Business app. There is no third door in the panel.
What follows is the real order: what you need, the six steps in the panel, the errors you are going to see with their exact text, and when the official API is not worth it.
What coexistence is and what changes on your number
Meta calls this feature Onboard Business app users, and in support channels and partner documentation it appears as coexistence. Its documentation describes the result in one line: the business can send messages at volume through Cloud API, keep writing by hand from the WhatsApp Business app, and WhatsApp keeps the history synced between the two.
That is what you buy, and this is what it costs:
- The history is not deleted. Messages from the last 6 months can be synced, if the business agrees to share them during onboarding. If it does not share them, Meta returns a history-not-shared notice and the process goes on without them.
- The 24-hour window only applies to the API. Messages you send from the app are not subject to the window, and they do not open it, extend it or enter the Cloud API bill.
- Throughput is fixed at 20 messages per second. That is the price of staying compatible with the app: Meta describes it as a fixed limit, not as something that goes up with the plan.
- The app loses features. Broadcast lists are turned off (existing ones become read-only), disappearing messages and view-once messages are switched off, and voice and video calls are not supported by the API.
- Groups are not synced. Group chats from the app stay in the app.
- Linked devices are unlinked. When the number is onboarded, every companion app is unlinked and the supported ones have to be paired again.
If your number has years of conversations with customers, coexistence is the only path that does not start from zero.
Requirements before touching anything
Five things, and one that you do not need at the start even though it is repeated everywhere.
- A Meta account and developer registration. The get-started guide asks for a Facebook account or a managed Meta account, plus developer sign-up if you do not have it yet.
- A number that meets the requirements. Meta requires it to be yours, to have a country code and to be able to receive a call or an SMS. Numbers already in use with WhatsApp cannot be registered unless they are deleted first.
- The path decision. A new number, or coexistence. If you choose coexistence you need a provider that supports it: Meta exposes it through Embedded Signup and the partner has to be a Solution Partner or Tech Provider.
- The WhatsApp Business app up to date. For coexistence, Meta asks for version 2.24.17 or higher.
- A place to receive the events. The API announces every message through a webhook. No webhook, no bot: you get a number that sends and does not listen.
What you do not need to send the first message is business verification. Meta lists it as one of the ways to raise the limit from 250 to 2,000 unique numbers in 24 hours, not as a sign-up requirement. Verifying the business and connecting the number are two separate procedures: the panel asks for the second one in the first minute; the first one can wait.
The three paths, in one table
Before choosing, look at what each one withstands with your real number.
Chart 1 · The five situations that decide the path. The three columns are WhatsApp Business app, API with coexistence and API with a new number. The same business number can live in three places, and each one withstands different things. Each row is a situation of the first month; the order measures nothing. A depends cell means it depends on the configuration, it is not automatic.
| Situation | WhatsApp Business app | API with coexistence | API with a new number |
|---|
| Receive and reply from the phone | Yes | Yes | No: a registered number cannot be used with WhatsApp |
| Write free-form text whenever you want | Yes | No | No |
| Send templates approved by Meta | No | Yes | Yes |
| Several agents on the same number | Only with linked devices | Yes | Yes |
| Keep the history you already have | Yes | Depends | No |
The owner or a salesperson answers by hand from their phone, with no panel in between. The app has no 24-hour window; the API only replies with free-form text inside it. Outside the window, the template is the only message that goes out. A team in the same inbox: in the app, up to four linked devices; in the API, real agents. Up to 6 months of conversations are synced if the business shares them.
The depends of coexistence is not a marketing nuance: the history only moves if the business shares it during onboarding, and the sync has to complete within 24 hours of sign-up or the customer has to be dropped and the flow repeated.
Step 1. Create the app with the WhatsApp use case
In the Meta app panel: Create App, name and email, and in the list of use cases you pick Connect with customers through WhatsApp. Then you choose an existing business portfolio or create a new one, review the publication requirements and confirm with Create app.
When it finishes, Meta leaves you on the Customize use case page with the Start using the API button. There is no number yet: there is an app.
Step 2. Connect the messaging account
Start using the API takes you to API Setup. There you connect the app to a messaging account: you pick one that already exists in your portfolio or create a new one with Create a WhatsApp Business account.
Once it is connected, the panel shows the messaging account ID. Save it: it is the identifier you will use in the calls and in the webhook subscriptions. If you created the portfolio in step 1, Meta may have created an account for you automatically; check the connection before moving on.
Step 3. Choose the number: the history is decided here
This is the step people skip and then regret. There are two paths, and only two.
A new number. You add it from the same screen, receive a code by SMS or by call and it is verified. The number can still receive normal calls and SMS, but it cannot be used with WhatsApp.
A number that already lives in the WhatsApp Business app. Either you delete it, or you come in with a provider that supports coexistence. Deleting the account is done in the app, at Ajustes > Cuenta > Eliminar mi cuenta (the label in the Spanish app); Meta warns that the number can take up to 3 minutes to become free, and that the message history is lost and the number will not work in the app again unless you remove it from the API.
One detail that stops many people at this step: adding the number in the panel verifies ownership, but does not register it for Cloud API. Meta says it explicitly: registration is completed with the registration endpoint, or the provider does it for you if you come in through Embedded Signup.
Setting up the webhook, the number registration, the permanent token and template management is infrastructure work, not business work. If what you want is the number connected with a bot behind it, BuilderBot Cloud does that part: you connect the number through Meta's official flow and the agent answers from day one. You can see the plans and what each one includes, what ships in the product on the features page and, if you are going to integrate it with your own system, the REST API and the webhooks.
What no platform can do for you: decide whether you can lose the history. That is step 3.
Step 4. Test with the test number before risking the good one
When you complete the sign-up, Meta generates a test number that is already registered. With the temporary token the panel gives you, you can send the hello_world message to your own phone and confirm that the number sends.
That token expires soon and Meta says it plainly: it is not for production. For the permanent token you create a system user in Business Settings, assign it the app and the WhatsApp account with full control, and generate a token with three permissions: business_management, whatsapp_business_messaging and whatsapp_business_management.
Step 5. Create and get a template approved
Outside the service window, the template is the only message that can go out. They are created in WhatsApp Manager or through the templates API, and each one is categorised as authentication, marketing or utility.
The review combines automated systems and manual review, and Meta warns that it can take up to 24 hours to decide. If it is approved, it stays at Active - Quality pending; if it is rejected, it is edited and resubmitted, or appealed with a sample.
Rejections repeat for the same causes: badly formatted parameters ({{1}} is the correct format), parameters out of order, variables with characters such as #, $ or %, a text that starts or ends with a variable, or content that breaches WhatsApp's commerce and business policies.
Step 6. Check the 24-hour window before writing
The customer service window opens when the customer writes to you or calls you, lasts 24 hours and restarts with every new message or call. Inside it you can send free-form text, images, documents or buttons with no prior approval. When it closes, only templates go out.
Two practical consequences you learn the hard way:
- The window cannot be opened from your side. There is no setting, no trick, no free first message: if the customer did not write, there is no window.
- Replying late costs money and friction. If the customer wrote at 9 and you answer the next day, you are already outside and you need a template. The detail of what Meta charges is on its own pricing page, not on the tool's page.
Common errors and their exact message
These are the ones the API returns, with the text Meta publishes in its error code table. If you see another one, it is not on this list and you should look it up by code before touching anything.
| Code | What Meta returns | What is happening |
|---|
131047 | More than 24 hours have passed since the recipient last replied to the sender number. | You are trying free-form text outside the window. You need a template. |
132001 | The template does not exist in the specified language or the template has not been approved. | Name or language misspelled, or the template is not approved yet. |
132015 | Template is paused due to low quality so it cannot be sent in a template message. | The template was paused for low quality. Edit it, resubmit and wait for approval. |
131056 | Too many messages sent from the sender phone number to the same recipient phone number in a short period of time. | Insisting with the same recipient. Wait and retry; other numbers can go on. |
133016 | Registration or Deregistration failed because there were too many attempts for this phone number in a short period of time | Too many registration attempts in a row. The number is blocked for a while; you have to wait. |
There is a sixth error that does not appear in the table because it is not an error: the message shows as sent and never arrives. Meta explains that in many cases it does not reveal the cause for privacy and policy reasons, and that among the reasons are that the recipient did not connect within the 30-day window or did not accept the current terms. If it happens with one specific customer, the problem is not in your integration.
Connecting without the official API: what risk you take
There is the other way: unofficial libraries such as Baileys, which speak the WhatsApp Web protocol and connect a number by scanning a QR code. They install in minutes, they ask for no business account and no templates, and that is why they are so popular for prototypes.
What you should know before putting the company number there:
- It is not a Meta product. The platform documentation does not describe it because it is not part of it: no app review, no service commitment, no support to escalate an incident to.
- You have no templates and no window. Everything this guide explains about approved templates, the 24-hour window and messaging limits are features of the official platform. With an unofficial library, they simply do not exist.
- The number stays outside Meta's umbrella. If WhatsApp restricts or disables an account on the platform, there is a documented appeal procedure. A number that never entered the platform has no such procedure.
- Protocol changes break the session. When WhatsApp changes something on its side, the library is updated when the community can, not when you need it.
None of this means a number always gets blocked. It means that, if it is blocked, there is no one to claim from and the business number is what is lost. For a prototype with a disposable number it is a reasonable decision; for the line that serves customers, it is a bet you pay with the most expensive asset you have.
When you should not use the official API
The official API is not the answer to everything, and saying so in time saves months:
- If you reply by hand to a few customers a day. The WhatsApp Business app does not go through the Cloud API bill and needs no webhook. Putting the API there is complicating yourself for nothing.
- If your plan is to write to people who never gave you permission. Meta requires prior consent and documents the penalty for accounts that insist: warnings, multi-day blocks and, in the worst case, permanent disabling. The API is not a shortcut around opt-in.
- If you are not going to maintain the infrastructure. Someone has to receive the webhooks, renew the token and create templates. If it is not you or your provider, the number goes silent the day something expires.
- If all you wanted was a button menu on Instagram. That is another product.
Summary in three points
- Without losing the number it is done with coexistence, and a provider that supports it turns it on: you keep the app, you keep up to 6 months of history, and you accept 20 messages per second, with no groups and no calls through the API.
- Deleting the account and registering by hand works, but the history is lost and the number stops working in the app. That is the path of the new number, not of the line that already serves customers.
- Outside the 24-hour window only approved templates go out. The
131047 error is exactly that, and it is not fixed by coding.
If the number is already connected and what is missing is the bot, the guide to creating a WhatsApp bot starts where this one ends. And if you want to see what each part costs before deciding, the pricing comparison separates the tool from what Meta charges.
Frequently asked questions
Can the number be connected to the official API without deleting WhatsApp?
Yes, with coexistence: the number works at the same time in the WhatsApp Business app and in Cloud API, and the history is synced between the two. A provider that supports onboarding app numbers turns it on, not the app panel on your own.
What happens if I delete the WhatsApp Business account to register it?
The message history is lost and the number does not work in the app again, unless you remove it from the API. Meta also warns that the number can take up to 3 minutes to become free before you can register it.
How much history is kept when moving to the API with coexistence?
Messages from the last 6 months can be synced, as long as the business agrees to share them during onboarding. The sync has to complete within 24 hours of sign-up.
Do I need business verification to connect the number?
Not to start. Business verification is one of the ways Meta accepts to raise the messaging limit from 250 to 2,000 unique numbers in 24 hours. You connect the number without it; you need it when you grow.
Why does my message not go out outside the 24-hour window?
Because outside the window only approved templates are sent. Meta returns error 131047 with the text "More than 24 hours have passed since the recipient last replied to the sender number", and no setting avoids it.
Is Baileys the official WhatsApp API?
No. Baileys is an unofficial library that speaks the WhatsApp Web protocol: Meta does not document it, it has no templates and no service window, and the number stays outside the platform's appeal procedures.
Keep reading
Published on November 30, 2026 by Leifer Méndez. Sources: Meta for Developers official documentation (WhatsApp Business Platform), checked on November 30, 2026. Meta's amounts and limits change: its page rules, not this article.