Actions29
- Chat Actions
- Group Actions
- Instance Actions
- Message Actions
- Webhook Actions
Overview
The "Get Groups" operation of the MegaAPI node retrieves a list of all WhatsApp groups that your connected WhatsApp instance is a member of. This operation fetches detailed metadata about each group, including the group ID, name, description, number of participants, and other relevant information.
This node operation is useful for scenarios where you want to monitor or manage WhatsApp groups programmatically. For example, you might use it to:
- Display all groups your WhatsApp instance belongs to in a dashboard.
- Automate sending messages or media to multiple groups by first retrieving their IDs.
- Audit group memberships and metadata for compliance or reporting purposes.
Properties
| Name | Meaning |
|---|---|
| Information | 📋 This will retrieve a list of all groups that your WhatsApp instance is a member of. The response includes group details such as group ID, name, description, participants count, and other group metadata. |
Output
The output JSON contains an array of group objects representing each WhatsApp group the instance is part of. Each group object typically includes:
- Group ID: Unique identifier of the WhatsApp group.
- Name: The display name of the group.
- Description: Text description of the group (if available).
- Participants Count: Number of members in the group.
- Other Metadata: Additional group-related information such as creation date, admin list, etc.
The exact structure depends on the underlying API response but generally provides comprehensive group details suitable for further processing or display.
This operation does not output binary data.
Dependencies
- Requires an active WhatsApp instance connected via the MegaAPI service.
- Needs an API key credential configured in n8n with appropriate permissions to access group information.
- The node uses the MegaAPI WhatsApp service endpoint specified in the credentials for requests.
Troubleshooting
Common Issues:
- Authentication errors: Ensure the API key/token in credentials is valid and has not expired.
- Empty group list: Verify that the WhatsApp instance is correctly connected and is a member of at least one group.
- Network errors: Check connectivity to the MegaAPI service host URL.
Error Messages:
"Unknown group operation: getGroups": Indicates a misconfiguration or typo in the operation parameter; ensure "Get Groups" is selected.- API response errors related to authorization or rate limits should be resolved by checking API credentials and usage quotas.
Links and References
- MegaAPI WhatsApp Service Documentation (example placeholder link)
- WhatsApp Group Management Concepts