Baileys Instance icon

Baileys Instance

Use the wa-instance API built on Baileys 7

Privacy → Update Block Status

AI-generated

Summary

Blocks or unblocks a WhatsApp JID by sending the selected action to the wa-instance API.

Inputs

  • JID (required) — JID to block or unblock.
  • Action (required) — Choose Block (default) or Unblock.

Output shape

A single item containing the API response as JSON.

Makes a POST request to /privacy/blocks with the JID and action. Requires the Baileys Instance API credentials.

Examples

Example 1: Block a contact

Set JID to the contact's JID and Action to Block.

Example 2: Unblock a contact

Set JID to the contact's JID and Action to Unblock.

Links

Discussion