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
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 marks as read, false marks as unread.Error responses
Error 400
Related
Mark message as read
Mark a single message.
Archive chat
After resetting the badge, archive.