# 14 · Official WhatsApp: connect a number, message templates, the 24-hour window and Official analytics

**Purpose:** connect a number through Meta's official WhatsApp API, prepare the approved messages (templates) you need to write to customers first, understand the 24-hour reply window, and read the delivery reports and Meta's charges.

## Before you start

- A plan that includes the official API. Without it the sidebar does not show **Official WhatsApp**, **Message templates** and **Official analytics**.
- A free **Official slot** for the new number (see [09 · Account, team and billing](https://wsapme.com/guides/account-team-billing.md)).
- A Facebook account that can manage your business on Meta, and the phone number you want to connect. A number can be connected one way only: a number that is linked by QR code in any Wsapme workspace is refused until it is removed there.
- You are an **Owner** or **Admin**. Other team members can look at templates and analytics but cannot connect numbers or create and delete templates.

> The screenshots use a demo workspace with Demo mode on, so phone numbers, the display name and Meta IDs are hidden. In this guide **nothing was connected, submitted to Meta, sent or deleted**: Meta's sign-in window, the template review and reports with real messages are described from the module documentation and are marked "(from the documentation, not captured)".

**Watch first (3:39, Malay narration):** [Official WhatsApp, templates and analytics](https://wsapme.com/guide-media/video/14-official-whatsapp-templates-and-analytics-malay.mp4). A tour of the Official WhatsApp page and the two ways to connect, the details and Health & costs cards of a number, a new template filled in with variables and a button, the Template library and the Official analytics tabs. Nothing is connected, submitted or sent in the video.

## Part 1 · The Official WhatsApp page

1. In the sidebar, under **Channels**, click **Official WhatsApp**.
2. Every official number of the workspace is listed with its name, its number and display name, Meta's quality rating (**High**, **Medium**, **Low** or **Not rated yet**), its messaging limit (for example **250 customers / 24 h**) and its status (**Connected**).

   ![The Official WhatsApp page with one connected number](https://wsapme.com/guide-media/img/official-whatsapp-templates-and-analytics/01-official-numbers.webp)

3. The two buttons at the top are the two ways to connect:

   | Button | Choose it when | Good to know |
   |---|---|---|
   | **Connect a number** (Official API) | The number will be used only through Wsapme. | The number can't be used in the WhatsApp app any more. |
   | **Business app + API (Hybrid)** | You want to keep using the WhatsApp Business app on your phone as well. | Open the app at least once every 14 days. Up to 6 months of chat history is imported. Some app features are turned off. |

   With both, Meta charges you for template messages (see Part 9). The comparison with a QR number is in [01 · Getting started](https://wsapme.com/guides/getting-started.md).

## Part 2 · Connect a number (Official API)

1. Click **Connect a number**. The **Official API** window opens. It also shows your slots, for example "QR slots: 1 of 2 used · Official slots: 1 of 2 used."
2. Type a **Name** your team will recognise (for example `Support (official)`).
3. Fill **Two-step verification PIN (only if the number already has one)** only when the number was registered on the official API before and has a 6-digit PIN. Otherwise leave it empty.

   ![The Official API window with Continue with Facebook highlighted](https://wsapme.com/guide-media/img/official-whatsapp-templates-and-analytics/02-connect-official-api.webp)

4. Click **Continue with Facebook**. Meta's own window opens. Sign in with Facebook, choose your business, choose or create the WhatsApp Business Account, and pick or add the phone number. You keep full ownership of your WhatsApp Business Account. *(from the documentation, not captured)*
5. When Meta's window closes, the number appears in the list as **Connected** and its templates are loaded. If you close Meta's window before the end, nothing is created and you can start again. *(from the documentation, not captured)*

> **Not shown here:** Meta's sign-in window contains real accounts, so it was not opened for this guide.

## Part 3 · Connect with the WhatsApp Business app (Hybrid)

1. Click **Business app + API (Hybrid)**. The **Hybrid: Business app + Official API** window opens with **Before you start**.
2. Tick the three checks. All three must be true:
   - **The number is on the WhatsApp Business app (not the personal WhatsApp app).**
   - **The WhatsApp Business app is updated to the latest version.**
   - **The number is active in the app on your phone right now.**

   ![The three checks before a Hybrid connection](https://wsapme.com/guide-media/img/official-whatsapp-templates-and-analytics/03-hybrid-before-you-start.webp)

3. After the third tick, the window asks for a **Name** and shows **Continue with Facebook**. *The checks were not ticked in this guide.*
4. In Meta's window, sign in and follow the steps. Meta shows a QR code: scan it with the WhatsApp Business app on your phone. *(from the documentation, not captured)*
5. The number then appears as **Connected** (the **Devices** page labels it **Hybrid**), and Wsapme starts importing your contacts and up to 6 months of chats from the app. Imported chats appear in the inbox as they arrive. They are not answered by automations and do not reopen the 24-hour window. *(from the documentation, not captured)*
6. Afterwards, open the WhatsApp Business app at least once every 14 days so the connection stays active.

### Common Meta errors while connecting

These two messages come from Meta's window, not from Wsapme. *(Reported by customers; not captured for this guide.)*

| Meta's message | What to do |
|---|---|
| **#2655123**: the phone number is already linked to a Facebook Page | Switch Facebook to that Page, open `https://www.facebook.com/settings/?tab=linked_whatsapp` (Settings & privacy → Settings → Linked accounts → WhatsApp) and click **Remove** next to the number. Then connect again. |
| **#3441061**: the phone number is already linked to automatic events; turn off auto lists | On the phone, open the WhatsApp Business app → **Business tools** → **Lists** (older versions say **Labels**) and turn off the automatic lists. Wait a few minutes, then connect again. If the option is missing, update the app first. |

## Part 4 · A number's details, quality and messaging limit

1. On the **Official WhatsApp** page, click the number. Its page opens (the same page as under **Devices**).
2. The **Official WhatsApp details** card shows:
   - **Number** and **Display name**: the business name customers see. When Meta's status for the name is anything other than approved, the status follows it, for example "available without review".
   - **Quality**: Meta's rating of the number, **High**, **Medium** or **Low** (**Not rated yet** on a new number). It falls when customers block or report your messages.
   - **Messaging limit**: how many customers you can start a conversation with in 24 hours, for example **250 customers / 24 h**, or **Unlimited**. Meta raises or lowers it by itself.
   - **Business account ID** and **Phone number ID**: Meta's IDs for your account and number.
   - **Connected via**: **Facebook sign-up** or **Access token**, with **Hybrid** when the number is also on the WhatsApp Business app.
   - **Incoming messages**: **Receiving** when customer messages reach Wsapme. If it says **Not subscribed yet — use Refresh**, click **Refresh from Meta**.
   - **Connected**, **Messages** (received and sent) and **Last checked**.

   ![The Official WhatsApp details and Health & costs cards](https://wsapme.com/guide-media/img/official-whatsapp-templates-and-analytics/04-official-details.webp)

3. A Hybrid number also shows the box **Connected via WhatsApp Business app (coexistence)** with the 14-day reminder.
4. **Refresh from Meta** reads the quality, limit and name again and updates **Last checked**. Owners and admins see **Update access token** on every official number, including numbers connected with Facebook. You need it only when the number was connected with an access token and that token has expired or was revoked: paste a new permanent token and click **Check and save**. Numbers connected with **Continue with Facebook** do not need it. *Neither button was clicked in this guide.*
5. The **Health & costs** card next to it has two parts:
   - **Reports from Meta**: what Meta told Wsapme about the number, newest first, for example a quality change, a higher or lower messaging limit, a restriction, a display name decision or a paused template. **No issues reported.** means all is well. Owners and admins also get these alerts by email and WhatsApp. *(the alerts are from the documentation, not captured)*
   - **Billable messages** for the current month (see Part 9).

## Part 5 · The 24-hour reply window

WhatsApp lets an official number write freely to a customer only for 24 hours after that customer's last message.

- **Inside the window** you can send normal text, pictures and documents from the inbox. The inbox shows "Reply window open · closes in …" above the message box.
- **Outside the window** (the customer wrote more than 24 hours ago, or never wrote) only an approved **template** can be sent. The inbox shows "The 24-hour reply window is closed. Send an approved template; you can reply freely once the customer answers."
- A reply from the customer opens the window again for 24 hours.
- On a **Hybrid** number whose QR session is also linked, the inbox shows "Hybrid: messages are sent through the linked QR session (no 24-hour limit); templates through the official API." *(from the code, not captured)*

Sending a template from a chat is shown in [02 · Team inbox](https://wsapme.com/guides/team-inbox.md). Broadcasts from an official number always use a template (see [03 · Broadcast and follow-ups](https://wsapme.com/guides/broadcast-and-followups.md)).

## Part 6 · Message templates

A template is a message that WhatsApp approved in advance. Templates belong to the WhatsApp Business Account of your official number.

1. In the sidebar, click **Message templates**. Each row shows the template's name, its status, its language and category, the start of its text and when it was last updated.

   ![The Message templates list](https://wsapme.com/guide-media/img/official-whatsapp-templates-and-analytics/05-message-templates.webp)

2. The statuses:

   | Status | Meaning |
   |---|---|
   | **Approved** | Ready to send at any time. |
   | **Pending** | WhatsApp is still reviewing it (the filter calls this **In review**). |
   | **Rejected** | WhatsApp refused it. The row shows **Reason:** in red. |
   | **Paused** or **Disabled** | Meta stopped it because customers reacted badly to it. |

   Only **Approved** templates were present in the demo workspace; the other statuses are from the code.

3. Use **Search by name or text** and the **All statuses** filter (**Approved**, **In review**, **Rejected**, **Paused or disabled**) to find a template. With numbers in more than one WhatsApp Business Account, a third filter, **All business accounts**, appears.
4. **Sync from Meta** loads the list again from Meta, for example after you created a template in WhatsApp Manager. Wsapme also updates statuses by itself when Meta reviews a template.
5. **Send test** (on approved templates) sends the template to a phone number you type, also outside the 24-hour window. It is a real WhatsApp message.
6. **Copy** appears when you have numbers in more than one WhatsApp Business Account. It submits the same template to the other account, where WhatsApp reviews it like a new one. *(from the code, not captured)*
7. The red bin deletes the template at WhatsApp too. Broadcasts that use it can no longer send it, and the same name cannot be used again for 30 days.

*Sync from Meta, Send test, Copy and delete were not clicked in this guide.*

### The three categories

| Category | Use it for | How to get one |
|---|---|---|
| **Utility** | Orders, bookings, account updates. | **New template**, or the **Template library**. |
| **Marketing** | Offers, news, invitations. | **New template**. |
| **Authentication** | One-time codes. | Only from the **Template library**. |

Meta prices each category differently, and it can move a template to another category after review.

## Part 7 · Create a template and submit it for review

1. On **Message templates**, click **New template**.
2. Under **Basics**:
   - **Name**: lowercase letters, numbers and underscores (for example `order_ready`). Only your team sees it. Spaces become underscores as you type.
   - **Category**: **Utility** or **Marketing**.
   - **Language**: the language of the text, for example **Malay** or **English**.
   - With more than one WhatsApp Business Account, also choose the **Business account**.

   ![The New template form: Basics and the preview](https://wsapme.com/guide-media/img/official-whatsapp-templates-and-analytics/06-new-template-basics.webp)

3. Under **Content**:
   - **Header (optional)**: **None**, **Text**, **Image**, **Video** or **Document**. A text header can hold one variable. For a picture, video (MP4) or document (PDF) you upload an example file for the review; you choose the real file each time you send.
   - **Message**: the text, up to 1,024 characters. Click **Add variable** to insert `{{1}}`, `{{2}}`… where a detail changes per customer, such as a name or an order number.
   - **Examples (shown to WhatsApp's reviewers)**: type a sample value for every variable.
   - **Footer (optional)**: a short grey line, up to 60 characters.
4. Under **Buttons (optional)**, click **Add button** (up to 10). Choose **Quick reply** (the customer's tap comes back as their answer in the inbox), **Visit website** (the link must start with `https://`) or **Call phone number** (with the country code). The button text can be up to 25 characters.
5. Check the **Preview** on the right. It fills in your examples.

   ![The Content section with two variables, their examples, a footer and a quick-reply button](https://wsapme.com/guide-media/img/official-whatsapp-templates-and-analytics/07-new-template-content.webp)

6. Click **Submit for review**. Wsapme sends the template to WhatsApp and takes you back to the list, where it shows as **Pending**. The review usually takes a few minutes, and the status changes by itself. *(from the documentation, not captured: the form above was filled in but not submitted)*

Wsapme checks these rules before it sends anything to WhatsApp:

- Variables are numbered in order: `{{1}}`, `{{2}}`, `{{3}}`…
- A variable cannot be the very first or the very last thing in the message. Add some text around it.
- Every variable has an example.

> WhatsApp rejects templates that look like spam, ask for sensitive data, or whose category does not match the content.

### Fixing a rejected template

There is no edit button for a template. Read the **Reason:** on the rejected row, then click **New template** and submit a corrected version **under a different name** (for example `order_ready_v2`). Delete the rejected one when you no longer need it; remember that a deleted name is blocked for 30 days.

## Part 8 · The Template library

The library holds **Utility** and **Authentication** templates that Meta has already approved, so they need no review.

1. On **Message templates**, click **Template library**.
2. Narrow the cards with **Search the library**, the language, **All categories**, **All industries**, **All topics** and **All use cases**. Each card shows the template with its variables highlighted.

   ![The Template library](https://wsapme.com/guide-media/img/official-whatsapp-templates-and-analytics/08-template-library.webp)

3. Click **Use this template** on a card.
4. Type a **Template name**, check the **Examples for the parameters** (they are filled in with Meta's samples) and, when the template has a link or call button, type your own website link or phone number. Authentication templates also ask whether to add the line "Do not share this code" and after how many minutes the code expires.

   ![The Use this template window](https://wsapme.com/guide-media/img/official-whatsapp-templates-and-analytics/09-use-library-template.webp)

5. Click **Create template**. The template is created on your WhatsApp Business Account right away and appears in **Message templates** as **Approved**. *(from the documentation, not captured: the window was closed with **Cancel**)*

**Refresh from Meta** loads the newest library; Wsapme otherwise keeps a copy for 24 hours. Team members who are not owners or admins can browse the library but do not see **Use this template**.

## Part 9 · Meta's charges

- Meta charges per **template message**, by category. The charge goes to the payment method on **your own** WhatsApp Business Account in Meta's WhatsApp Manager, not to your Wsapme bill.
- **Replies within 24 hours of a customer's message are free.**
- On the number's page, **Health & costs** → **Billable messages** shows this month's **Messages**, how many were **Billable** and an **Estimate** in USD for **Marketing**, **Utility**, **Authentication** and **Service**. The estimate uses Malaysia's rates; the real price depends on the customer's country. Your invoice is in WhatsApp Manager.
- If Meta cannot charge you, sends fail with the reason **Payment problem** in Official analytics. Fix the payment method in WhatsApp Manager.

## Part 10 · Official analytics

Official analytics is built from the messages you sent through official numbers and the delivery updates WhatsApp sends back.

1. In the sidebar, click **Official analytics**.
2. Choose the period with **From** and **To**, and narrow it with **Number**, **Country (recipient)** and **Category**. The filters apply to every tab.

   ![Official analytics, the Overview tab](https://wsapme.com/guide-media/img/official-whatsapp-templates-and-analytics/10-official-analytics.webp)

3. **Overview** shows **Messages**, **Delivered**, **Read**, **Failed** and **Delivery rate**, then **Delivery by Meta category** (Authentication, Authentication International, Utility, Marketing, Marketing Lite and Service), a chart per day and **Per-day details**. *Sent* means accepted by WhatsApp. Delivery rate is delivered ÷ total; read rate is read ÷ delivered.
4. **Failure reasons** groups failed messages by Meta's error code and explains each one in plain words, with **What to do**. For example **24-hour window closed** (send an approved template instead), **Message undeliverable** (check the number has WhatsApp) and **Marketing limit per customer** (Meta held the message back; do not retry right away).
5. **Templates** shows **Template performance** per template and language: **Sent**, **Delivered**, **Read**, **Failed**, **Delivery rate**, **Top failure** and **Quick-reply taps**. **URL clicks** show n/a because link clicks are not tracked.
6. **Message logs** lists every message, newest first, with the number and recipient, category, template, status times and any error. Search by number, template, error code or text, and filter by status (**Sent**, **Delivered**, **Read**, **Failed**).
7. **Export CSV** on each table is for owners and admins. It is refused while Demo mode is on.

> The demo workspace had no official messages in the period, so every number in the screenshot is 0 and the other three tabs showed their empty messages ("No failed messages in this period.", "No template messages in this period.", "No official messages in this period."). The tables with data are described from the code. *(from the documentation, not captured)*

## Common problems

| Problem | What to do |
|---|---|
| The sidebar has no **Official WhatsApp** | Your plan does not include the official API. See [09 · Account, team and billing](https://wsapme.com/guides/account-team-billing.md). |
| The connect window says all Official slots are used (for example "Official slots: 1 of 1 used"), or the number is refused with "Your Official number slot is in use. Buy another Official number in Billing to add more." | Every Official slot you have paid for already holds a number (Official and Hybrid numbers both use Official slots). The window says so before any Facebook sign-in. Click **Buy an Official slot** (or **Buy more** next to the slots line): Billing opens with one Official number added. Or remove an official number you no longer need. Then connect again. |
| Meta's window stops with an error number | See **Common Meta errors while connecting** in Part 3. |
| "This number is connected by QR code (WhatsApp app) in a Wsapme workspace." or "This number is already connected to a Wsapme workspace." | A number works one way only, in one workspace. Remove the device where it is connected, then connect it again here. |
| I cannot type a free message to a customer | The 24-hour reply window is closed. Send an approved template; you can reply freely once the customer answers. |
| My template is **Rejected** | Read the **Reason:** on the row, then submit a corrected template under a new name (Part 7). |
| "Number the variables {{1}}, {{2}}, {{3}}… in order." or "WhatsApp does not allow a variable at the very start or end of the message." | Renumber the variables from 1, and add some text before the first and after the last one. |
| A template is missing from the list | Click **Sync from Meta**. |
| **Quality** dropped or the **Messaging limit** went down | Customers blocked or reported your messages. Pause marketing sends, message only people who expect to hear from you, and improve the template. Watch **Reports from Meta**. |
| I moved an official number to another workspace and a template is missing there, or **Analytics** is empty | Templates are copied during the move and refreshed from Meta a moment later: click **Sync from Meta** on **Templates** if one is missing. Analytics and message costs from before the move stay in the old workspace; the new workspace counts from the day of the move. See **Move a number to another workspace** in [01 · Getting started](https://wsapme.com/guides/getting-started.md). |
| "This Hybrid number is still importing chats from the WhatsApp Business app.", "This Hybrid number is also paired by QR code, so it can't be moved yet." or "This number's setup isn't finished: Meta isn't sending its messages to Wsapme yet." when moving a number | A Hybrid number can be moved 24 hours after it was connected: the message shows the time. If the same phone number is also paired by QR code, remove that QR device first. For the last message, open the number, click **Refresh from Meta** and wait until it shows as connected, then move it again. |
| A Hybrid number stopped working | Open the WhatsApp Business app on the phone. It must be opened at least once every 14 days. |
| **Export CSV** is refused | Turn Demo mode off, and check that you are an owner or admin. |
| Saving a template fails with "Meta did not accept the template: This WABA is not allowed to create or update templates." | Meta is blocking the WhatsApp Business account, not Wsapme. The usual causes are an account that Meta is still reviewing, or a payment method that Meta could not charge. Open **WhatsApp Manager** in Meta Business Suite: **Account overview** shows a review in progress, and **Payment settings** shows a card problem. Fix what it shows (add a working card, or wait for the review), then save the template again. |

## Related

- [01 · Getting started](https://wsapme.com/guides/getting-started.md): QR, Official API and Hybrid compared
- [02 · Team inbox](https://wsapme.com/guides/team-inbox.md): send a template from a chat
- [03 · Broadcast and follow-ups](https://wsapme.com/guides/broadcast-and-followups.md): broadcasts from an official number
- [04 · Chatbot and workflows](https://wsapme.com/guides/chatbot-workflows.md): the **WhatsApp template** step
- [09 · Account, team and billing](https://wsapme.com/guides/account-team-billing.md): Official slots and plans
