WhaBuzzdocs
Guides

Numbers and Embedded Signup

Connect WhatsApp numbers with Embedded Signup, an existing WABA token, or a hosted link; connection states, billing readiness, verification and template limits.

A number is a WhatsApp Business phone number registered on a WhatsApp Business Account (WABA). Its id is the Meta phone_number_id, which you pass as from when sending. The resource is read with GET /v1/numbers and GET /v1/numbers/{phone_number_id}.

There are three ways to connect one. All end in the same state.

You areUse
A business connecting your own number, in the consoleEmbedded Signup in the console (it calls the first endpoint below for you)
A developer who already has a WABA and a tokenconnect
A platform connecting your customers' numbershosted connect session

#Embedded Signup

Meta's Embedded Signup is a popup run in a browser. The person logs in with Facebook, picks or creates a WABA, adds a number, and verifies it by SMS or voice. When it closes, the page receives a one-time code and the ids of the WABA and phone number.

If Meta refuses to register the number because it still needs verifying (error 133006, common for a number that moved between WABAs), the console does not start over. It asks you to verify the number: send a code by SMS or voice call, type the 6-digit code, and the connection finishes with the same signup, no second popup. Meta's own error text is shown if a code is wrong. The step stays open for 24 hours, with up to 5 code requests (one per minute) and 10 attempts.

Does the number already run on the WhatsApp Business app, and should it keep doing so? Use the coexistence flow instead; the console offers it as a separate choice.

Send those to POST /v1/numbers/embedded-signup:

json
{ "code": "AQD…", "waba_id": "26059971920328384", "phone_number_id": "1013622581841046" }

WhaBuzz exchanges the code for a business token, checks it (the token must belong to our Meta app, carry whatsapp_business_management and whatsapp_business_messaging, and cover this WABA), stores the token encrypted, subscribes the WABA to our webhooks, and registers the number. The token never reaches your server.

#Connect an existing WABA

POST /v1/numbers/connect takes the waba_id and either a system-user access_token, or an Embedded Signup code. WhaBuzz runs the same token checks, then connects the numbers on that WABA.

bash
curl -X POST https://api.whabuzz.com/v1/numbers/connect \
  -H "Authorization: Bearer $WHABUZZ_KEY" -H "Content-Type: application/json" \
  -d '{"access_token":"EAAG…","waba_id":"26059971920328384"}'

A token rejected by those checks answers 422 invalid_request with the failing check in details.

Platforms should not run Meta's popup in their own app. Create a session:

bash
curl -X POST https://api.whabuzz.com/v1/connect-sessions \
  -H "Authorization: Bearer $WHABUZZ_ACCOUNT_KEY" -H "X-WhaBuzz-Tenant: $TENANT_ID" \
  -H "Content-Type: application/json" \
  -d '{"return_url":"https://yourapp.example/whatsapp/done"}'

The response carries url (https://app.whabuzz.com/connect/s/<token>), a one-time link that must be opened within 15 minutes. Send your customer there. When they finish, they are redirected to return_url?session_id=…&state=…&result_token=…; verify that on your server, and subscribe to connect.completed and connect.failed. The full flow, including an embedded modal, is in Onboard your customer's number. You can also read GET /v1/connect-sessions/{session_id} or wait for the number.connection event (WhaBuzz events).

#Connection state

A number is connected only when all of these hold:

  1. The WABA is subscribed to WhaBuzz's webhooks.
  2. The number is registered with Meta.
  3. The business token is not invalid.
  4. The tenant is active.

A webhook endpoint is not one of the conditions. Without one the number still sends, and its events are stored and visible in Logs; add an endpoint to receive them at your own URL (Webhooks).

Otherwise the state is pending (never completed) or disconnected, and connection_detail says why: waba_not_subscribed, not_registered, token_invalid, tenant_inactive or partner_removed (the business disconnected WhaBuzz in the WhatsApp Business app; see Coexistence). Sending from a number that is not connected answers 409 number_not_connected with that detail. Fix the detail, and the state recovers by itself; each change emits a number.connection event.

#Billing readiness

Meta bills paid messages to the WhatsApp Business Account's payment method. A number can be connected and still unable to send paid messages because none is attached. Every number object carries billing:

json
"billing": { "state": "no_payment_method", "detail": "LOC_CHANGED DETACH", "checked_at": "2026-10-22T06:26:36Z" }
stateMeansSet by
unknownNo proof either way. The default, and where most numbers sit.
readyA payment method is attached.Meta's LOC_CHANGED account update with ATTACH, or a message Meta charged (pricing.billable: true)
no_payment_methodPaid messages fail with Meta error 131042. Add one in WhatsApp Manager → Billing.A send or a failed status with 131042, or LOC_CHANGED with DETACH
restrictedMeta's health_status reports the WABA or business BLOCKED.A readiness reading

The state is WABA-wide: every number on the WABA moves together. detail keeps Meta's own words for what set it. A charged message lifts no_payment_method but never restricted; only a reading that no longer shows BLOCKED does.

WhaBuzz reads it at onboarding, once a day, and when you call POST /v1/numbers/{phone_number_id}/refresh. A read Meta refuses keeps the stored value; it never marks a number worse. Each change emits number.billing, and the console shows a banner on the Numbers page.

LOC_CHANGED is not in Meta's account_update reference yet. WhaBuzz saw ATTACH on a live account on 2026-10-22; DETACH is handled the same way but has not been seen.

#Number fields from Meta

All additive and nullable on GET /v1/numbers and GET /v1/numbers/{phone_number_id}:

Number health alerts (GET /v1/numbers/health and the per-number health endpoint) have a new kind, number_health: severity red when the number itself is BLOCKED (detail is Meta's errors[]), amber when LIMITED (detail is additional_info[]).

A hosted connect session's result also carries business_id and messaging_limit_tier (TIER_*), both nullable.

#Verification and template limit

business_verification_status is Meta's business verification state for the WABA, lowercased (verified, pending, not_verified and so on), or null before the first reading. template_limit is how many templates the WABA may hold:

json
"business_verification_status": "verified",
"template_limit": { "limit": 6000, "used": 12 }

limit is 6,000 once the business is verified and a number on the WABA has an approved display name, and 250 otherwise. used is Meta's template count at the last reading. GET /v1/templates returns the same per WABA as template_limits. A change in verification emits number.verification; the first reading sets a baseline and emits nothing.

#Conversation routing

Meta's Conversation Routing lets a business split one number's traffic between several apps by role (customer_service, ctwa, marketing, utility). When another provider holds the Service entry point, customer messages go to that provider and never reach WhaBuzz: sends still work, inbound is silent. Each number carries a routing object so you can see this without opening Meta.

json
"routing": {
  "state": "none",
  "roles": [],
  "is_standby": false,
  "checked_at": "2026-10-22T06:30:00Z",
  "inbound_routed_elsewhere": true
}
stateMeaning
unknownNot read yet.
offRouting is not enabled for the number (Meta answers 100, "Conversation routing is not enabled for this phone number"). Every connected app receives inbound.
primaryWhaBuzz holds all four roles.
partialWhaBuzz holds some roles. inbound_routed_elsewhere is true when customer_service is not among them.
standbyWhaBuzz holds no roles and is the standby app: it receives copies as message.standby.
noneWhaBuzz holds no roles and is not on standby.

roles and is_standby are Meta's reading, verbatim; both are null until the first reading. inbound_routed_elsewhere is true for none, standby and a partial set without customer_service. To fix it, assign the Service entry point to WhaBuzz in Meta Business Suite, WhatsApp account, Conversation routing. WhaBuzz changes nothing on Meta's side on its own.

WhaBuzz reads routing at onboarding and when you call POST /v1/numbers/{phone_number_id}/refresh. It is not part of the daily check. A read Meta refuses keeps the stored state. A change of state, of the role set or of is_standby raises number.routing; the first reading is also reported. The console shows the same row in the number drawer.

Thread control. POST /v1/numbers/{phone_number_id}/thread-control passes, releases or takes control of one conversation. It forwards to Meta and returns Meta's answer and errors unchanged (for example 131070 when you do not own the thread). Body: action (pass, release, take), exactly one of wa_id or recipient (a BSUID), target_role (pass only) and metadata (up to 2,000 characters). Meta then raises messaging_handovers, delivered as thread.handover.

Meta references: routing roles, entry points and routing, standby partners, thread control.

#Account alerts

Every Meta account_update webhook is delivered as account.update (Meta's object, verbatim) and also as a typed account.alert with kind, severity and a one-line detail. Subscribe to account.alert if you want to act on restrictions, bans and partner removals without parsing Meta's shapes.

#Shared-number sends

Meta's account model now names, on each send, the Messaging account the message is billed to. WhaBuzz adds messaging_account_id (the sending number's WABA id) to every /messages body it forwards. A messaging_account_id you send yourself, or the older paid_messaging_account_id, is forwarded unchanged. Nothing changes for you unless you share a number across Messaging accounts.

#Maintenance calls

These pass through to Meta with the number's stored token:

Because they are Meta calls, their errors come back as "source":"meta".

This page as Markdown: /guides/numbers.md. All docs in one file: /llms-full.txt. Status.