> ## 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.

> ## Agent Instructions
> Integrating Pilot Status end to end? Follow https://docs.pilotstatus.com.br/guides/integrate-with-ai.md (pt-BR: https://docs.pilotstatus.com.br/pt-BR/guides/integrate-with-ai.md). No step requires contacting support: every credential is shown in the dashboard or in an API response, and a lost one is regenerated, not recovered.
> Webhook signing secret: shown ONCE in the Signing secret window right after creating the webhook on /webhooks, and in the `secret` field of the POST /v1/webhooks response (MCP: webhooks_create). Lost it: Edit Webhook → Generate a new secret, POST /v1/webhooks/{id}/rotate-secret, or webhooks_rotate_secret (the old one stops working at once). Verify `x-pilot-status-signature` = hex HMAC-SHA256 of the raw request body keyed with that secret.
> Meta verify token (number connected with the user's own Meta app credentials): Meta Number Created! window after connecting, then the number's card on Numbers (workspace Owner), or webhook.verifyToken in the POST /v1/numbers/meta response. It is not the webhook signing secret.
> REST auth: `x-api-key: ps_...` header, never Authorization: Bearer. MCP: https://mcp.pilotstatus.com.br/mcp (148 tools, OAuth 2.1 or x-api-key); Code Mode: https://mcp.pilotstatus.com.br/code. Destructive MCP tools return a preview and a confirm_token: show the preview and call again only after the user's explicit yes. Over OAuth, revealing or creating ps_ API keys is workspace Owner only.

# Listar multimedia almacenada

> Devuelve los registros de medios almacenados de la instancia, opcionalmente filtrados por los campos indicados.



## OpenAPI

````yaml openapi.evolution-v2.es.json POST /s3/getMedia/{instance}
openapi: 3.1.0
info:
  title: Evolution V2 Layer
  version: 1.0.0
  description: >-
    Pilot Status API Layer: Evolution V2. URL base
    `https://pilotstatus.com.br/api/layer/evolution-v2`. Autentícate con el
    encabezado `apikey` (tu clave `ps_` de Pilot Status). Los endpoints de
    instancia/sesión NO están disponibles a través del layer.
servers:
  - url: https://pilotstatus.com.br/api/layer/evolution-v2
security:
  - apiKey: []
tags:
  - name: Call & Business
  - name: Chat
  - name: Group
  - name: Label
  - name: Message
  - name: Profile
  - name: Settings & Proxy
  - name: Storage (S3)
  - name: Template
paths:
  /s3/getMedia/{instance}:
    post:
      tags:
        - Storage (S3)
      summary: Listar medios almacenados
      description: >-
        Devuelve los registros de medios almacenados de la instancia,
        opcionalmente filtrados por los campos indicados.
      operationId: post__s3_getMedia_instance
      parameters:
        - name: instance
          in: path
          required: true
          schema:
            type: string
          description: >-
            El nombre de la instancia: el nombre de la instancia anterior que
            migraste en el panel, o el nombre de la instancia de Pilot Status
            (no el nombre visible del número).
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                  description: Identificador del registro de medio por el cual filtrar.
                  example: 5f3e1d2c-8b7a-4c6d-9e0f-1a2b3c4d5e6f
                type:
                  type: string
                  description: >-
                    Tipo de medio por el cual filtrar (p. ej. `image`, `video`,
                    `audio`, `document`).
                  example: image
                messageId:
                  type: integer
                  description: Identificador del mensaje al que pertenece el medio.
                  example: 12345
      responses:
        '200':
          description: 'Éxito: cuerpo de respuesta nativo del proveedor.'
          content:
            application/json:
              schema:
                type: array
                description: >-
                  Arreglo de registros de medios almacenados de la instancia
                  (integración S3/MinIO). Cada entrada es una fila Media de
                  Prisma con su Message relacionado.
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      description: ID del registro de medio (cuid).
                    fileName:
                      type: string
                      description: >-
                        Key de objeto / ruta del archivo almacenado en el bucket
                        S3/MinIO.
                    type:
                      type: string
                      description: >-
                        Categoría del medio (p. ej. image, video, audio,
                        document, sticker).
                    mimetype:
                      type: string
                      description: Tipo MIME del archivo almacenado.
                    createdAt:
                      type: string
                      format: date-time
                      description: Fecha en que se creó el registro de medio.
                    Message:
                      type: object
                      description: El Message al que pertenece este medio.
                      properties:
                        id:
                          type: string
                          description: Id del registro de mensaje (cuid).
                        key:
                          type: object
                          description: Clave de mensaje de Baileys.
                          properties:
                            remoteJid:
                              type: string
                            fromMe:
                              type: boolean
                            id:
                              type: string
                            participant:
                              type: string
                        pushName:
                          type:
                            - string
                            - 'null'
                          description: Nombre visible del remitente.
                        participant:
                          type:
                            - string
                            - 'null'
                          description: JID del participante (mensajes de grupo).
                        messageType:
                          type: string
                          description: >-
                            Tipo de mensaje (p. ej. imageMessage, videoMessage,
                            audioMessage, documentMessage).
                        message:
                          type: object
                          description: Objeto crudo de contenido de mensaje de Baileys.
                          additionalProperties: true
                        contextInfo:
                          type:
                            - object
                            - 'null'
                          description: contextInfo de Baileys (citas, menciones, etc.).
                          additionalProperties: true
                        source:
                          type: string
                          description: Dispositivo de origen.
                          enum:
                            - android
                            - ios
                            - web
                            - unknown
                            - desktop
                        messageTimestamp:
                          type: integer
                          description: Epoch Unix (segundos) del mensaje.
                        chatwootMessageId:
                          type:
                            - integer
                            - 'null'
                        chatwootInboxId:
                          type:
                            - integer
                            - 'null'
                        chatwootConversationId:
                          type:
                            - integer
                            - 'null'
                        chatwootContactInboxSourceId:
                          type:
                            - string
                            - 'null'
                        chatwootIsRead:
                          type:
                            - boolean
                            - 'null'
                        instanceId:
                          type: string
                          description: Id de la instancia propietaria.
                        webhookUrl:
                          type:
                            - string
                            - 'null'
                        status:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Estado de entrega (p. ej. PENDING, SERVER_ACK,
                            DELIVERY_ACK, READ).
                        sessionId:
                          type:
                            - string
                            - 'null'
              example:
                - id: clyz9k3m10001x8a1b2c3d4e5
                  fileName: >-
                    evolution-instance/5511999999999@s.whatsapp.net/3EB0F8A1C2D3E4F5A6B7.jpeg
                  type: image
                  mimetype: image/jpeg
                  createdAt: '2026-07-09T00:00:00.000Z'
                  Message:
                    id: clyz9k3m10000x8a1a0b1c2d3
                    key:
                      id: 3EB0F8A1C2D3E4F5A6B7
                      remoteJid: 5511999999999@s.whatsapp.net
                      fromMe: false
                    pushName: João Silva
                    participant: null
                    messageType: imageMessage
                    message:
                      imageMessage:
                        url: https://mmg.whatsapp.net/v/t62.7118-24/enc.jpg
                        mimetype: image/jpeg
                        caption: Segue a foto do produto
                        fileSha256: 9pQ0Z1xL2mN3oP4qR5sT6uV7wX8yZ9aB0cD1eF2gH3=
                        fileLength: '84213'
                        height: 1280
                        width: 720
                        mediaKey: aB1cD2eF3gH4iJ5kL6mN7oP8qR9sT0uV1wX2yZ3aB4c=
                    contextInfo: null
                    source: android
                    messageTimestamp: 1752019200
                    chatwootMessageId: null
                    chatwootInboxId: null
                    chatwootConversationId: null
                    chatwootContactInboxSourceId: null
                    chatwootIsRead: null
                    instanceId: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                    webhookUrl: null
                    status: DELIVERY_ACK
                    sessionId: null
        default:
          description: Error — provider or layer error.
          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: >-
        El token de la instancia, enviado en el encabezado `apikey`: el token de
        la instancia Evolution V2 que migraste en el panel (Números → Conectar →
        Migrar), o el token propio de la instancia de Pilot Status; y debe
        pertenecer a la `{instance}` de la ruta. Una clave de API `ps_` de Pilot
        Status NO se acepta (404 `Instance not found`). Este es el único
        encabezado que lee el layer Evolution V2: `Authorization: Bearer` y
        `x-api-key` no se aceptan, y una solicitud sin `apikey` recibe 401.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.