Skip to main content
POST
/
instances
/
{id}
/
user
/
avatar
Get user avatar
curl --request POST \
  --url https://api.vzaps.com/instances/{id}/user/avatar \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone": "<string>",
  "preview": true
}
'
{
  "code": 200,
  "success": true,
  "data": {
    "base64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/Pm8qYQAAAABJRU5ErkJggg==",
    "mimetype": "image/jpeg"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Identificador publico da instancia no formato gerado pela plataforma: prefixo VZ seguido de caracteres alfanumericos.

Example:

"VZ9K2M4N8P1Q3R5S7T0WABCD01EF"

Body

application/json
phone
string
required
preview
boolean
required

Response

200 - application/json

Avatar found

code
integer
required
success
boolean
required
data
object