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

# List Files

> Retrieve a list of files for a specific migration or migration task. At least one of migration_id or migration_task_id must be provided.



## OpenAPI

````yaml v1/openapi.json get /api/v1/files
openapi: 3.1.0
info:
  title: EDM API
  version: 1.0.0
  description: >-
    This API is built from TypeScript source code and uses common types defined
    in your shared files. It exposes endpoints for migration workflows, file
    management, and migration modal creation.
servers:
  - url: https://worker.anon.com
security:
  - bearerAuth: []
paths:
  /api/v1/files:
    get:
      tags:
        - Files
      summary: List Files
      description: >-
        Retrieve a list of files for a specific migration or migration task. At
        least one of migration_id or migration_task_id must be provided.
      operationId: api.v1.files.list
      parameters:
        - name: migration_id
          in: query
          required: false
          description: Migration ID to list files for
          schema:
            type: string
            format: uuid
        - name: migration_task_id
          in: query
          required: false
          description: Migration Task ID to list files for
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/FileResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
components:
  schemas:
    FileResponse:
      type: object
      properties:
        object:
          type: string
          enum:
            - file
        id:
          type: string
          format: uuid
          description: Unique identifier for the file
        created:
          type: string
          format: date-time
          description: Timestamp when the file was created
        name:
          type:
            - string
            - 'null'
          description: Name of the file, unchanged from the source provider
        type:
          type:
            - string
            - 'null'
          description: Type of the file
          enum:
            - CompanyInfo-EntityType-Screenshot
            - CompanyInfo-EntityType-HTML
            - ContractorInfo-Details-CSV
            - ContractorPayments-Report-CSV
            - Deductions-Benefits-Screenshot
            - Deductions-Benefits-HTML
            - Deductions-Pay-HTML
            - Deductions-Report-CSV
            - Deductions-Report-Screenshot
            - Deductions-Report-HTML
            - DirectDeposit-Report-CSV
            - EmployeeData-Report-CSV
            - FederalTax-Setup-Screenshot
            - FederalTax-Setup-HTML
            - FederalTax-Document-PDF
            - Location-Screenshot
            - Location-HTML
            - PayrollJournal-Report-CSV
            - PTOData-Policy-Screenshot
            - PTOData-Policy-HTML
            - PTOData-Policy-XLSX
            - SignatoryData-Screenshot
            - SignatoryData-HTML
            - Silver-EmployeeDetails-JSON
            - Silver-EmployeeRoster-JSON
            - Silver-Signatory-JSON
            - Silver-Location-JSON
            - Silver-ItemDetails-JSON
            - Silver-EntityType-JSON
            - Silver-FederalTax-PDF
            - Silver-StateTax-PDF
            - StateTax-Setup-Screenshot
            - StateTax-Setup-HTML
            - StateTax-Document-PDF
            - TimeOffBalances-Report-CSV
            - NavanConnect-Report-CSV
            - Inventory-Report-XLSX
            - ItemCatalogue-Details-CSV
            - GiftCardBalances-Details-CSV
            - TravelPerk-Report-CSV
            - Bookings-Report-CSV
            - Gold-EntityType-XLSX
            - Gold-ItemDetails-XLSX
            - Gold-EmployeeData-JSON
            - ItemModifiers-Details-JSON
            - Silver-ItemModifiers-JSON
        url:
          type: string
          format: uri
          description: Signed URL for the file
        size:
          type: number
          description: Size of the file in bytes
        content_type:
          type: string
          description: MIME type of the file
        migration_id:
          type: string
          format: uuid
          description: Unique identifier for the migration
      required:
        - object
        - id
        - created
        - name
        - type
        - url
        - size
        - content_type
        - migration_id
      additionalProperties: false
    APIErrorResponse:
      type: object
      properties:
        type:
          type: string
          enum:
            - api_error
        message:
          type: string
      required:
        - type
        - message
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer token authentication

````