WhaBuzzdocs
Webhook events

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:

FieldMeaning
requestThe body WhaBuzz sent to Meta
responseMeta's response body, verbatim
http_statusMeta's HTTP status
batch_idbat_… for batch items, else null
client_refThe 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:

FieldMeaning
phone_number_id, display_phone_number, waba_idThe number and its account.
stateunknown, ready, no_payment_method or restricted.
previousThe state before.
detailWhat set it, in Meta's words: (#131042) …, LOC_CHANGED ATTACH, LOC_CHANGED DETACH, billable message accepted, health_status BUSINESS BLOCKED: ….
sourceaccount_update, message_status, send_error or refresh.
source_event_idThe Meta event that caused it, or null for a send error or a reading.
checked_atWhen 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:

FieldMeaning
phone_number_idThe number.
state, previous_stateunknown, off, primary, partial, standby or none.
roles, previous_rolesThe roles WhaBuzz holds (customer_service, ctwa, marketing, utility), or null when unread.
is_standbyWhether WhaBuzz is the standby app.
inbound_routed_elsewhereTrue when customer messages go to another provider and will not reach WhaBuzz.
checked_atWhen 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.

EventWhenExtra data fields
wallet.creditedA top-up was paid.amount_paise, gst_paise, total_paise, top_up_id, invoice_number
wallet.debitedThe daily charge, once per day, only when above zero.amount_paise, day (IST date), numbers
wallet.lowRunway fell to 7 days or less. Once per crossing.runway_days, daily_burn_paise, threshold_days
wallet.exhaustedThe balance reached zero, then every day of the 7-day grace.grace_ends_at, grace_days_left
wallet.suspendedGrace ended; sends answer 402 wallet_suspended.grace_started_at
wallet.restoredThe balance is positive again.previous_state (grace or suspended)
json
{ "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:

FieldMeaning
eventMeta's account_update event, verbatim.
kindSee below.
severitycritical, warning or info.
detailOne line built from Meta's fields (restriction types, ban state and date, violation type, disconnection reason). Falls back to event.
phone_numberMeta's display number for single-number events, else null.
waba_idThe account.
source_event_idThe account.update event it came from.
Meta eventkindseverity
ACCOUNT_RESTRICTIONrestrictioncritical for a messaging restriction, else warning
ACCOUNT_VIOLATIONviolationwarning
DISABLED_UPDATEdisabled, scheduled_for_disable, reinstatedcritical, critical, info
ACCOUNT_DELETEDdeletedcritical
ACCOUNT_OFFBOARDEDoffboardedcritical
ACCOUNT_RECONNECTEDreconnectedinfo
PARTNER_REMOVEDpartner_removedcritical
PARTNER_APP_UNINSTALLEDapp_uninstalledcritical
PARTNER_ADDED, PARTNER_APP_INSTALLEDpartner_added, app_installedinfo
PARTNER_CLIENT_CERTIFICATION_STATUS_UPDATEverification_submissionwarning when FAILED or REVOKED, else info
LOC_CHANGEDpayment_method_attached, payment_method_detachedinfo, critical
BUSINESS_PRIMARY_LOCATION_COUNTRY_UPDATEcountry_updatedinfo
VOLUME_BASED_PRICING_TIER_UPDATEpricing_tierinfo
AUTH_INTL_PRICE_ELIGIBILITY_UPDATEauth_intl_pricinginfo
AD_ACCOUNT_LINKEDad_account_linkedinfo
MM_LITE_TERMS_SIGNEDmm_lite_terms_signedinfo
anything elseotherinfo

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:

FieldMeaning
phone_number_id, waba_idThe number and its account.
statuscompleted or declined.
progressLast progress Meta reported, 0 to 100, or null.
chunksHistory chunks received.
messagesMessages in those chunks, before de-duplication against messages already stored.
errorMeta'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:

FieldMeaning
session_idThe cs_… id from POST /v1/connect-sessions.
statecompleted, failed or expired.
resultThe 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_nameThe branding.product_name you set, or null.

Example, connect.completed:

json
{
  "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):

json
{
  "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.