Skip to main content
POST
Pin chat
Auth: TokenAccount or TokenInstanceRate-limit: Global (100/min) • Idempotent: yes

Description

Marks a chat as pinned (pin: true) or removes the pin (pin: false).
WhatsApp limits to 3 pinned chats simultaneously. Trying to pin a fourth returns a WhatsMeow error propagated to the response.

Examples

Pin

With pin: true, the chat moves to the top of the list. Remember WhatsApp allows at most 3 pinned chats at the same time, trying a fourth returns an error.

Unpin

With pin: false, removes the pin and the chat returns to normal sorting by activity. Frees a slot in the limit of 3 pinned chats.

Success response

The response confirms the operation with chat_jid (JID resolved from number) and pinned reflecting the final state. The message changes depending on the value of pin: "Chat pinned successfully" or "Chat unpinned successfully".
200 OK

Path parameters

string
required
Instance name.

Headers

Request body

string
required
Phone number, private JID (...@s.whatsapp.net or ...@lid), group JID (...@g.us), or newsletter.
boolean
required
true pins, false unpins.

Error responses

Error 400

Archive chat

POST /api/chat/archive/:instance

Favorite

POST /api/chat/favorite/:instance