Baileys Instance icon

Baileys Instance

Use the wa-instance API built on Baileys 7

Group → Get Invite Code

AI-generated

Summary

Retrieve the current invite code for a specified WhatsApp group using its Group JID.

Inputs

  • Group JID (required) — The unique identifier of the WhatsApp group for which to get the invite code.

Output shape

a single record containing the invite code details for the group

Requires specifying the Group JID. Returns JSON with the invite code and associated metadata.

Examples

Example 1: Get the invite code for a group

Set resource to 'Group', operation to 'Get Invite Code', and provide the 'Group JID' parameter with the group's ID.

Links

Discussion