# Connecting a client

Your client connects their own WhatsApp number or Instagram account. They never sign in to Airbox: they open a link, accept the terms and log in to Meta.

## Make the link

On the client workspace's **Channels** page, under **Link for the client**, press **Create a link** and send it to the client in any messenger or by email. A link works once and for 7 days. One link is open at a time, and **Create a new one** replaces it.

## What the client does

1. Opens the link. The page names the workspace and who sent the link.
2. Accepts the terms of use and data processing.
3. Presses **Connect WhatsApp** and logs in to Facebook or Meta Business Suite, with access to the company's business account.
4. In Meta's window, picks the number from the WhatsApp Business app or adds a new one. Meta confirms a new number with a code by SMS or a call.

Meta's window is Meta's own, opened by Airbox as a verified Meta Tech Provider. The client's password stays with Meta.

For Instagram, the same page has **Connect Instagram**. It needs a professional account in a Meta business portfolio.

## The number can stay on the phone

A number taken from the WhatsApp Business app keeps working there, so your client's staff can still write from the phone. Those messages reach you with `sent_by: phone`, and `whatsapp.shared_with_phone_app` in `GET /v1/channels` is `true`. Such a number sends up to 20 messages a second instead of 80.

## Know when it is ready

A new channel is `pending` while Meta finishes, then `connected`. Each change comes to your webhook as a `channel.updated` event, and `GET /v1/channels` shows the state at any time. Billing for the connection starts the day it is added.

## Before the first message

- Meta charges for WhatsApp messages itself, so the client adds a card to their WhatsApp account at Meta. Without one, sends fail with `meta_payment` and `alerts` in `GET /v1/channels` shows `payment`.
- To write first, the client needs templates Meta approved, and each customer's consent recorded. See [Send a template](https://airbox.kz/docs/api/send-template.md).

## When a client leaves

A client cuts the connection by removing our app in Meta's settings. The channel turns `disconnected` and a `channel.updated` event arrives. Disconnect the number on the **Channels** page to stop its billing.