MegaAPI icon

MegaAPI

Interact with MegaAPI WhatsApp service

Overview

The "Is On WhatsApp" operation of the MegaAPI node checks whether a specific contact (phone number) is registered on WhatsApp. This is useful for validating contacts before attempting to send messages or perform other WhatsApp-related actions, ensuring that the target phone number is active on the platform.

Common scenarios:

  • Verifying if a customer or user phone number is available on WhatsApp before sending marketing or support messages.
  • Filtering contact lists to include only WhatsApp-registered numbers.
  • Automating workflows that depend on WhatsApp presence validation.

Example:
You have a list of phone numbers and want to send promotional messages only to those who are on WhatsApp. Using this node operation, you can check each number's registration status and proceed accordingly.

Properties

Name Meaning
Contact JID The WhatsApp JID (contact identifier) to check. Format: phone_number@s.whatsapp.net (e.g., 5511999999999@s.whatsapp.net). This is the phone number in international format followed by @s.whatsapp.net.
Information A notice explaining that this operation checks if a contact/phone number is registered on WhatsApp. It reminds to use the correct JID format.

Output

The output JSON contains the result of the check indicating whether the specified contact is registered on WhatsApp. Typically, it will include fields such as:

  • A boolean or status field showing if the contact exists on WhatsApp.
  • Possibly additional metadata about the contact's WhatsApp presence.

No binary data output is expected from this operation.

Dependencies

  • Requires an API key credential for the MegaAPI WhatsApp service.
  • The node must be configured with valid credentials including host URL and authentication token.
  • Internet connectivity to reach the MegaAPI WhatsApp service endpoint.

Troubleshooting

  • Invalid JID format: Ensure the contact JID follows the pattern phone_number@s.whatsapp.net with the phone number in international format without spaces or special characters.
  • Authentication errors: Verify that the API key/token credentials are correctly set up and have not expired.
  • Network issues: Confirm that the n8n instance has internet access and can reach the MegaAPI service.
  • Unknown operation error: If the node throws an error about unknown operations, ensure the resource is set to "Instance" and operation to "Is On WhatsApp".
  • Handling failures: Use the node's "Continue On Fail" option to handle cases where some contacts might cause errors without stopping the entire workflow.

Links and References

Discussion