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

# List Workspace Files



## OpenAPI

````yaml /api-reference/openapi.json get /v1/files
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/files:
    get:
      tags:
        - v1
        - protected
        - files
      summary: List Workspace Files
      operationId: list_workspace_files_v1_files_get
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspaceFileListResponse'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    WorkspaceFileListResponse:
      properties:
        directories:
          default: []
          items:
            type: string
          title: Directories
          type: array
        files:
          items:
            $ref: '#/components/schemas/WorkspaceFileInfo'
          title: Files
          type: array
      required:
        - files
      title: WorkspaceFileListResponse
      type: object
    WorkspaceFileInfo:
      properties:
        content_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Content Type
        last_modified:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Modified
        path:
          title: Path
          type: string
        size:
          title: Size
          type: integer
      required:
        - path
        - size
      title: WorkspaceFileInfo
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````