---
title: "Integrate WhatsApp multi-partner solutions"
description: "Embed Meta's signup flow, connect customer WhatsApp numbers to workspaces with the Bird SDK, share pre-verified numbers, and troubleshoot errors."
canonical: "https://bird.com/docs/guides/whatsapp/multi-partner-solutions/integration"
availability: "on-request"
---

# Integrate WhatsApp multi-partner solutions

After Bird approves your partner solution, embed Meta's signup flow in your product and connect each customer's WhatsApp number to a dedicated Bird workspace. Workspaces in your organization also pass your active solution ID when onboarding through Bird. If a transient lookup error prevents Bird from loading the solution ID, dashboard signup still opens without it. Verify your Meta app received access before relying on a Bird-hosted signup.

If you have not created and submitted your partner solution yet, complete [WhatsApp multi-partner solutions](/docs/guides/whatsapp/multi-partner-solutions) first.

## Prerequisites

Before integrating customer onboarding:

- An **Active** partner solution and its **Meta solution ID** from the **Partner solutions** table in the Bird dashboard.
- An [organization master key](/docs/guides/master-keys) (`bm_…`) for backend API calls.

## Connect a customer number with the SDK

Onboard each customer through your app and connect their number to a workspace in your organization. Bird connects each WhatsApp Business Account to one workspace at a time. Reuse that workspace when adding another number on the same account.

1. Provision a workspace for the customer if they do not have a workspace yet. See [Create a workspace](/docs/guides/create-workspace).
2. Launch Meta's Embedded Signup inside your app with `extras.setup.solutionID` set to your active **Meta solution ID**.
3. Extract the scalar WABA digit string and `phone_number_id` from Embedded Signup's session info. Default v4 flows return `waba_id` directly. If you configure Embedded Signup v5 (`extras.version: "v5"` alongside `extras.setup.solutionID`), extract the single account ID string containing the selected phone number from the `messaging_account_ids` array.
4. Verify in your backend that the WhatsApp Business Account belongs to the customer who signed up. Bird checks that the account came through your solution and contains the phone number. Checking which end customer owns that account is your backend's responsibility.
5. Call [`POST /v1/organization/workspaces/{workspace_id}/whatsapp/numbers`](/docs/api/reference/create-organization-workspace-whatsapp-number) with your organization master key (`bm_…`).

This SDK operation is specific to multi-workspace ISV organizations with an active multi-partner solution. Workspace API keys (`bk_…`) receive `403`. Use the Bird SDKs or HTTP API for this step (CLI and MCP do not expose it).

In HTTP requests, replace `{region}` with `us1` for a `bm_us1_` master key or `eu1` for a `bm_eu1_` key (the Bird SDKs select the regional host automatically from the key). Pass a persisted [idempotency key](/docs/guides/idempotency) per logical connect attempt via `{ idempotencyKey }` (TypeScript), `options={"idempotency_key": ...}` (Python), `option.WithIdempotencyKey(...)` (Go), `new RequestOptions(idempotencyKey: ...)` (PHP), or the `Idempotency-Key` header over HTTP. Reuse that same key with the identical request if a crash or timeout leaves the outcome unknown within the 3-hour retention window. Auto-generated SDK keys cover retries inside a single call only. A fresh SDK call without the persisted key after the number connects restarts setup. Generate a new key for a new attempt after a known `4xx` rejection or when deliberately reconnecting after disconnecting a confirmed `failed` setup.

If your customer requires regional message storage, pass a supported two-letter ISO 3166 country code from the [API reference](/docs/api/reference/create-organization-workspace-whatsapp-number) in `data_localization_region`. You cannot change this setting after the number connects. Local storage is unavailable for numbers shared with the WhatsApp Business app (coexistence). Omit `data_localization_region` when deliberately reconnecting a number that is already registered on Cloud API. If you omit `name`, Bird uses the phone number as the workspace label.

<!-- prettier-ignore-start -->

**TypeScript**

```typescript
const number = await bird.organization.workspaces.whatsappNumbers.create("ws_01krdgeqcxet5s7t44vh8rt9mg", {
  waba: "102290129340398",
  meta_phone_number_id: "109364591979012",
  name: "Northwind Support",
});
console.log(number.id, number.status);
```

Examples: [TypeScript](/docs/guides/whatsapp/multi-partner-solutions/integration.ts.md) · [Python](/docs/guides/whatsapp/multi-partner-solutions/integration.py.md) · [Go](/docs/guides/whatsapp/multi-partner-solutions/integration.go.md) · [PHP](/docs/guides/whatsapp/multi-partner-solutions/integration.php.md) · [cURL](/docs/guides/whatsapp/multi-partner-solutions/integration.curl.md)

<!-- prettier-ignore-end -->

The API returns `202 Accepted` with the `WhatsAppNumber` record while Bird finishes setup in the background.

## Confirm setup is complete

Poll [`GET /v1/whatsapp/numbers/{number_id}`](/docs/api/reference/get-whatsapp-number) with bounded retries and backoff using the returned `id`. Because an organization master key is not bound to one workspace, send `X-Workspace-Id` set to the customer's workspace ID (see [Make a workspace request](/docs/guides/master-keys#make-a-workspace-request)).

Inspect `next` when present (`operation`, `external`, `wait`, `terminal`) and handle each `status` outcome:

- **`connected`**: Setup succeeded and the workspace can send and receive WhatsApp messages from this number. For an existing WhatsApp Business Account, `connected` does not independently rule out another funding source if Meta's funding check was inconclusive. Check the account's credit line in Meta Business Manager if paid template sends are refused. After an initial registration that applied `data_localization_region`, read the returned `data_localization_region` value to verify the effective storage country because WhatsApp can enforce a required region that differs from what you requested. Do not treat readback as proof of the effective storage country after reconnecting an already-registered number because Bird skips Meta's storage call while keeping any region sent in the reconnect request.
- **`failed`**: Setup stopped. Read `error.code`, `error.description`, and `next`. Surface the workspace ID, number ID, and error to an operator. Repair and delete operations listed in `next` (`repairWhatsAppNumber`, `deleteWhatsAppNumber`) are available through the dashboard, CLI, and MCP instead of the public SDKs. For `billing_close`, wait until Meta's monthly billing close ends and have an operator select **Try again** on the number in the workspace dashboard (or run the CLI repair) instead of calling connect again.
- **Other provider states (`pending`, `restricted`, `flagged`, `banned`, `disconnected`)**: `pending` can remain briefly after setup while waiting for a fresh Meta snapshot. Meta can also report a state such as `restricted` after setup finishes. Surface non-connected provider states to your operator instead of polling indefinitely.

Calling the connect operation again for a number already connected in that workspace without a matching `Idempotency-Key` restarts setup. The number cannot send while reconnection runs.

## Share pre-verified numbers

After your solution is **Active**, you can pre-verify a Bird-supplied number so the customer skips SMS verification during your Embedded Signup:

1. Prepare a Bird-supplied number in the customer's workspace from the dashboard or CLI and stop once its status reaches **Pre-verified**. Do not select **Finish setting up**, which opens Bird's signup flow instead of yours.
2. Read `meta_preverified_id` from [List WhatsApp numbers](/docs/api/reference/list-whatsapp-numbers) or [Get a WhatsApp number](/docs/api/reference/get-whatsapp-number).
3. Pass `meta_preverified_id` in `extras.setup.preVerifiedPhone.ids` when launching Meta's Embedded Signup in your product.

Bird shares pre-verified numbers with the Meta business portfolio ID stored on your active solution asynchronously after pre-verification completes. Numbers prepared before Bird approves your solution are not shared automatically.

If a pre-verified number is missing from Meta's picker, wait briefly and reopen Embedded Signup before escalating. Exhausted share retries leave `meta_preverified_id` set without confirming Meta applied the share. When Bird loads your active solution during dashboard signup, Bird passes your solution ID and pre-verified number together.

## Integration rules

Follow these rules in your Meta integration to avoid breaking Bird's delivery pipeline:

- **Do not call Meta's `/register` endpoint.** Bird registers the phone number during background setup.
- **Do not set a phone-level webhook override at Meta.** Bird subscribes the WhatsApp Business Account to receive delivery updates and inbound messages. A phone-level override diverts inbound traffic away from Bird.
- **Plan for Meta's client onboarding cap.** Verified Tech Providers can onboard up to 200 new WhatsApp accounts per rolling 7-day window. Raising that cap requires Meta Business Partner status.

## Troubleshoot setup

| Symptom or error                                      | What to check                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ----------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **WhatsApp** is missing from the organization sidebar | Confirm you have an organization owner or admin role and Bird has enabled multi-partner solutions and multi-workspace support for your organization.                                                                                                                                                                                                                                                                                                                                                                                                |
| Meta rejects partnering your app with Bird            | Confirm the selected Meta app belongs to a business registered as a Meta Tech Provider or Tech Partner.                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `403`, [`E15107`](/docs/api/errors/E15107)            | Use an organization master key (`bm_…`) for an organization enabled for multi-partner solutions. Workspace API keys cannot call this endpoint.                                                                                                                                                                                                                                                                                                                                                                                                      |
| `409`, [`E15108`](/docs/api/errors/E15108)            | Your organization does not have an **Active** partner solution yet. Submit a partner solution in the dashboard or wait for Bird support to approve a pending request.                                                                                                                                                                                                                                                                                                                                                                               |
| `409`, [`E15041`](/docs/api/errors/E15041)            | Another workspace already uses this phone number. Disconnect the number in that workspace before connecting it here.                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `409`, [`E15116`](/docs/api/errors/E15116)            | Another workspace owns this WhatsApp Business Account. To add another number to the same account, connect it in the owning workspace. To move the account, disconnect all of its numbers in the existing Bird workspace first without disconnecting Bird B.V. in the WhatsApp Business app.                                                                                                                                                                                                                                                         |
| `404`                                                 | Confirm `workspace_id` exists and belongs to the master key's organization.                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `422`                                                 | Confirm Embedded Signup ran with your active solution ID, the customer shared the WABA with Bird, `waba` is a scalar digit string, `meta_phone_number_id` belongs to `waba`, and any `data_localization_region` is supported.                                                                                                                                                                                                                                                                                                                       |
| `failed` (`payment_method_conflict`)                  | Meta does not allow changing a credit line once attached to a WABA. Disconnect the failed number in the workspace dashboard or CLI, have the customer re-run your Embedded Signup with a new unfunded WABA (see [standard troubleshooting](/docs/guides/whatsapp/numbers/troubleshooting#the-number-fails-because-its-account-already-has-a-payment-method) or [coexistence troubleshooting](/docs/guides/whatsapp/coexistence/troubleshooting#the-number-fails-because-its-account-already-has-a-payment-method)), and call the connect API again. |
| `failed` (`credit_currency_mismatch`)                 | Disconnect the failed number in the workspace dashboard or CLI. Follow the accepted currencies in `error.description` (`USD`, `EUR`, or your organization's wallet currency when supported) to update the WABA in Meta Business Suite, or onboard with a new unfunded WABA if Meta rejects the currency change (see [coexistence troubleshooting](/docs/guides/whatsapp/coexistence/troubleshooting#the-number-fails-with-a-currency-mismatch)), then re-run your Embedded Signup and connect API.                                                  |

## Next steps

- [Partner number setup API](/docs/api/reference/create-organization-workspace-whatsapp-number): review the full request and response fields.
- [Create a workspace](/docs/guides/create-workspace): provision a dedicated workspace for each customer.
- [Organization master keys](/docs/guides/master-keys): authenticate organization requests and select a target workspace.
- [WhatsApp numbers](/docs/guides/whatsapp/numbers/overview): inspect connected number statuses, quality ratings, and business profiles.

## Related resources

- [Connecting WhatsApp to Bird: from buying a number to a live channel](/learn/whatsapp/connecting-whatsapp-to-bird) (video)
- [What is the 24-hour customer service window on WhatsApp?](/explained/whatsapp/what-is-the-24-hour-customer-service-window) (answer)
- [WhatsApp message builder](/tools/whatsapp-message-builder) (tool)
- [WhatsApp](/whatsapp-api) (product)

[Get an implementation brief](/learn/workspace?topic=whatsapp)
