WhatsApp Web API (WWebJS) icon

WhatsApp Web API (WWebJS)

Interact with WhatsApp Web API via WWebJS — send messages, manage sessions, chats, groups, contacts and channels

Group Chat → Get Invite Code

AI-generated

Summary

Obtain the invite code for a specified group chat.

Inputs

  • sessionId (required) — Session identifier. Select from the list or use an expression. Falls back to credentials default if empty.
  • chatId (required) — Unique WhatsApp identifier for the group chat (e.g., 120363XXXXXXXXX@g.us).

Output shape

object with success flag and result.inviteCode (string)

inviteCode may be null if the group has no invite; errors are returned as per standard WWebJS error envelope.

Examples

Example 1: Fetch invite code for a group chat

resource=groupChat, operation=Get Invite Code, sessionId=selectedSession, chatId=1203631234567890@g.us

Links

Discussion