Events WhaBuzz raises
message.outbound, batch.completed, number.connection, number.billing, number.verification, number.routing, wallet.* (six wallet events), account.alert, history.completed, connect.completed, connect.failed and token events. Origin WhaBuzz, raw is null.
These events come from WhaBuzz, not Meta. They use the same envelope with raw: null and raw_path: null.
#message.outbound
Emitted for every send you make, single or batch, accepted by Meta or refused. It records exactly what WhaBuzz sent and what Meta answered, so your log is complete even if your own process died between sending and storing the result. Its X-WhaBuzz-Event-Id was also returned on the send response.
data:
| Field | Meaning |
|---|---|
request | The body WhaBuzz sent to Meta |
response | Meta's response body, verbatim |
http_status | Meta's HTTP status |
batch_id | bat_… for batch items, else null |
client_ref | The batch client_ref, else null |
dedupe_key is out:{event_id}.
#batch.completed
A batch finished or was cancelled. Routed by the batch's number. The authoritative counts are on the batch resource: fetch GET /v1/messages/batch/{batch_id}, and the failures with failures with GET /v1/messages/batch/{batch_id}/items?status=failed.
#number.connection
A number's connection_state changed between pending, connected and disconnected. Read the current state and connection_detail (waba_not_subscribed, not_registered, token_invalid, tenant_inactive, partner_removed) with GET /v1/numbers/{phone_number_id}. Conditions are listed under connection state.
A number whose token is revoked, or whose WABA is unsubscribed, stops sending with 409 number_not_connected. Subscribe an endpoint to this event so you find out before your customers do.
partner_removed means the business disconnected WhaBuzz in the WhatsApp Business app (a coexistence number). The number is disconnected until the business connects it again.
#number.billing
A number's billing readiness changed. One event per number on the WABA, since the state is WABA-wide. Routed by the number.
data:
| Field | Meaning |
|---|---|
phone_number_id, display_phone_number, waba_id | The number and its account. |
state | unknown, ready, no_payment_method or restricted. |
previous | The state before. |
detail | What set it, in Meta's words: (#131042) …, LOC_CHANGED ATTACH, LOC_CHANGED DETACH, billable message accepted, health_status BUSINESS BLOCKED: …. |
source | account_update, message_status, send_error or refresh. |
source_event_id | The Meta event that caused it, or null for a send error or a reading. |
checked_at | When WhaBuzz recorded it. |
no_payment_method means paid messages fail with Meta error 131042. Add a payment method in WhatsApp Manager → Billing.
#number.verification
The WABA's business verification status changed between two readings (daily, at onboarding, or refresh). The first reading of a WABA is a baseline and emits nothing.
data: waba_id, business_verification_status (lowercased, as Meta reports it), previous, checked_at. Read the new template limit from the number.
#number.routing
A number's conversation routing changed: the state, the role set or the standby flag. The first reading of a number is reported too. Routed by the number.
data:
| Field | Meaning |
|---|---|
phone_number_id | The number. |
state, previous_state | unknown, off, primary, partial, standby or none. |
roles, previous_roles | The roles WhaBuzz holds (customer_service, ctwa, marketing, utility), or null when unread. |
is_standby | Whether WhaBuzz is the standby app. |
inbound_routed_elsewhere | True when customer messages go to another provider and will not reach WhaBuzz. |
checked_at | When WhaBuzz recorded it. |
Subscribe to this event: a number routed elsewhere looks healthy in every other signal. dedupe_key is routing:{number_id}:{checked_at}.
#wallet.*
Six events for the prepaid wallet. Origin WhaBuzz, tenant-level (no phone_number_id). All data carries balance_paise (ex-GST, can be negative in grace) and currency.
| Event | When | Extra data fields |
|---|---|---|
wallet.credited | A top-up was paid. | amount_paise, gst_paise, total_paise, top_up_id, invoice_number |
wallet.debited | The daily charge, once per day, only when above zero. | amount_paise, day (IST date), numbers |
wallet.low | Runway fell to 7 days or less. Once per crossing. | runway_days, daily_burn_paise, threshold_days |
wallet.exhausted | The balance reached zero, then every day of the 7-day grace. | grace_ends_at, grace_days_left |
wallet.suspended | Grace ended; sends answer 402 wallet_suspended. | grace_started_at |
wallet.restored | The balance is positive again. | previous_state (grace or suspended) |
{ "type": "wallet.exhausted", "data": { "balance_paise": -3000, "currency": "INR", "grace_ends_at": "2026-10-27T21:00:00.000Z", "grace_days_left": 5 } }#account.alert
A typed view of every Meta account_update, delivered next to the verbatim account.update. Use it to act on account problems without parsing Meta's shapes.
data:
| Field | Meaning |
|---|---|
event | Meta's account_update event, verbatim. |
kind | See below. |
severity | critical, warning or info. |
detail | One line built from Meta's fields (restriction types, ban state and date, violation type, disconnection reason). Falls back to event. |
phone_number | Meta's display number for single-number events, else null. |
waba_id | The account. |
source_event_id | The account.update event it came from. |
Meta event | kind | severity |
|---|---|---|
ACCOUNT_RESTRICTION | restriction | critical for a messaging restriction, else warning |
ACCOUNT_VIOLATION | violation | warning |
DISABLED_UPDATE | disabled, scheduled_for_disable, reinstated | critical, critical, info |
ACCOUNT_DELETED | deleted | critical |
ACCOUNT_OFFBOARDED | offboarded | critical |
ACCOUNT_RECONNECTED | reconnected | info |
PARTNER_REMOVED | partner_removed | critical |
PARTNER_APP_UNINSTALLED | app_uninstalled | critical |
PARTNER_ADDED, PARTNER_APP_INSTALLED | partner_added, app_installed | info |
PARTNER_CLIENT_CERTIFICATION_STATUS_UPDATE | verification_submission | warning when FAILED or REVOKED, else info |
LOC_CHANGED | payment_method_attached, payment_method_detached | info, critical |
BUSINESS_PRIMARY_LOCATION_COUNTRY_UPDATE | country_updated | info |
VOLUME_BASED_PRICING_TIER_UPDATE | pricing_tier | info |
AUTH_INTL_PRICE_ELIGIBILITY_UPDATE | auth_intl_pricing | info |
AD_ACCOUNT_LINKED | ad_account_linked | info |
MM_LITE_TERMS_SIGNED | mm_lite_terms_signed | info |
| anything else | other | info |
LOC_CHANGED is not in Meta's account_update reference. It was seen live with ATTACH; it also moves billing readiness.
#history.completed
Emitted once per coexistence number, when the one-time chat-history import ends: either Meta reported 100% progress, or the business declined to share history in the Business app. Later chunks that still arrive are stored and de-duplicated, but do not raise a second event.
data:
| Field | Meaning |
|---|---|
phone_number_id, waba_id | The number and its account. |
status | completed or declined. |
progress | Last progress Meta reported, 0 to 100, or null. |
chunks | History chunks received. |
messages | Messages in those chunks, before de-duplication against messages already stored. |
error | Meta's error object, verbatim, when status is declined (Meta code 2593109). Otherwise null. |
Read the imported messages with GET /v1/events?type=message.history once this event arrives. See Coexistence.
#connect.completed and connect.failed
Raised when a hosted connect session ends. connect.completed fires when the session reaches completed. connect.failed fires when it reaches failed, or expired after the customer opened the link. A session that expired unopened, or was cancelled, sends nothing. Each session sends at most one of these events. Subscribe an endpoint to both: the customer's browser may never make it back to your return_url.
The envelope's phone_number_id, display_phone_number and waba_id are filled when a number was connected and null otherwise.
data:
| Field | Meaning |
|---|---|
session_id | The cs_… id from POST /v1/connect-sessions. |
state | completed, failed or expired. |
result | The connected number (number_id, phone_e164, phone_number_id, waba_id, sibling_accounts, templates_imported, billing_state), or null when none connected. billing_state may be null. |
error | { "code", "message" } for failed and expired, otherwise null. |
product_name | The branding.product_name you set, or null. |
Example, connect.completed:
{
"session_id": "cs_01JAB3N2R5T8W1Y4A7C0E3G6J9",
"state": "completed",
"result": {
"number_id": "6f1c2d9e-3b4a-4c5d-8e7f-0a1b2c3d4e5f",
"phone_e164": "+919876543210",
"phone_number_id": "1013622581841046",
"waba_id": "26059971920328384",
"sibling_accounts": null,
"templates_imported": 4,
"billing_state": null
},
"error": null,
"product_name": "Acme CRM"
}Example, connect.failed (customer opened the link and never finished):
{
"session_id": "cs_01JAB3N2R5T8W1Y4A7C0E3G6K0",
"state": "expired",
"result": null,
"error": { "code": "session_expired", "message": "The customer did not finish connecting in time." },
"product_name": "Acme CRM"
}Verify the outcome with GET /v1/connect-sessions/{id}. See Onboard your customer's number.
#token.expiring and token.invalid
Once a day WhaBuzz checks each connected account's business token with Meta. token.expiring fires once per state change when the token is within 7 days of expiry; token.invalid fires once per state change when Meta no longer accepts it. Reconnect the number (see Numbers) before or after to restore sending. Each change of state also recomputes the number's connection state, so token.invalid is followed by a number.connection event with token_invalid.
This page as Markdown: /events/whabuzz-events.md. All docs in one file: /llms-full.txt. Status.