WhatsApp Web API (WWebJS) icon

WhatsApp Web API (WWebJS)

Interact with WhatsApp Web API via WWebJS — send messages, manage sessions, chats, groups, contacts and channels

Contact → Block

AI-generated

Summary

Block a WhatsApp contact

Inputs

  • sessionId (required) — Session identifier to use for the request
  • contactId (required) — WhatsApp identifier of the contact to block, e.g. "34612345678@c.us"

Output shape

A single record indicating the result of the block operation; typically contains a success boolean (and possibly a message field) returned by the API

The response merges the input JSON with the API payload; on error the workflow will stop unless continued‑on‑fail is set; no pagination or array results

Examples

Example 1: Block a contact in a workflow

resource=contact, operation=Block, sessionId=mySession, contactId=34612345678@c.us

Example 2: Blocking a contact using an expression for sessionId

resource=contact, operation=Block, sessionId=$json.sessionId, contactId=34612345678@c.us

Example 3: Blocking a contact when errors are ignored

resource=contact, operation=Block, sessionId=fallbackSession, contactId=9876543210@c.us

Links

Discussion