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 are | Use |
|---|---|
| A business connecting your own number, in the console | Embedded Signup in the console (it calls the first endpoint below for you) |
| A developer who already has a WABA and a token | connect |
| A platform connecting your customers' numbers | hosted 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:
{ "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.
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.
#Hosted link for your customers
Platforms should not run Meta's popup in their own app. Create a session:
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:
- The WABA is subscribed to WhaBuzz's webhooks.
- The number is registered with Meta.
- The business token is not invalid.
- 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:
"billing": { "state": "no_payment_method", "detail": "LOC_CHANGED DETACH", "checked_at": "2026-10-22T06:26:36Z" }state | Means | Set by |
|---|---|---|
unknown | No proof either way. The default, and where most numbers sit. | |
ready | A payment method is attached. | Meta's LOC_CHANGED account update with ATTACH, or a message Meta charged (pricing.billable: true) |
no_payment_method | Paid 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 |
restricted | Meta'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}:
business_id: the Meta business portfolio id of the WABA. Numbers that share it sharemessaging_limit_tier, because Meta's limit is per portfolio; a limit update is written to every live number of that business.health:{ can_send_message, number_can_send_message, number_errors[], number_additional_info[], entities[] }from Meta'shealth_status.nulluntil a refresh has read it.is_official_business_account(boolean), andnew_display_name,new_name_status,last_onboarded_time(strings). The last three are not in Meta's documented field list and staynullunless Meta returns them.service_messages:{ month, count, free_tier, warning }. This month's service-category messages (monthis the UTC month start) against Meta's free tier of 1,000 per month per number from 2026-10-01.warningisnull,approaching(from 900),over(past 1,000) orblocked(over, with no payment method: Meta stops delivering).nullif unreadable.
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:
"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.
"routing": {
"state": "none",
"roles": [],
"is_standby": false,
"checked_at": "2026-10-22T06:30:00Z",
"inbound_routed_elsewhere": true
}state | Meaning |
|---|---|
unknown | Not read yet. |
off | Routing is not enabled for the number (Meta answers 100, "Conversation routing is not enabled for this phone number"). Every connected app receives inbound. |
primary | WhaBuzz holds all four roles. |
partial | WhaBuzz holds some roles. inbound_routed_elsewhere is true when customer_service is not among them. |
standby | WhaBuzz holds no roles and is the standby app: it receives copies as message.standby. |
none | WhaBuzz 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:
registerandderegisterrequest-codeandverify-code(SMS or voice)two-stepsets the six-digit PINsubscribere-subscribes the WABA if the state showswaba_not_subscribedbusiness-profileread and updatemigratemoves a number between WABAs you controlrefreshre-reads billing readiness, verification and the template count (read-only)
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.