Actions75
- Channel Actions
- Chat Actions
- Client Actions
- Contact Actions
- Group Chat Actions
- Message Actions
- Session Actions
Group Chat → Get Invite Code
AI-generatedSummary
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