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

# List Documents

> Retrieve file documents filtered by category

Returns file documents filtered by category. Supported categories include W9, E\&O, Cyber, Producer Agreement, and more.


## OpenAPI

````yaml openapi/v1.json GET /v1/file-documents
openapi: 3.0.0
info:
  title: Turris Public API
  description: API for managing insurance compliance data
  version: 1.0.0
  contact: {}
servers:
  - url: https://public.api.live.turrisfi.com
    description: Production
  - url: https://public.api.sandbox.turrisfi.com
    description: Sandbox
security: []
tags: []
paths:
  /v1/file-documents:
    get:
      tags:
        - file-documents
      operationId: FileDocumentFeatureController_getFileDocuments_v1
      parameters:
        - name: category
          required: true
          in: query
          description: Filter documents by file document category
          schema:
            example: Producer Agreement
            type: string
            enum:
              - W9
              - E&O
              - Cyber
              - Producer Agreement
              - Crime & Fidelity
              - Other Contract
              - Other Document
              - Payment Details
              - License PDF
              - Contract Container Folder Document
              - Surplus Lines
        - name: subCategory
          required: false
          in: query
          description: Filter Producer Agreement documents by type (instance or template)
          schema:
            example: template
            type: string
            enum:
              - instance
              - template
        - name: isDeleted
          required: false
          in: query
          description: Filter documents by their soft-deletion status
          schema:
            example: false
            type: boolean
      responses:
        '200':
          description: List of file documents
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/FileDocumentResponse'
                  requestId:
                    type: string
                    description: Unique request identifier
                    example: dev-2c5e7cf2-9acf-4c8c-ab2f-b81f39d775a8
                  timestamp:
                    type: string
                    description: Response timestamp
                    example: '2025-11-12T20:49:03.293Z'
                required:
                  - data
                  - requestId
                  - timestamp
        '401':
          description: Invalid or missing auth token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
components:
  schemas:
    FileDocumentResponse:
      type: object
      properties:
        _id:
          type: string
          description: Document ID
        category:
          type: string
          description: Document category
          enum:
            - W9
            - E&O
            - Cyber
            - Producer Agreement
            - Crime & Fidelity
            - Other Contract
            - Other Document
            - Payment Details
            - License PDF
            - Contract Container Folder Document
            - Surplus Lines
        versions:
          description: Document versions
          type: array
          items:
            $ref: '#/components/schemas/DocumentVersionResponse'
        createdAt:
          format: date-time
          type: string
          description: Created date
        updatedAt:
          format: date-time
          type: string
          description: Updated date
      required:
        - _id
        - category
    ErrorResponseDto:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
        requestId:
          type: string
          description: Unique request identifier for debugging
        errorType:
          type: string
          description: Error type classification
        errorMessage:
          description: Array of error messages
          type: array
          items:
            type: string
        timestamp:
          type: string
          description: ISO timestamp when the error occurred
        details:
          type: object
          description: Additional error context
      required:
        - statusCode
        - requestId
        - errorType
        - errorMessage
        - timestamp
    DocumentVersionResponse:
      type: object
      properties:
        s3VersionId:
          type: string
          description: S3 version ID
        metadataModel:
          type: string
          description: Metadata model type
        metadataId:
          type: string
          description: Metadata ID
      required:
        - s3VersionId

````