WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

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

  1. Automatically mark all messages as read in a specific chat after processing them.
  2. 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

Discussion