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

# List Files

> List all files in a specific container for the authenticated user's organization. Returns file names and presigned S3 URLs that are ready for download. For browser/VPN-restricted clients, pass each returned URL to `GET /api/v1/proxy/file` as `presigned_url`.



## OpenAPI

````yaml /api-reference/openapi-v1.json get /api/v1/files/{container}
openapi: 3.0.0
info:
  title: Artos API
  description: API for document generation, template management, and document organization
  version: 1.0.0
  contact:
    name: Artos Support
    email: internal@artosai.com
servers:
  - url: https://api.artosai.com
    description: Production server
  - url: http://localhost:8000
    description: Local development server
security:
  - bearerAuth: []
paths:
  /api/v1/files/{container}:
    get:
      tags:
        - Files
      summary: List Files
      description: >-
        List all files in a specific container for the authenticated user's
        organization. Returns file names and presigned S3 URLs that are ready
        for download. For browser/VPN-restricted clients, pass each returned URL
        to `GET /api/v1/proxy/file` as `presigned_url`.
      operationId: listFiles
      parameters:
        - name: container
          in: path
          required: true
          description: Container/folder name (e.g., 'templates', 'documents', 'input')
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListFilesResponse'
              example:
                files:
                  - name: protocol.pdf
                    url: >-
                      https://bucket.s3.amazonaws.com/org-id/documents/protocol.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&...
        '400':
          description: Authentication failure
        '500':
          description: S3 operation failed
components:
  schemas:
    ListFilesResponse:
      type: object
      properties:
        files:
          type: array
          items:
            $ref: '#/components/schemas/FileObject'
    FileObject:
      type: object
      properties:
        name:
          type: string
          description: File name
        url:
          type: string
          description: >-
            Presigned S3 download URL for the file (typically expires after 1
            hour).
      required:
        - name
        - url
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token authentication. Token provides organization-scoped access.

````