Mark as read
Mark unread messages as read for a specific chat.
Authentication Required
Login to swap the placeholders with your real Instance ID and Access Token.
Log InNo query parameters required
This endpoint doesn't expect data in the URL.
Best practices
Store the read state in your own CRM database to avoid redundant API calls.
Use the 'days' parameter to bulk-clear old unread messages for inactive customers.
Use this endpoint to restore visibility to conversations that were accidentally opened.
The Art of the Blue Tick: Mastering Read States
In WhatsApp, the transition from grey ticks (delivered) to blue ticks (read) is a high-stakes psychological event. The /v2/chats/read endpoint allows your application to programmatically trigger this state change. Whether you are building an automated helpdesk or a synchronized multi-agent CRM, managing "Read Receipts" correctly is critical for maintaining user trust and professional responsiveness.
🏗️ Technical Workflow of a Read Event
When you mark a chat as read via Wawp, the engine performs a specialized "Acknowledgment Handshake":
- Selection: Based on your
messagesordaysparameters, the engine identifies the unread message cluster in the specifiedchatId. - Network Broadcast: A "Seen" packet is transmitted via the WhatsApp WebSocket.
- UI Synchronization: This event ripples across all other devices linked to the account (WhatsApp Web, Mobile, Desktop), instantly clearing the unread badges and turning the sender's ticks blue.
🚀 Strategic Implementation Patterns
1. The "Human-Agent" Sync
If you are building a custom dashboard for agents:
- Trigger: Detact when an agent clicks on a chat thread to open it.
- Action: Immediately call
/v2/chats/readfor that JID. This signals to the customer that "Someone is looking at your message," which drastically improves the perceived quality of service.
2. The "Bot-First" Approach
If an AI bot handles the initial triage:
- Best Practice: Mark the messages as read as soon as the bot processes them. This keeps the agent's "Unread" list clean, ensuring they only focus on chats where the bot needs human escalation.
- Tip: Use the
messages: 1parameter if you only want to acknowledge the most recent interaction.
🛡️ Best Practices for UX Management
- Avoid "Ghost Reading": High-scale automation should be careful not to mark every incoming message as read instantly. This creates a "Responsiveness Gap"—the user sees the blue ticks and expects a reply in seconds. If your bot isn't ready to reply, consider delaying the "read" action until the processing is complete.
- Batching reads: Use the
daysparameter for "Inbox Cleanup" routines. For example, mark all messages from the last 7 days as read for any chat you are about to archive. - JID Accuracy: Ensure you use the full JID (
@c.usor@g.us). Marking a group as read will clear the sharded unread count for every participant's message within that group.
🧩 Advanced Use Case: Session Completion Logic
When an agent resolves a support ticket:
- Call
/v2/chats/readto ensure everything is marked as seen. - Send a "Thank you" closing message.
- Archive the chat. This three-step flow represents the gold standard of professional WhatsApp chat management.
⚠️ Important Considerations
- Privacy Settings: If the sender of the message has turned off "Read Receipts" in their WhatsApp settings, your blue ticks will not show for them, but your unread counts inside Wawp will still be cleared.
- Engine State: This endpoint requires the session to be in the
WORKINGstate. If the engine is starting or stopped, the "Read" packet cannot be transmitted to the WhatsApp network. - Irreversibility: Once a message is marked as read, it cannot be "un-read" (turning the ticks back to grey) on the sender's device. While Wawp has a
/v2/chats/unreadendpoint, that only affects the local badge on your side, not the sender's blue ticks.
Summary of Capabilities:
- Programmatic triggering of WhatsApp blue ticks (Read Receipts).
- Global synchronization across all linked devices (Web/Mobile/Desktop).
- Granular control via message count or time-based (days) selection.
- Critical for building professional agent Dashboards and CRM integrations.
Request Parameters
Configure the parameters required to interact with this endpoint. All query and body arguments are listed below with their details.
Request Body
Sent as a JSON objectstring | WhatsApp Instance ID Example: | ||
string | API Access Token Example: | ||
string | Recipient's WhatsApp ID (JID). Supports Individuals (@c.us), Groups (@g.us), and Newsletters (@newsletter). Example: | ||
number | — | How many latest to read Example: | |
number | — | How many latest days to read Example: |
Request Samples
Use these ready-to-go code snippets to integrate our API into your project quickly and efficiently. Choose your preferred language and library.
Expected Responses
Explore all possible responses and outcomes from the server. We have documented each status code with data examples to make success and error handling easier.
Example
{
"success": true,
"message": "Operation completed successfully"
}Command Palette
Search for a command to run...