TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/wppconnect-team/wa-js/llms.txt
Use this file to discover all available pages before exploring further.
WPP.blocklist module exposes WhatsApp Web’s internal BlocklistStore. Blocking a contact prevents them from calling you, sending you messages, or seeing your online status and profile picture. The block is stored on WhatsApp’s servers and applies across all your devices. Contact IDs use the standard {phone}@c.us format.
Blocking only affects direct messaging. If you and a blocked contact share a group, you will still see each other’s messages within that group.
WPP.blocklist.blockContact(chatId)
Blocks a contact. Returns the contact’s WID and their updated block status.
The
@c.us WID of the contact to block.WPP.blocklist.unblockContact(chatId)
Unblocks a previously blocked contact.
The
@c.us WID of the contact to unblock.WPP.blocklist.isBlocked(chatId)
Returns true if the given contact is currently blocked, false otherwise. This is a synchronous check against the local BlocklistStore.
The
@c.us WID to check.WPP.blocklist.all()
Returns an array of WIDs for every contact currently on the block list. This is a synchronous read from the local store.
Common patterns
Toggle block status
Toggle block status
Check the current state and flip it:
Block multiple contacts
Block multiple contacts
blockContact handles one ID at a time. Use Promise.all to block several contacts concurrently:Export the block list
Export the block list
Retrieve all blocked WIDs as plain strings: