Actions90
- Sessions Actions
- Messages - Sending Actions
- Chats Actions
- Messages - Actions Actions
- Groups Actions
- List Groups
- Group Info
- Get Invite Link
- Revoke Invite Link
- Join via Link
- Preview via Link
- Create Group
- Delete Group
- Update Group Description
- Toggle Announcement Mode
- List Participants
- Add Participants
- Remove Participants
- Demote Participants
- Approve Join Request
- Reject Join Request
- List Join Requests
- Get Group Picture
- Set Group Picture
- Delete Group Picture
- Leave Group
- Update Group Name
- Lock Group Edits
- Promote Participants
- Profile Actions
- Server Actions
- Miscellaneous Actions
Overview
This node operation marks a specified chat as read in a WhatsApp session using the WARest WhatsApp REST API. It is useful for acknowledging inbound messages in a chat, either marking all messages or limiting the acknowledgment to a certain number of messages or messages within a specific number of days. This helps automate message management and read status updates in WhatsApp chats.
Use Case Examples
- Automatically mark all messages as read in a specific chat after processing them.
- Limit marking read to the last 5 days of messages in a chat to keep recent messages acknowledged while ignoring older ones.
Properties
| Name | Meaning |
|---|---|
| Session | The WhatsApp session identifier to use for the operation, selected from a list or entered manually. |
| Chat ID / JID | The unique identifier of the chat to mark as read, e.g., a phone number with domain or group ID. |
| Messages to Mark Read | Number of inbound messages to acknowledge; 0 means mark all messages as read. |
| Days to Mark Read | Limit marking read to messages from the last N days when 'Messages to Mark Read' is 0. |
Output
JSON
json- The response from the WARest API indicating the result of the mark chat read operation.
Dependencies
- Requires an API key credential for the WARest WhatsApp REST API and the base URL of the API server.
Troubleshooting
- Ensure the session ID is valid and active; otherwise, the API call will fail.
- Verify the chat ID (JID) is correct and corresponds to an existing chat in the session.
- If marking a limited number of messages or days, ensure the values are non-negative integers.
- Common error messages may include invalid session, chat not found, or permission denied; check API credentials and session status.
Links
- WARest WhatsApp REST API - Official repository and documentation for the WARest WhatsApp REST API used by this node.
