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

# List Files

> Lists files for the authenticated user with cursor-based pagination and optional filtering by date range.



## OpenAPI

````yaml https://api.chunkr.ai/docs/openapi.json get /files
openapi: 3.1.0
info:
  title: Chunkr API
  description: >-
    API service for document layout analysis and chunking to convert document
    into RAG/LLM-ready data.
  contact:
    name: Chunkr
    url: https://chunkr.ai
    email: ishaan@lumina.sh
  license:
    name: ''
  version: 2.62.0
servers:
  - url: https://api.chunkr.ai
    description: Chunkr API
security: []
tags:
  - name: Files
    description: Endpoints for uploading and managing files
  - name: Health
    description: Endpoint for checking the health of the service.
  - name: Tasks
    description: Endpoints for uploading and managing tasks
  - name: Webhook
    description: Endpoints for managing webhooks
paths:
  /files:
    get:
      tags:
        - Files
      summary: List Files
      description: >-
        Lists files for the authenticated user with cursor-based pagination and
        optional filtering by date range.
      operationId: list_files_route
      parameters:
        - name: limit
          in: query
          description: Number of files per page
          required: false
          schema:
            type: integer
            format: int64
        - name: cursor
          in: query
          description: Cursor for pagination (created_at)
          required: false
          schema:
            type: string
            format: date-time
        - name: start
          in: query
          description: Start date
          required: false
          schema:
            type: string
            format: date-time
        - name: end
          in: query
          description: End date
          required: false
          schema:
            type: string
            format: date-time
        - name: sort
          in: query
          description: 'Sort order: ''asc'' for ascending, ''desc'' for descending (default)'
          required: false
          schema:
            $ref: '#/components/schemas/SortOrder'
      responses:
        '200':
          description: Paginated list of files
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilesResponse'
        '401':
          description: Unauthorized
          content:
            text/plain:
              schema:
                type: string
        '500':
          description: Server error
          content:
            text/plain:
              schema:
                type: string
      security:
        - api_key: []
components:
  schemas:
    SortOrder:
      type: string
      enum:
        - asc
        - desc
    FilesResponse:
      type: object
      required:
        - files
        - has_more
      properties:
        files:
          type: array
          items:
            $ref: '#/components/schemas/FileResponse'
          description: List of files
        has_more:
          type: boolean
          description: Whether there are more files to fetch
        next_cursor:
          type:
            - string
            - 'null'
          format: date-time
          description: Cursor for pagination (timestamp) e.g. 2025-01-01T00:00:00Z
    FileResponse:
      type: object
      description: |-
        Metadata describing an uploaded file in Chunkr.

        Returned by POST `/files` and GET `/files/{file_id}`.
      required:
        - file_id
        - url
        - file_name
        - content_type
        - file_size
        - metadata
        - created_at
      properties:
        content_type:
          type: string
          description: MIME type detected or provided for the file.
        created_at:
          type: string
          format: date-time
          description: Timestamp when the file was created.
        file_id:
          type: string
          description: Unique identifier for the file.
        file_name:
          type: string
          description: The original filename supplied by the client.
        file_size:
          type: integer
          format: int64
          description: Size of the stored file in bytes.
        metadata:
          type: object
          description: Arbitrary JSON metadata associated with the file.
        url:
          type: string
          description: Permanent Chunkr URL. Use directly with other chunkr API requests.
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: Authorization

````