Baileys Instance icon

Baileys Instance

Use the wa-instance API built on Baileys 7

Consent → Revoke

AI-generated

Summary

Revoke consent for a specific WhatsApp JID, optionally providing a reason for revocation.

Inputs

  • JID (required) — The WhatsApp JID (Jabber ID) for which to revoke consent.
  • Additional Options — Optional metadata for consent revocation including reason, source, and timezone.

Output shape

a single record indicating the result of the revoke operation

Returns the backend API response to the consent revocation request, typically including confirmation or error details.

Examples

Example 1: Revoke a user's consent due to a compliance request

Set the 'JID' to the user's WhatsApp ID and optionally provide a 'Reason' in Additional Options to document why the consent is revoked.

Links

Discussion