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

# Listar arquivos



## OpenAPI

````yaml /openapi.yaml get /files
openapi: 3.1.0
info:
  title: v0x API
  version: 1.0.0
  description: >
    API pública da v0x para upload de arquivos, links diretos via CDN e
    gerenciamento de chaves.


    - Base URL produção: `https://api.v0x.lol/api/v1`

    - Autenticação: `Authorization: Bearer v0x_live_...`

    - Erros: `{ "error": "code" }`
servers:
  - url: https://api.v0x.lol/api/v1
    description: Production
  - url: http://localhost:8080/api/v1
    description: Local development
security:
  - BearerAuth: []
tags:
  - name: Health
    description: Status da API
  - name: Auth
    description: Sessão web (OAuth Google)
  - name: Files
    description: Upload e gerenciamento de arquivos
  - name: API Keys
    description: Chaves de API para integrações
paths:
  /files:
    get:
      tags:
        - Files
      summary: Listar arquivos
      parameters:
        - name: page
          in: query
          schema:
            type: integer
            default: 1
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
            maximum: 100
        - name: search
          in: query
          schema:
            type: string
      responses:
        '200':
          description: Lista paginada
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilesListResponse'
        '401':
          description: Não autenticado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
components:
  schemas:
    FilesListResponse:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/FileRecord'
        page:
          type: integer
        limit:
          type: integer
        total:
          type: integer
    ErrorBody:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Código estável do erro
    FileRecord:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        mime_type:
          type: string
        size_bytes:
          type: integer
        url:
          type: string
          format: uri
        created_at:
          type: string
          format: date-time
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Chave de API no formato v0x_live_...

````