Baileys Instance icon

Baileys Instance

Use the wa-instance API built on Baileys 7

Group → Revoke Invite Code

AI-generated

Summary

Revoke the current invite code of a WhatsApp group to invalidate it, preventing further use for joining the group.

Inputs

  • Group JID (required) — The WhatsApp Group JID (Jabber ID) identifying the group whose invite code you want to revoke.

Output shape

a single record containing the backend response to the invite code revocation request

This operation performs an HTTP POST request to revoke the invite code for the specified group JID. The output is the backend's JSON response confirming the revocation or detailing errors.

Examples

Example 1: Revoke the current invite code for group 12345-67890@g.us

Set the resource to 'Group', the operation to 'Revoke Invite Code', and provide the 'Group JID' input with value '12345-67890@g.us'.

Links

Discussion