Actions29
- Sessions Actions
- Chats Actions
- Contacts Actions
- Groups Actions
- Messages Actions
Overview
This node connects to a WhatsApp HTTP API to retrieve the profile picture of a contact. It is useful in scenarios where you want to programmatically access and display or process the profile image associated with a specific WhatsApp user identified by their phone number (JID). For example, it can be used in customer support workflows to show the customer's profile picture or in contact management systems to sync profile images.
Properties
Name | Meaning |
---|---|
Phone | The session ID representing the authenticated WhatsApp session, typically your phone number. This is required to authorize the API request. |
To | The JID (Jabber ID) of the contact whose profile picture you want to retrieve. Usually formatted as a phone number followed by @s.whatsapp.net . |
Output
The node outputs JSON data containing the profile picture information of the specified contact. The exact structure depends on the WhatsApp HTTP API response but generally includes fields such as the URL or base64-encoded image data of the profile picture.
If the API supports binary data output, the node may also provide the profile picture as binary data for further processing or saving.
Dependencies
- Requires connection to a WhatsApp HTTP API service.
- Needs an API authentication token or key configured in the node credentials to authorize requests.
- The base URL of the WhatsApp API must be set in the credentials.
- The session ID (Phone) must correspond to an active WhatsApp session authorized to access the contact's profile picture.
Troubleshooting
- Invalid Session ID: If the session ID is incorrect or expired, the API will fail to authenticate. Ensure the session ID corresponds to a valid, active WhatsApp session.
- Incorrect JID Format: The "To" property must be a valid WhatsApp JID (e.g.,
[email protected]
). Invalid formats will cause errors. - API Connectivity Issues: Network problems or incorrect API base URL configuration can prevent successful requests.
- Permission Denied: The WhatsApp API might restrict access to profile pictures depending on privacy settings or API limitations.
- Error Messages: Common error messages from the API include authentication failures, invalid parameters, or rate limiting. Check the API documentation and ensure all inputs are correct.