WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation validates a given JID (Jabber ID) within the WhatsApp context using the WARest WhatsApp REST API. It is useful for scenarios where you need to verify the correctness or existence of a JID before performing further actions such as messaging or group management. For example, it can be used to ensure that a user or group identifier is valid before sending a message or adding participants to a group.

Use Case Examples

  1. Validate a user JID before sending a message to ensure the recipient exists.
  2. Check the validity of a group JID before attempting to retrieve group information or manage participants.

Properties

Name Meaning
JID The Jabber ID (JID) to validate, which uniquely identifies a WhatsApp user or group.
Additional Fields Optional additional parameters for extended validation or context, such as country code or session ID for validation helpers.

Output

JSON

  • json
    • isValid - Boolean indicating if the JID is valid.
    • details - Additional details or metadata about the validation result.

Dependencies

  • Requires an API key credential for the WARest WhatsApp REST API and the base URL of the API server.

Troubleshooting

  • If the node throws an error stating the operation is not implemented, ensure the resource is set to 'Miscellaneous' and the operation to 'Validate JID'.
  • Errors related to authentication indicate missing or incorrect API credentials; verify the API key and base URL are correctly configured.
  • Invalid or malformed JID input will result in validation failure; ensure the JID format is correct according to WhatsApp standards.

Links

Discussion