Integrate WhatsApp multi-partner solutions
Available on requestContact your Bird representative to enable it for your organization.
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 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 (
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.
- Provision a workspace for the customer if they do not have a workspace yet. See Create a workspace.
- Launch Meta's Embedded Signup inside your app with
extras.setup.solutionIDset to your active Meta solution ID. - Extract the scalar WABA digit string and
phone_number_idfrom Embedded Signup's session info. Default v4 flows returnwaba_iddirectly. If you configure Embedded Signup v5 (extras.version: "v5"alongsideextras.setup.solutionID), extract the single account ID string containing the selected phone number from themessaging_account_idsarray. - 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.
- Call
POST /v1/organization/workspaces/{workspace_id}/whatsapp/numberswith 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 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 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.
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);number = client.organization.workspaces.whatsapp_numbers.create(
"ws_01krdgeqcxet5s7t44vh8rt9mg",
waba="102290129340398",
meta_phone_number_id="109364591979012",
name="Northwind Support",
)
print(number.id, number.status)number, err := client.Organization.Workspaces.WhatsappNumbers.Create(context.Background(), "ws_01krdgeqcxet5s7t44vh8rt9mg", bird.OrganizationWorkspacesWhatsappNumbersCreateParams{
Waba: "102290129340398",
MetaPhoneNumberID: "109364591979012",
Name: bird.Ptr("Northwind Support"),
})
if err != nil {
log.Fatal(err)
}
fmt.Println(number.Id, number.Status)$number = $bird->organization->workspaces->whatsappNumbers->create('ws_01krdgeqcxet5s7t44vh8rt9mg', (new OrganizationWorkspaceWhatsAppNumberCreate())->setWaba('102290129340398')->setMetaPhoneNumberId('109364591979012')->setName('Northwind Support'));
echo $number->getId(), ' ', $number->getStatus(), PHP_EOL;curl -X POST "https://{region}.platform.bird.com/v1/organization/workspaces/{workspace_id}/whatsapp/numbers" \
-H "Authorization: Bearer $BIRD_MASTER_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: connect-whatsapp/YOUR_ONBOARDING_ID" \
-d '{
"waba": "102290129340398",
"meta_phone_number_id": "109364591979012",
"name": "Northwind Support"
}'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} 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).
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,connecteddoes 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 applieddata_localization_region, read the returneddata_localization_regionvalue 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. Readerror.code,error.description, andnext. Surface the workspace ID, number ID, and error to an operator. Repair and delete operations listed innext(repairWhatsAppNumber,deleteWhatsAppNumber) are available through the dashboard, CLI, and MCP instead of the public SDKs. Forbilling_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):pendingcan remain briefly after setup while waiting for a fresh Meta snapshot. Meta can also report a state such asrestrictedafter 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:
- 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.
- Read
meta_preverified_idfrom List WhatsApp numbers or Get a WhatsApp number. - Pass
meta_preverified_idinextras.setup.preVerifiedPhone.idswhen 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
/registerendpoint. 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 | Use an organization master key (bm_…) for an organization enabled for multi-partner solutions. Workspace API keys cannot call this endpoint. |
409, 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 | Another workspace already uses this phone number. Disconnect the number in that workspace before connecting it here. |
409, 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 or coexistence troubleshooting), 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), then re-run your Embedded Signup and connect API. |
Next steps
- Partner number setup API: review the full request and response fields.
- Create a workspace: provision a dedicated workspace for each customer.
- Organization master keys: authenticate organization requests and select a target workspace.
- WhatsApp numbers: inspect connected number statuses, quality ratings, and business profiles.
Recursos relacionados
Continue com a documentação, guias e exemplos sobre este tópico.