Green API icon

Green API

Send WhatsApp messages via Green API

Contact → Get Contacts

AI-generated

Overview

This node operation retrieves a list of contacts or groups from the Green API WhatsApp service. It is useful for scenarios where you need to fetch contact information or group listings from a WhatsApp instance managed via Green API. For example, you might use this to display contacts in a CRM system or to process group data for messaging campaigns.

Use Case Examples

  1. Fetch all contacts from a WhatsApp instance to synchronize with a customer database.
  2. Retrieve only groups from the contact list to manage group messaging.

Properties

Name Meaning
Group Only Whether to only show groups in the contact list.
Count Number of contacts to return; 0 means return all contacts.
Override Credentials Override the instance ID and API token credentials for this specific operation.

Output

JSON

  • contacts - Array of contacts or groups retrieved from the WhatsApp instance.

Dependencies

  • Requires Green API credentials including instance ID and API token.

Troubleshooting

  • Ensure valid Green API credentials are provided; invalid or missing credentials will cause authentication errors.
  • If the 'Count' parameter is set to 0, the node fetches all contacts which might lead to large data responses and potential timeouts.
  • Network issues or incorrect API endpoint URLs can cause request failures; verify connectivity and API base URL.

Links

Discussion