Bailey (WhatsApp) icon

Bailey (WhatsApp)

Interact with WhatsApp via Baileys WebSocket API

Actions122

Group → Set Join Approval Mode

AI-generated

Summary

Set the group’s join approval mode in WhatsApp. Provide the group JID and choose whether admins must approve join requests or new members are auto-approved; the operation calls the group join approval API and returns a success record.

Inputs

  • Group JID (required) — JID of the group to update, for example 123456789@g.us.
  • Join Approval Mode — Choose On (Admin Must Approve) to require admin approval for join requests, or Off (Auto-Approve) to allow automatic approval. Defaults to Off.

Output shape

A single record

On success, the JSON contains success: true, the group jid, and the selected mode.

Examples

Example 1: Auto-approve new joins

Set Join Approval Mode to Off (Auto-Approve).

Links

Discussion