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

# List company documents (deprecated)

> Deprecated. Use the Commenda OS documents endpoints instead.

This endpoint is deprecated and will be removed.

Use [List documents](/engine/commendaos/partner-api/commenda-os-business-entities-id-documents-GET) and [List supported document types](/engine/commendaos/partner-api/commenda-os-business-entities-id-documents-supported-GET) in the Commenda OS Partner API instead.


## OpenAPI

````yaml GET /public/documents
openapi: 3.0.1
info:
  title: Commenda Public APIs
  description: >-
    APIs for Commenda entity management, partner incorporation, indirect tax,
    compliance, and corporate operations.
  license:
    name: NONE
    url: NONE
  version: 1.0.0
servers:
  - url: https://api.prod.commenda.io/api/v1
    description: Commenda platform APIs, including Partner Incorporation and Commenda OS.
  - url: https://transaction-tax.api.in.commenda.io/api/v1
    description: Global Indirect Tax API.
security:
  - bearerAuth: []
paths:
  /public/documents:
    get:
      summary: List legacy document slots for a company
      description: Deprecated. Use the Commenda OS documents endpoints instead.
      operationId: listAffiliateDocuments
      parameters:
        - name: companyId
          in: query
          required: true
          schema:
            type: integer
          description: Company whose corporation documents should be listed.
        - name: documentType
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/AffiliateDocumentCategory'
        - name: documentSubType
          in: query
          required: false
          schema:
            type: string
          description: Filter by Commenda legacy document subtype.
      responses:
        '200':
          description: Document slots retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliateListDocumentsResponse'
        '400':
          description: Invalid query parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliatePublicError'
        '401':
          description: Missing or invalid affiliate API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliatePublicError'
        '403':
          description: Company is not accessible to the affiliate
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliatePublicError'
      deprecated: true
      security:
        - xApiKeyAuth: []
      servers:
        - url: https://api.prod.commenda.io/api/v1
components:
  schemas:
    AffiliateDocumentCategory:
      type: string
      enum:
        - FORMATION_DOCUMENT
        - SHAREHOLDER_DOCUMENT
        - TAX_AND_COMPLIANCE_DOCUMENT
        - FINANCIAL_RECORDS
        - OFFICE_AND_ADMINISTRATION_DOCUMENT
        - CONTRACTS_AND_AGREEMENTS
        - MISCELLANEOUS
    AffiliateListDocumentsResponse:
      type: object
      required:
        - documents
        - count
      properties:
        documents:
          type: array
          items:
            $ref: '#/components/schemas/AffiliateDocument'
        count:
          type: integer
          example: 2
    AffiliatePublicError:
      type: object
      required:
        - statusCode
        - message
        - error
      properties:
        statusCode:
          type: integer
          example: 403
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          example: Company does not belong to this affiliate firm
        error:
          type: string
          example: Forbidden
    AffiliateDocument:
      type: object
      required:
        - fileId
        - documentName
        - documentType
        - documentSubType
        - country
        - jurisdiction
        - corporationType
        - corporationId
      properties:
        fileId:
          type: integer
          nullable: true
          description: Latest uploaded file id for this document slot, if available.
          example: 900
        documentName:
          type: string
          example: Operating Agreement
        documentType:
          $ref: '#/components/schemas/AffiliateDocumentCategory'
        documentSubType:
          type: string
          description: >-
            Legacy Commenda document subtype used internally for document rules
            and files.
          example: OperatingAgreement
        country:
          type: string
          example: US
        jurisdiction:
          type: string
          nullable: true
          example: DE
        corporationType:
          type: string
          nullable: true
          example: LLC
        corporationId:
          type: integer
          example: 44
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    xApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````