orvachat

Contacts

Get Profile Picture

POST/api/v1/user/avatar

Get a contact's profile picture URL (Preview: true for a small one).

Parameters

  • PhonestringRequired

    The phone number, with country code.

  • PreviewbooleanRequired

    true for a small picture, false for full size.

Code Examples

cURL
curl -X POST "https://orvachat.com/api/v1/user/avatar" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "Phone": "923001234567",
  "Preview": true
}'

Response Example

200 OK
{
  "code": 200,
  "data": {
    "URL": "https://pps.whatsapp.net/v/t61.24694-24/227295214_n.jpg?stp=dst-jpg_s96x96",
    "ID": "1645308319",
    "Type": "preview",
    "DirectPath": "/v/t61.24694-24/227295214_n.jpg?stp=dst-jpg_s96x96"
  },
  "success": true
}