MegaAPI icon

MegaAPI

Interact with MegaAPI WhatsApp service

Instance → Is On WhatsApp

AI-generated

Overview

This node operation checks if a specific contact (phone number) is registered on WhatsApp. It is useful for verifying whether a given phone number is active on WhatsApp before attempting to send messages or perform other WhatsApp-related actions. For example, a user can input a contact's JID (in the format phone_number@s.whatsapp.net) to confirm their WhatsApp registration status.

Use Case Examples

  1. Check if 5511999999999@s.whatsapp.net is registered on WhatsApp before sending a message.
  2. Verify multiple contacts' WhatsApp registration status in a batch process.

Properties

Name Meaning
Contact JID The WhatsApp JID (contact identifier) to check. Format: phone_number@s.whatsapp.net (e.g., 5511999999999@s.whatsapp.net).

Output

JSON

  • isOnWhatsapp - Boolean indicating if the contact is registered on WhatsApp
  • jid - The WhatsApp JID that was checked

Dependencies

  • Requires an API key credential for MegaAPI WhatsApp service authentication.

Troubleshooting

  • Ensure the Contact JID is in the correct format: phone_number@s.whatsapp.net.
  • If the node throws an 'Unknown operation' error, verify that the operation parameter is set to 'isOnWhatsapp'.
  • Check API credentials and network connectivity if the node fails to communicate with the MegaAPI service.

Links

Discussion