Chat
Mark chat as read
Marks the entire chat as read or unread
POST
Mark chat as read
Auth:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: yes
Description
Marks all unread messages of a chat as read (read: true) or undoes the marking (read: false). It is equivalent to opening the chat on the phone: the new-messages badge resets.
Examples
Mark as read
Withread: true, marks all unread messages of the chat as read and resets the badge, equivalent to opening the conversation on the phone.
Mark as unread
Withread: false, restores the “unread” state on the chat so it appears highlighted in the list again, useful to revisit a conversation later.
Success response
The response confirms the operation withchat_jid (JID resolved from number) and read reflecting the final state. The message changes depending on the value of read: "Chat marked as read successfully" or "Chat marked as unread successfully".
200 OK
Path parameters
Instance name.
Headers
| Name | Required | Example | Description |
|---|---|---|---|
Content-Type | yes | application/json | , |
token | yes (or Authorization) | a1b2c3d4-... | TokenAccount or TokenInstance. |
Request body
Phone number, private JID (
...@s.whatsapp.net or ...@lid), group JID (...@g.us), or newsletter.true marks as read, false marks as unread.Error responses
| HTTP | error.message | When it happens |
|---|---|---|
| 400 | Instance name is required | , |
| 400 | Invalid request body: <...> | Malformed JSON. |
| 400 | Number is required | , |
| 401 | Invalid token | , |
| 404 | Instance not found | , |
| 503 | Instance is not connected to WhatsApp | , |
Error 400
Related
Mark message as read
Mark a single message.
Archive chat
After resetting the badge, archive.