Overview
The Contact Management module provides functionality to retrieve, view, and manage WhatsApp contacts within your application. These methods allow you to access contact information, view profile pictures, and maintain an up-to-date contact list for your messaging needs.Available Methods
Retrieve All Contacts
Get a complete list of all WhatsApp contacts available in your channel.- Basic Usage
- With Pagination
The
allContact method supports pagination to efficiently handle large contact lists. If not specified, default values are used (limit: 100, offset: 0).Get Contact Details
Retrieve detailed information about a specific contact.- Basic Usage
- Parameters
Get Contact Profile Picture
Retrieve the profile picture of a specific contact.- Basic Usage
- Parameters
If a contact doesn’t have a profile picture set, a default placeholder image URL may be returned.
Common Use Cases
Building a Contact Directory
Building a Contact Directory
Use the
allContact method to create a searchable directory of all your WhatsApp contacts, complete with profile pictures and contact details.Contact Verification
Contact Verification
Before sending messages, use the
detail method to verify that a contact exists and is available on WhatsApp.Personalized Messaging
Personalized Messaging
Retrieve contact details to personalize your messages with the recipient’s name or other information.
Profile Picture Display
Profile Picture Display
Enhance your chat interface by displaying contact profile pictures alongside messages.
Error Handling
- Contact Not Found
- Invalid Contact ID
- No Profile Picture