Skip to main content
Version: v0.23.1

Pin or unpin a chat at the top of the chat list

POST 

/api/sessions/:sessionId/chats/pin

Pin or unpin a chat at the top of the chat list

Request

Responses

Returns { success }. false means the engine declined, and only a pin can: WhatsApp allows at most three pinned chats and the whatsapp-web.js engine reports the refusal. Unpinning always succeeds, and the Baileys engine always reports success because it cannot observe the cap.