> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pilotstatus.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Obter avatar do usuário

> Retorna a URL da foto de perfil de um número de telefone.



## OpenAPI

````yaml openapi.evolution-go.pt.json POST /user/avatar
openapi: 3.1.0
info:
  title: Evolution GO Layer
  version: 1.0.0
  description: >-
    Camada de API do Pilot Status — Evolution GO. Base URL
    `https://pilotstatus.com.br/api/layer/evolution-go`. Autentique com o header
    `apikey` (sua chave `ps_` do Pilot Status) ou `Authorization: Bearer`.
    Endpoints de instância/sessão NÃO estão disponíveis na camada.
servers:
  - url: https://pilotstatus.com.br/api/layer/evolution-go
security:
  - apiKey: []
tags:
  - name: Chamada (voz)
  - name: Chat
  - name: Comunidade
  - name: Grupo
  - name: Etiqueta (label)
  - name: Mensagem
  - name: Newsletter / Canais
  - name: Envio (balanceado)
  - name: Usuário / Contatos
paths:
  /user/avatar:
    post:
      tags:
        - Usuário / Contatos
      summary: Obter avatar do usuário
      description: Retorna a URL da foto de perfil de um número de telefone.
      operationId: post__user_avatar
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                number:
                  type: string
                  description: Número de telefone em formato internacional.
                  example: '5511999999999'
                preview:
                  type: boolean
                  description: >-
                    Quando verdadeiro, retorna a imagem de pré-visualização em
                    baixa resolução em vez da foto em tamanho completo.
                  example: false
              required:
                - number
      responses:
        '200':
          description: Sucesso — corpo de resposta nativo do provedor.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  Whatsmeow ProfilePictureInfo wrapped in the Evolution GO
                  envelope.
                properties:
                  message:
                    type: string
                    description: Operation status message.
                  data:
                    type: object
                    description: Profile picture info for the queried user.
                    properties:
                      url:
                        type: string
                        description: >-
                          Full URL of the profile image, downloadable via a
                          plain HTTP request.
                      id:
                        type: string
                        description: Image ID (same as UserInfo.PictureID).
                      type:
                        type: string
                        description: >-
                          Image type, e.g. "image" (full resolution) or
                          "preview" (thumbnail).
                      direct_path:
                        type: string
                        description: Direct path to the image on the WhatsApp CDN.
                      hash:
                        type:
                          - string
                          - 'null'
                        description: Base64-encoded image hash (may be null/absent).
              example:
                message: success
                data:
                  url: >-
                    https://pps.whatsapp.net/v/t61.24694-24/470123_9876543210_1122334455_n.jpg?ccb=11-4&oh=01_AbC&oe=66F1A2B3&_nc_cat=100
                  id: '1661427238'
                  type: image
                  direct_path: >-
                    /v/t61.24694-24/470123_9876543210_1122334455_n.jpg?ccb=11-4&oh=01_AbC&oe=66F1A2B3&_nc_cat=100
                  hash: kO0m0y0p6qP3n9c2Q1r8sw==
        default:
          description: Erro — erro do provedor ou da camada.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                  response:
                    type: object
              example:
                status: 400
                error: Bad Request
                message: Invalid payload
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: >-
        Your Pilot Status API key (ps_...). Evolution GO also accepts
        `Authorization: Bearer <key>`.

````