# WhatsApp Business sender discovery

A WhatsApp Business Account (WABA) can contain several business phone numbers.
The account establishes ownership and template scope; the registered phone
number is the sending identity. A QR-linked WhatsApp session is a different
connection and does not use the WABA's approved templates.

## Set up a connection

In your workspace, open **WhatsApp → Cloud API** and connect a business
number. Complete the phone registration and business requirements shown by
Meta. For a linked-device sender, connect the device from the WhatsApp Devices
page instead.

For manual setup, collect the **WABA ID** and the **phone number ID** from
Meta. They identify different resources. Use a system-user access token with
the assigned WhatsApp assets and `whatsapp_business_messaging` and
`whatsapp_business_management` permissions. Enter these in the dashboard’s
advanced connection form. If verification fails, check token expiry, asset
access, and the selected phone number.

See [Meta's Cloud API documentation](https://developers.facebook.com/docs/whatsapp/cloud-api/)
for business account setup. Do not send Meta credentials with Bonga message
requests.

## List senders

```bash
curl "$BONGA_API_BASE_URL/api/v2/senders?channel=whatsapp" \
  -H "Authorization: Bearer $BONGA_API_KEY"
```

Use a scoped key with `messages:read`. Match the sender’s `connection_id` to
`data.connections[].id`. A `cloud_whatsapp` connection is an official Cloud
connection; a `linked_whatsapp` connection is a linked session. Use the
discovered `snd_…` ID as `from`, and choose a content type listed by that sender.

## Submit and track in the preview

The [v2 reference](/docs) shows both free-form text and template examples.
For an official template, use the Bonga template reference approved for that
sender. A linked session does not inherit an official sender’s templates or
act as its fallback.

The preview does not deliver messages to Meta or linked devices. A `202`
records acceptance only; a refused or empty discovery response does not mean
your dashboard connection was disconnected. A sender with
`readiness_reason: "not_qualified"` is configured but cannot accept messages
through this API.
