Get the profile picture URL for a WhatsApp contact.
Query Parameters
Phone number to get avatar for
If true, returns thumbnail (96x96). If false, returns full image. Default: false
Response Fields
Direct URL to the profile picture
Picture ID (changes when picture is updated)
# Get full image
curl -X GET "https://api.livchat.ai/v1/contacts/avatar?phone=5511999999999" \
-H "Authorization: Bearer YOUR_API_KEY"
# Get thumbnail
curl -X GET "https://api.livchat.ai/v1/contacts/avatar?phone=5511999999999&preview=true" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"url": "https://pps.whatsapp.net/v/t61.24694-24/...",
"id": "1645308319",
"type": "preview",
"directPath": "/v/t61.24694-24/..."
}
Profile picture URLs are temporary and may expire. Cache the image data, not the URL.