get_avatar
Retrieve a contact's or group's profile photo as base64-encoded image data using a phone number or group ID. Decode the result to get a JPEG or PNG avatar.
Instructions
Retrieve the profile photo for a contact or group as base64-encoded image data. Pass a phone number (E.164) for contacts or a group ID (from list_groups) for groups. Returns raw image bytes encoded as base64 — decode to get a JPEG or PNG. Returns an error if no avatar is set for the identifier. Use get_profile to also read name and about text alongside the avatar. Use update_profile with avatar_path to set your own profile photo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identifier | Yes | Phone number (E.164) for a contact or group ID for a group |