# Set up WhatsApp.

This guide takes you from no WhatsApp setup to your first message delivered. You need no code. Each step says how to tell it worked.

## What you can do

Outbox Stack lets you send WhatsApp messages to your customers from your own business number. You do it all in the dashboard, on the **WhatsApp** page.

A few words come up often in this guide.

| Word | What it means |
| --- | --- |
| Meta | The company that owns WhatsApp and Facebook. Meta decides which numbers can send and which messages are allowed. |
| WhatsApp Business account | Your business's account with Meta for WhatsApp. Your business number lives inside it. You create or pick it while you connect. |
| Template | A message you write once, such as an order update, with blanks for the parts that change. Every message you send from Outbox Stack uses a template. |
| Approval | Meta reads each template before you can use it. Only approved templates can be sent. |
| 24-hour window | Meta's rules describe a 24-hour window that opens when a customer messages your business. Inside it, a business can reply in its own words. Outbox Stack has no inbox and does not send replies in your own words, so the window does not change what you can send from Outbox Stack. |

| You can | You cannot yet |
| --- | --- |
| Connect your own business number through Meta. | Send free-form messages or marketing blasts. Every message must use an approved template. |
| Submit four ready-made templates in one step, or write your own. | Schedule a send for later. A send to a list starts as soon as you confirm it. |
| Send an approved template to one customer who agreed to hear from you. | Read or answer replies. There is no shared inbox and no chatbot. |
| See whether each message was delivered and read. | Use pictures, buttons or files in templates. |

For a short overview, read [WhatsApp for businesses](https://outboxstack.app/whatsapp).

## Before you start

Have these ready before you start.

| You need | Why |
| --- | --- |
| A business phone number you control | Meta checks the number before it can send. You must be able to receive Meta's verification on it. |
| A Facebook login that manages your business in Meta | You sign in to Meta while you connect. Only someone who manages the business and the number in Meta can finish. Meta may ask for details about your business. |
| An owner or admin role in your Outbox Stack workspace | Only owners and admins can connect, manage templates and send. Other members see "An organisation administrator manages WhatsApp setup and sending." |
| A payment method on your WhatsApp Business account | Meta bills you directly for messages and blocks sends if no payment method is on file. Add one in Meta's WhatsApp Manager under Payment settings. The Connect tab tells you if it is missing. |
| Customers who agreed to hear from you | Before each send, you confirm the person agreed to receive WhatsApp messages. Collecting that agreement is up to you. |
| A browser that allows pop-ups | Meta's sign-in opens in a pop-up window. Allow pop-ups and Facebook's sign-in for Outbox Stack. |

**If you already use this number in the WhatsApp app**Connecting a number to Meta's business platform can change how it works in the WhatsApp or WhatsApp Business app on your phone. Read Meta's guidance on this before you connect a number you use every day.

## Connect your number

The **WhatsApp** page has four tabs. These are **Connect**, **Templates**, **Send** and **Activity**. Start on **Connect**. You copy no account numbers or passwords from Meta.

1.  In the dashboard, open **WhatsApp** and the **Connect** tab. Choose **Connect with Meta**.
2.  On the **Connect WhatsApp** page, choose **Set up secure connection**. When it says it is ready, choose **Continue with Meta**.
3.  A Meta window opens. Sign in, choose your business, and share the number you want to use. Approve the access Meta asks for.
4.  If you shared more than one number, pick one under **Business phone number** and choose **Connect selected number**.
5.  If Outbox Stack asks for a **WhatsApp two-step verification PIN**, enter the number's six-digit PIN. If it has none yet, choose six digits now. This is not the code Meta sends by text message. Write it down somewhere safe, because Outbox Stack does not keep it. Then choose **Register and connect number**.

**How you know it worked.** You see **WhatsApp connected**. Choose **Return to WhatsApp**. The **Connect** tab now shows **Connected number** with your number, and a **WhatsApp access** box appears above the tabs.

**Ready to send.** Under **Connected number**, the **Ready to send** list shows whether Meta will let you send. It checks that the number is connected, that a payment method is on your WhatsApp Business account, and that Meta reports no block on sending. Each item says **Ready**, **Needs fixing** or **Could not check**, and a failed item says what to do. After you fix something in Meta, choose **Check again**. Meta can take a little while to allow sending after a fix. The list also shows your daily limit, which is how many different people you can message each day outside a reply window.

If the Meta window closes before you finish, choose **Check progress**. To begin again, choose **Restart signup**. Your existing connection stays in place until a new one is saved.

The **Connect** tab also has a section for account credentials. It is for people who already have Meta account IDs and an access token. Most people do not need it.

## Get templates approved

Open the **Templates** tab. You can start from a ready-made template or write your own. Meta reviews every one.

### Start with a ready-made template

Four templates are ready to submit. Each is a utility message, which is an update a customer expects, in English.

| Template | Message |
| --- | --- |
| outbox\_order\_confirmation | Hi {{1}}, we have received your order {{2}}. We will message you again when it ships. |
| outbox\_shipping\_update | Hi {{1}}, your order {{2}} is on its way and should arrive by {{3}}. |
| outbox\_payment\_received | Hi {{1}}, we received your payment of {{2}} for {{3}}. Thank you. |
| outbox\_appointment\_reminder | Hi {{1}}, this is a reminder of your appointment on {{2}} at {{3}}. Please contact us if you need to change it. |

Tick the ones you need and choose **Submit selected to Meta**. Each one then shows **Submitted to Meta**, **Already in your account** or **Failed** with the reason.

### Variables, the blanks in a template

A variable is a blank you fill in for each person, such as their name or order number. You write it as {{1}}, {{2}} and so on. In _Hi {{1}}, your order {{2}} has shipped_, you fill {{1}} with the name and {{2}} with the order number when you send.

### Write your own template

1.  Under **Write your own template**, enter a **Template name** in lowercase letters, numbers and underscores, such as `order_ready`.
2.  Leave **Language code** as `en_US` for English, or enter another language code.
3.  Pick a **Category**. Choose Utility for updates a customer asked for, and Marketing for promotions.
4.  Write the **Message body**, up to 1,024 characters. Text only. Headers, pictures and buttons are not supported.
5.  For each variable, enter a realistic example under **Examples for your variables**. Meta's reviewers read these. They are not sent to anyone.
6.  Choose **Submit template to Meta**.

Outbox Stack checks a few rules as you type. A body can have at most 10 variables. Number them from {{1}} with no gaps. A variable cannot start or end the body, and two variables cannot sit side by side. Meta can still reject a template that passes these checks. Meta's decision is final.

### Template statuses

Your templates are listed under **Your templates**. Choose **Refresh** to see the latest status.

| Status | What it means |
| --- | --- |
| Pending review | Meta is still reviewing it. You cannot send it yet. |
| Approved | You can send it from the **Send** tab. |
| Rejected | Meta said no. The reason from Meta shows under the template when Meta gives one. |
| In appeal | You asked Meta to look again, and Meta has not decided yet. |
| Paused | Meta has stopped it for now. |
| Disabled | Meta has stopped it, and it can no longer be sent. |

### The email Outbox Stack sends

When Meta approves, rejects or disables a template, Outbox Stack emails every owner and admin of your workspace who has confirmed their email address.

| Outcome | Email subject | What to do |
| --- | --- | --- |
| Approved | WhatsApp template _name_ was approved | Choose **Open WhatsApp** in the email and send it from the **Send** tab. |
| Rejected | WhatsApp template _name_ was rejected | Read the reason from Meta in the email. Fix the wording and submit it again under a new name. You can also appeal in Meta's WhatsApp Manager. |
| Disabled | WhatsApp template _name_ was disabled | Check it in Meta's WhatsApp Manager, or create a replacement on the **Templates** tab. |

**How you know it worked.** The template shows **Approved** under **Your templates**, and you get the approval email.

## Send a message

Open the **Send** tab. It lists only approved templates.

1.  Enter the **Recipient number** with its country code, such as +2348012345678 for a Nigerian number.
2.  Pick the **Approved template**.
3.  Under **Fill in the template**, enter a value for each variable. The **Preview** shows the message as your customer will read it.
4.  Tick **The recipient has agreed to receive these WhatsApp messages.** You cannot send without it.
5.  Choose **Send message**.

Each value can be up to 1,024 characters. It cannot contain a new line, a tab, or five or more spaces in a row.

**How you know it worked.** A message appears that starts "Message accepted". Accepted means Meta received it. Delivery shows on the **Activity** tab. To send another, choose **Compose another message**.

Some approved templates cannot be sent from Outbox Stack yet, such as ones with buttons or a picture. They are listed under **Approved but not sendable from Outbox yet** with the reason.

### Send to a list

You can send one approved template to everyone in a list or segment. A person gets it only if their contact has a WhatsApp number and recorded WhatsApp consent, and they have not unsubscribed. Everyone else is skipped, and the reason is shown.

1.  On the **Send** tab, under **Send to**, choose **A list or segment**.
2.  Pick the list or segment under **Send to** and the **Approved template**.
3.  For each variable, choose where its value comes from: the contact's name, email, an attribute such as city, or fixed text that is the same for everyone. A person missing a value is skipped, never sent a blank.
4.  Check the **Preview**, which uses a real contact from the list, and the counts below it: how many people can get the message and how many will be skipped, and why.
5.  Choose **Review and send**. Read how many people will get it, tick the box confirming everyone agreed to receive WhatsApp messages and that consent is recorded on their contact, then choose **Send to** with the number of people.

Meta limits how many different people your number can message in 24 hours. If more people would get this message than your limit allows, Outbox Stack will not start the send. Send to a smaller list, or wait for Meta to raise your limit. Meta bills your WhatsApp Business account for each message.

**How you know it worked.** A progress view opens with how many were accepted, skipped, failed or are still to send. It updates on its own. Choose **Cancel send** to stop sending to the people still waiting; messages already sent stay sent. If your WhatsApp trial or monthly access ends during a send, it shows as paused and carries on when you renew. Past sends are listed under **Recent list sends**.

## Check what happened

Open the **Activity** tab. **Recent messages** lists what you sent, newest first, and updates on its own. **Template review updates** lists Meta's latest decisions on your templates.

| Message status | What it means |
| --- | --- |
| Sending | Outbox Stack is handing the message to Meta. |
| Accepted by WhatsApp | Meta received the message. |
| Sent | WhatsApp sent the message. |
| Delivered | It reached the customer's phone. |
| Read | The customer opened it. |
| Failed | It was not delivered. A code from Meta may show next to it. |
| Outcome unconfirmed, check before resending | Outbox Stack could not confirm whether Meta took the message. Wait for an update before you send it again, or your customer may get it twice. |

## Send WhatsApp messages automatically

An automation can send a WhatsApp template on its own when someone joins a list. It can send only WhatsApp messages, or mix them with emails. This example sends a payment receipt on WhatsApp the moment your app records a paid order.

### Example: tell a customer their payment arrived

1.  Get `outbox_payment_received` approved on the **Templates** tab. It reads "Hi {{1}}, we received your payment of {{2}} for {{3}}. Thank you."
2.  On **Audience**, create a list called Paid orders.
3.  Open **Automations**, choose **New automation** and pick Paid orders under **Starts when someone joins**. Choose **Add a WhatsApp message** and remove the starter emails you do not want.
4.  Under **Approved template**, pick `outbox_payment_received`. Fill in each blank: {{1}} comes from **Contact name**, {{2}} from **A merge field** called `amount`, and {{3}} from **A merge field** called `order_id`. The preview shows the message for a sample contact.
5.  Choose **Save automation draft**, then **Turn on**. **How you know it worked.** The status changes to **Active**.
6.  When an order is paid, your app adds the customer to the list with a full-access API key. It sends their WhatsApp number, their consent and the order details as merge fields.

```
curl "$MAIL_BASE_URL/v1/lists/LIST_ID/contacts" \
  -H "Authorization: Bearer $MAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "consent": true,
    "source": "checkout",
    "contacts": [{
      "email": "ada@example.com",
      "name": "Ada",
      "whatsapp": "+2348012345678",
      "whatsappConsent": true,
      "attributes": { "amount": "NGN 5,000", "order_id": "#1042" }
    }]
  }'
```

**How you know it worked.** Ada gets "Hi Ada, we received your payment of NGN 5,000 for #1042. Thank you." On the automation's **Overview**, the **WhatsApp messages** table counts it as accepted, then delivered and read as Meta reports them.

### What happens to each person

| Situation | What happens |
| --- | --- |
| The contact has a WhatsApp number, WhatsApp consent and a value for every blank | The template is sent once. If Outbox Stack restarts mid-send, it does not send a second copy. |
| No WhatsApp number, no WhatsApp consent, or an empty value | The WhatsApp message is skipped and the person goes on to the next step, so later emails still arrive. The **Skipped** column says why. |
| Your WhatsApp access has ended, or no number is connected | The person waits and Outbox Stack tries again every 5 minutes. After a day of waiting the message is skipped and the journey goes on, because a late receipt reads as a mistake. |
| Meta refuses the message | It counts as failed and is not sent again. The person goes on to the next step. |
| Outbox Stack cannot confirm whether Meta took it | It is not sent again, so the customer never gets it twice. |

An automation with a WhatsApp step needs a connected number before it can be turned on. It needs a route for marketing email only if it also has an email step. Test sends from an automation are email only. To check the WhatsApp message, send its template to your own number from the **Send** tab.

**Each contact goes through an automation once**A customer who pays a second time is already on the list, so the automation does not start again for them. Their merge fields do update with the new order. For more on how automations work, read [Automate follow-up emails](https://outboxstack.app/docs/automations).

## Who bills you

Two separate charges apply to WhatsApp.

| Who | What for | How you pay |
| --- | --- | --- |
| Meta | The messages you send. The amount depends on the customer's country and the template category. | Meta bills your own Meta business account directly. Outbox Stack adds nothing per message. |
| Outbox Stack | Access for each connected business number, one month at a time. | In the **WhatsApp access** box, choose **Start 14-day trial** or **Buy one month**. There is no automatic renewal. |

Each number gets one trial. Meta still charges for messages during the trial. Your Outbox Stack email credits do not pay for WhatsApp, and WhatsApp access does not add email credits. For the current price in your currency, see [WhatsApp pricing](https://outboxstack.app/whatsapp#whatsapp-pricing).

When access ends, the box shows **Sending is paused**. Your templates and message history stay. Choose **Renew for one month** to send again.

## When something goes wrong

Find the words you see on screen in the first column.

| What you see | Why | What to do |
| --- | --- | --- |
| An organisation administrator manages WhatsApp setup and sending. | Your role in this workspace is not owner or admin. | Ask an owner to make you an admin, or to set up WhatsApp. |
| Meta sign-in was blocked. Allow Facebook’s sign-in service in your browser and try again. | Your browser or an extension blocked Meta's sign-in. | Allow Facebook's sign-in for Outbox Stack, or try another browser, then start again. |
| Meta’s popup could not open. Allow popups for Outbox, then continue again. | Your browser blocked the pop-up window. | Allow pop-ups for Outbox Stack and choose **Continue with Meta** again. |
| Meta signup was closed or access was not approved. Your current connection has not changed. You can try again. | The Meta window was closed, or access was declined. | Choose **Continue with Meta** and approve the access Meta asks for. |
| Messaging access was not granted; reconnect and allow WhatsApp messaging. | In the Meta window, the permission to send messages was turned off. | Connect again and leave WhatsApp messaging allowed. |
| Meta shared an account without a phone number. Add and verify a number in Meta, then check progress or restart signup. | Your WhatsApp Business account has no number yet. | Add and verify a number in Meta, then choose **Check progress** or **Restart signup**. |
| Verify this phone number in Meta before completing connection. | Meta has not verified the number yet. | Finish the number's verification in Meta, then connect again. |
| Meta could not register this number; check its six-digit two-step verification PIN and retry. | The PIN was wrong, or Meta refused the number. | Enter the number's correct six-digit PIN. This is not the text message code. |
| Too many attempts. Wait a minute, then try again. | Too many sign-up or PIN attempts in a short time. | Wait 15 minutes, then try again. |
| This number is connected to another Outbox workspace. | A number can belong to only one workspace. | Connect a different number, or contact support. |
| Account access needs attention | Outbox Stack could not check your number with Meta. Access may have expired or been removed in Meta. | On the **Connect** tab, choose **Reconnect with Meta**. |
| No approved template to send yet | No template has been approved. | Submit a template on the **Templates** tab and wait for the approval email. |
| Start your WhatsApp trial or renew this number’s monthly access in the WhatsApp dashboard; Meta charges apply separately. | The number has no trial or paid access right now. | Start the trial or buy a month in the **WhatsApp access** box. |
| The body cannot start with a variable. Add some text before it. | The template breaks one of the variable rules. | Follow the message under the body. Similar messages cover gaps in numbering and variables side by side. |
| Failed, with code 131042 | Meta blocked the send because of a billing problem on your WhatsApp Business account, such as no payment method. | Add or fix the payment method in Meta's WhatsApp Manager, check the **Ready to send** list on the **Connect** tab, then send again. |
| Failed, with a code | Meta did not deliver the message. For example, the values you filled in may not match the template's blanks. | Check the number and the values, then send again with a new message. |
| Outcome unconfirmed, check before resending | Outbox Stack could not confirm whether Meta took the message. | Wait for the status on **Activity** to update before you send again. |

## Send from your own code

A developer can send an approved template from code. Create an API key with full access on the **API keys & SMTP** page. Test keys and domain-restricted keys cannot use WhatsApp. The workspace needs a connected number and active access, and the template must be approved. There is an HTTP API only, with no SDK.

```
curl "$MAIL_BASE_URL/v1/whatsapp/messages" \
  -H "Authorization: Bearer $MAIL_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
    "to": "2348012345678",
    "templateName": "outbox_order_confirmation",
    "language": "en_US",
    "idempotencyKey": "order-1042-confirmation",
    "optInConfirmed": true,
    "parameters": ["Ada", "1042"]
  }'
```

| Field | What it is |
| --- | --- |
| `to` | The recipient's number with its country code, digits only. A leading + is accepted. |
| `templateName` | The name of an approved template, in lowercase letters, numbers and underscores. |
| `language` | The template's language code, such as `en_US`. |
| `idempotencyKey` | Required. 8 to 128 characters, unique for each message you mean to send. Build it from the event that caused the message. |
| `optInConfirmed` | Must be `true`. It states that the recipient agreed to receive WhatsApp messages. |
| `parameters` | The values for {{1}}, {{2}} and so on, in order. Optional for a template with no variables. At most 10, each 1 to 1,024 characters, with no new line, tab or five spaces in a row. |

| Response | What it means |
| --- | --- |
| 202 | Meta accepted the message. The body has `id`, `status` and `providerId`. Delivery follows on **Activity** or from `GET /v1/whatsapp/messages`. |
| 200 | A replay. This key was already used with the same details, so nothing was sent again. The body has the stored `id` and `status`. |
| 409 | This key was already used with different details. Use a new key for a different message. |
| 402 | The number has no trial or paid access. Start the trial or buy a month in the dashboard. |
| 422 | Meta refused the send, and it is recorded as failed. The error names the Meta code. Fix the cause, then send with a new key. Code 131042 is a billing problem on your WhatsApp Business account. |
| 400 | A field is missing or invalid. |
| 502 | The outcome is unknown. The message is recorded as unknown and is never retried for you. Check **Activity** before you send again. |

A retry with the same `idempotencyKey` and the same details never sends twice. `GET /v1/whatsapp/messages` returns your latest 100 messages, newest first, as `{ "messages": [...] }`. Each has `id`, `recipient`, `template_name`, `language`, `provider_id`, `status`, `error_code` and `created_at`.

## Still stuck

Not sure WhatsApp is right for you? Read [WhatsApp for businesses](https://outboxstack.app/whatsapp). To send email as well, start with [Choose your setup](https://outboxstack.app/docs/choose-setup) or [Send email from your app](https://outboxstack.app/docs/send-app-email). If something looks broken, check the [status page](https://outboxstack.app/status). For anything else, email [support@outboxstack.app](mailto:support@outboxstack.app).

Ready to connect?[Open WhatsApp](https://outboxstack.app/dashboard/whatsapp)

---
Source: https://outboxstack.app/docs/whatsapp-setup/
