Chat
Pin chat
Pins or unpins a chat at the top of the list
POST
Pin chat
Auth:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: yes
Description
Marks a chat as pinned (pin: true) or removes the pin (pin: false).
Examples
Pin
Withpin: 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
Withpin: 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 withchat_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
Related
Archive chat
POST /api/chat/archive/:instanceFavorite
POST /api/chat/favorite/:instance