WhatGHL icon

WhatGHL

Send actions to WhatGHL API

Actions42

👤 **CONTACTS** · Get Contact Profile Picture

AI-generated

Summary

Retrieve the profile picture URL of a specific WhatsApp contact using their contact identifier.

Inputs

  • Session Mode — Optional. Determines how the sending WhatsApp session is selected (Auto, by Session Name, or by selecting a Session).
  • Session — Required if Session Mode is 'Select Session'. Select the specific session available for the API key.
  • Session Name — Required if Session Mode is 'By Session Name'. Specify the WAHA session name.
  • Contact ID (required) — The identifier of the contact whose profile picture to retrieve. Supports phone number, @c.us, @s.whatsapp.net, or @lid formats.

Output shape

a JSON object representing the profile picture information retrieved from the API.

Returns JSON data from the WhatGHL API specifying the contact's profile picture details. Errors occur if Contact ID is missing or invalid. Requires valid WhatGHL API credentials and session selection if applicable.

Examples

Example 1: Get a contact's profile picture by specifying the contactId and optionally selecting the session.

Set 'Operation' to '👤 CONTACTS · Get Contact Profile Picture', provide 'Contact ID', and choose the appropriate 'Session Mode' and session identifier if needed.

Links

Discussion