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

# Foto do contato

> Retorna a URL da foto de perfil de um contato. Use `preview` para a miniatura.



## OpenAPI

````yaml /pt-br/api-reference/openapi.json get /contacts/picture
openapi: 3.1.0
info:
  title: Zapfy API
  description: >-
    API de WhatsApp multi-tenant. Envie mensagens e gerencie webhooks por uma
    superfície única.
  version: 1.0.0
servers:
  - url: https://api.zapfy.io/v1
security:
  - accountToken: []
paths:
  /contacts/picture:
    get:
      tags:
        - Contatos
      summary: Foto do contato
      description: >-
        Retorna a URL da foto de perfil de um contato. Use `preview` para a
        miniatura.
      parameters:
        - name: phone
          in: query
          required: true
          schema:
            type: string
            example: '5511999998888'
          description: >-
            Telefone do contato em E.164 (ex.: 5511999998888), como devolvido
            por `/contacts/check` ou `GET /v1/contacts`.
      responses:
        '200':
          $ref: '#/components/responses/AvatarResult'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
        - instanceToken: []
components:
  responses:
    AvatarResult:
      description: Foto de perfil.
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                $ref: '#/components/schemas/AvatarResult'
    Error:
      description: Erro.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Instance not found
  schemas:
    AvatarResult:
      type: object
      properties:
        url:
          type: string
          description: URL da foto de perfil. Pode ser baixada com um GET simples.
          example: https://pps.whatsapp.net/v/t61.jpg
  securitySchemes:
    accountToken:
      type: http
      scheme: bearer
      description: Token de conta (`zpfy_acct_...`) — gerencia instâncias e webhooks.
    instanceToken:
      type: http
      scheme: bearer
      description: Token de instância (`zpfy_inst_...`) — envia mensagens.

````