For the exhaustive schema-derived catalog, see all examples.
What it is
Handle WhatsApp group participant and join-request updates.Before you begin
- Create a public HTTPS endpoint in your application.
- Configure a YCloud webhook endpoint for the event types you need.
- Store the endpoint signing secret securely.
- Make event processing idempotent.
How it works
YCloud sends an HTTPPOST request when the event occurs. Verify the signature, durably record the event, return a 2xx response, and process slow work asynchronously.
Request
The scenarios below show requests delivered to your webhook URL. Treat the eventid as the delivery identifier and use type to route the payload.
Response
Return a2xx status after accepting the event.
For endpoint setup, signature validation, and retry behavior, see Configure webhooks.
Participant Added
When a participant is added to a WhatsApp group, you will receive a webhook with the following payload structure:Request
Response
Acknowledge the delivery after durably accepting the event.Explanation
Route the event bytype, deduplicate it by id, and move slow or failure-prone work to an asynchronous processor.
Join Request Created
When a user requests to join a WhatsApp group that requires approval, you will receive a webhook with the following payload structure:Request
Response
Acknowledge the delivery after durably accepting the event.Explanation
Route the event bytype, deduplicate it by id, and move slow or failure-prone work to an asynchronous processor.
Participant Removal Failed
When removing one or more participants fails or partially succeeds, you will receive a webhook with the following payload structure:Request
Response
Acknowledge the delivery after durably accepting the event.Explanation
- type: Always
whatsapp.group.participants_updatefor group participant and join request events - whatsappGroup: Contains the group participant or join request update details
- field: Always
group_participants_update - type: The participant event type, such as
group_participants_add,group_participants_remove,group_join_request_created, orgroup_join_request_revoked - status: The normalized event status, such as
added,removed,left,requested,revoked, orfailed - groupId: The WhatsApp group ID
- reason: The reason for the participant or join request event
- joinRequestId: The join request ID, included for join request events
- initiatedBy: Indicates who initiated a removal event, such as
businessorparticipant - recipientUserId and parentRecipientUserId: Business-scoped user IDs for the affected participant
- addedParticipants, removedParticipants, and failedParticipants: Participant-level details for batch or partial-result updates
- field: Always

