Actions21
- Message Actions
- Group Actions
- Chat Actions
- Contact Actions
Contact → Get Contacts
AI-generatedOverview
This node operation retrieves a list of contacts from the Green API WhatsApp service. It supports filtering to show only groups and limiting the number of contacts returned. This is useful for scenarios where you need to fetch and process contact information or group lists from WhatsApp for automation workflows, such as syncing contacts or managing group memberships.
Use Case Examples
- Fetch all contacts from WhatsApp to sync with a CRM system.
- Retrieve only WhatsApp groups to manage group communications.
- Limit the number of contacts retrieved to optimize performance in large contact lists.
Properties
| Name | Meaning |
|---|---|
| Group Only | Whether to only show groups in the contact list. |
| Count | Number of contacts to return. Set to 0 to return all contacts. |
Output
JSON
contacts- Array of contact objects returned from the API, including groups if requested.
Dependencies
- Requires Green API credentials including instance ID and API token for authentication.
Troubleshooting
- Common issues include authentication errors due to invalid or missing API credentials. Ensure the Green API credentials are correctly configured.
- API request failures may occur if the network is unavailable or the Green API service is down. Check network connectivity and API status.
- If the 'Count' parameter is set too high, the response may be slow or time out. Try reducing the count or using pagination if supported.
Links
- Green API Documentation - Official documentation for the Green API WhatsApp service, including contact management endpoints.