QuePasa API (WhatsApp) icon

QuePasa API (WhatsApp)

Interact with QuePasa WhatsApp API

Contact → Get Picture

AI-generated

Summary

Retrieve the profile picture of a WhatsApp contact by their Contact ID and store it in a specified binary property.

Inputs

  • Contact ID (required) — The unique identifier of the WhatsApp contact (e.g., '5511999999999@s.whatsapp.net').
  • Binary Property Name — The name of the binary property where the profile picture will be stored; defaults to 'data' if not specified.

Output shape

a single item with a JSON body containing the contact ID and success status, and a binary property holding the contact's profile picture image data

The profile picture is returned as binary data named according to the Binary Property Name input (default 'data'). If the profile picture exists, it is stored as binary data including its original MIME type and filename format 'profile_.jpg'. If the operation fails, an error will be returned.

Examples

Example 1: Get profile picture for contact 5511999999999@s.whatsapp.net

Set Contact ID to '5511999999999@s.whatsapp.net' and use default Binary Property Name 'data'. The output will include the image binary data of that contact's profile picture.

Links

Discussion