MegaAPI icon

MegaAPI

Interact with MegaAPI WhatsApp service

Group → Get Groups

AI-generated

Overview

This node operation retrieves a list of all WhatsApp groups that the connected WhatsApp instance is a member of. It fetches group details such as group ID, name, description, participant count, and other metadata. This is useful for users who want to manage or monitor their WhatsApp groups programmatically, for example, to display group information in a dashboard or to automate group-related workflows.

Use Case Examples

  1. Retrieve all groups to display their names and participant counts in a reporting tool.
  2. Fetch group metadata to automate sending messages or media to specific groups based on their attributes.

Properties

Name Meaning
Information Displays a notice informing the user that this operation will retrieve a list of all groups the WhatsApp instance is a member of, including group details such as ID, name, description, participants count, and metadata.

Output

JSON

  • groupId - The unique identifier of the WhatsApp group.
  • name - The name of the WhatsApp group.
  • description - The description or topic of the WhatsApp group.
  • participantsCount - The number of participants in the WhatsApp group.
  • metadata - Additional metadata related to the WhatsApp group, such as creation date or admin information.

Dependencies

  • Requires an API key credential for MegaAPI WhatsApp service to authenticate requests.

Troubleshooting

  • Common issues include authentication failures due to invalid or missing API credentials. Ensure the MegaAPI token is correctly configured.
  • If the node throws an 'Unknown group operation' error, verify that the operation parameter is correctly set to 'getGroups'.
  • Network or API endpoint issues may cause request failures; check the base URL and network connectivity.

Discussion