Actions55
- Message Actions
- Contact Actions
- Chat Actions
- Group Actions
- Queue Actions
- Account Actions
- Session Actions
- Session Control Actions
- Call Actions
Contact → Get Profile Image
AI-generatedOverview
This node integrates with the Maytapi WhatsApp Unofficial API to perform various WhatsApp-related actions. Specifically, for the Contact resource and Get Profile Image operation, it retrieves the profile picture of a WhatsApp contact or group.
This operation is useful when you want to display or use the profile image of a contact or group in your workflows, such as for customer support dashboards, CRM enrichment, or automated messaging systems that personalize messages based on contact images.
Example scenarios:
- Automatically fetching and displaying a customer's WhatsApp profile picture in a support ticket.
- Archiving profile images of contacts for record-keeping.
- Using profile images in marketing automation to customize outreach.
Properties
| Name | Meaning |
|---|---|
| Phone ID Source | Select how to provide the Phone ID: either "From Credentials" (uses Phone ID stored in credentials) or "Custom" (enter a custom Phone ID). |
| Phone ID | The WhatsApp instance Phone ID to use if "Custom" is selected as Phone ID Source. Required when using custom source. |
| Phone Number | (Optional) The phone number of the contact whose profile image you want to retrieve. If omitted, may fetch default or account profile image. |
Output
The output JSON contains the response from the Maytapi API's getProfileImage endpoint. This typically includes the URL or data representing the profile image of the specified contact or group.
If the profile image exists, the output JSON will have details such as the image URL or base64 data depending on the API response format.
No binary data output is explicitly handled by this operation in the code; the profile image is returned as part of the JSON response.
Dependencies
- Requires an API key credential for the Maytapi WhatsApp API.
- The Phone ID must be provided either via credentials or as a custom input.
- The node makes HTTP requests to the Maytapi API endpoints.
- No additional environment variables are required beyond the API credential.
Troubleshooting
- Missing Phone ID error: If neither credentials nor custom Phone ID is provided, the node throws an error stating "Phone ID is required." Ensure you configure the Phone ID correctly.
- Invalid Phone Number: Providing an incorrectly formatted phone number may result in no profile image found or API errors.
- API Errors: Network issues or invalid API keys can cause request failures. Verify your API key and network connectivity.
- Empty Response: If the contact has no profile image set, the API might return empty or null data.
Links and References
This summary focuses on the Contact resource's Get Profile Image operation as requested.