WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation allows users to pin or unpin a chat in WhatsApp using the WARest WhatsApp REST API. It is useful for managing chat visibility and prioritization by toggling the pinned status of a chat. For example, a user can pin important chats to keep them at the top of their chat list or unpin them when they are no longer a priority.

Use Case Examples

  1. Pin a chat to keep it at the top of the chat list for quick access.
  2. Unpin a chat to remove it from the pinned section and return it to the normal chat list order.

Properties

Name Meaning
Session The WhatsApp session identifier to use for the operation, selected from existing sessions or entered manually.
Chat ID / JID The unique identifier of the chat to pin or unpin, such as a phone number with domain or group ID.
Pin? Boolean flag to enable pinning (true) or unpinning (false) the specified chat.

Output

JSON

  • json - The response from the WARest API indicating the result of the pin/unpin chat 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.
  • Check that the API key credential is correctly configured and has the necessary permissions.
  • If the operation is not implemented error occurs, confirm the resource is 'chats' and operation is 'pinChat'.
  • Network or server errors may occur if the WARest API server is unreachable or down.

Discussion