Skip to main content
Use whatsapp.business_account.deleted to handle this event at your webhook endpoint.

Triggers

Occurs when a WhatsApp Business Account is deleted. Subscribe to whatsapp.business_account.deleted when you configure your webhook endpoint. Use whatsappBusinessAccount.id to identify the removed account. The removal fields are optional. Preserve unknown removedReason and removedInitiatedBy values. removedTime records when the deletion event was received, not the exact deletion time.

Syntax

YCloud sends an HTTP POST request to your configured webhook URL. The following shape shows one payload variant. Angle-bracket values are placeholders; their types are listed under Parameters. Optional fields and other variants are described below.

Parameters

Validate the YCloud-Signature HTTP header before you process the JSON body. See signature validation.

Event envelope

Event payload

The four common envelope fields are required. Payload fields depend on the event variant. In each object table, Required applies when its parent object is present. Optional fields can be omitted; a sample does not make a field required.

whatsappBusinessAccount

Example

The following JSON is the body delivered to your receiver. IDs, phone numbers, and other account values are illustrative. Read whatsappBusinessAccount.id to identify the account. When present, removedReason, removedInitiatedBy, and removedTime describe the removal. Preserve unknown reason and initiator values.
After verifying the signature and durably accepting the event, return a 2xx response. Process slow work asynchronously.
For scenario walkthroughs, see annotated examples.