Bailey (WhatsApp) icon

Bailey (WhatsApp)

Interact with WhatsApp via Baileys WebSocket API

Actions122

Privacy → Block User

AI-generated

Summary

Block a WhatsApp contact by its JID using the connected Bailey session. Returns a success flag, the JID, and the action performed.

Inputs

  • jid (required) — User JID of the contact to block.

Output shape

A single item with a JSON object.

On success, includes success: true, the contact jid, and action: "block". Failed calls raise an operation error unless the node is configured to continue on fail.

Examples

Example 1: Block a contact

Set User JID to the contact's WhatsApp JID.

Links

Discussion