OpenWA icon

OpenWA

Interact with OpenWA WhatsApp API Gateway

Actions138

Chat → Pin

AI-generated

Summary

Pin or unpin a WhatsApp chat in the selected session. Set Pin to true to pin it or false to unpin it; the node sends the target chat ID and flag to the chat operation.

Inputs

  • Session Name or ID (required) — Select the session or provide its ID with an expression.
  • Chat Name or ID (required) — Select the chat or provide its WhatsApp ID, such as a contact ending in @c.us or a group ending in @g.us. The dropdown lists up to 1,000 chats.
  • Pin — Defaults to true. Turn it off to unpin the chat.

Output shape

A single item containing the API response.

WhatsApp allows at most three pinned chats. With whatsapp-web.js, a fourth pin attempt can return a false success flag; with Baileys, the flag is always true even when the fourth pin does not stick.

Links

Discussion