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

# List all documents

> List all documents across cases



## OpenAPI

````yaml GET /v2/documents
openapi: 3.0.1
info:
  title: Tavrn Platform API
  version: 1.0.0
  description: >-
    Enterprise API for medical record retrieval: cases, retrieval requests,
    retrieved records and provider invoices, case documents, and webhook
    notifications.
  contact:
    name: Tavrn Support
    email: contact@tavrn.ai
servers:
  - url: https://enterprise.tavrn.ai
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: Cases
    description: Case management operations
  - name: Documents
    description: Document upload and management
  - name: Retrieval Requests
    description: Medical record retrieval requests submitted to healthcare facilities
  - name: Requestors
    description: Multiple retrieval profiles within one organization
  - name: Webhooks
    description: Webhook registration and event notifications
paths:
  /v2/documents:
    get:
      tags:
        - Documents
      summary: List all documents
      description: List all documents across cases
      operationId: listDocuments
      parameters:
        - name: limit
          in: query
          description: Maximum number of results
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: cursor
          in: query
          description: Pagination cursor
          schema:
            type: string
        - name: case_id
          in: query
          description: Filter by case ID
          schema:
            type: string
        - name: archived
          in: query
          description: Filter by archived status
          schema:
            type: boolean
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedDocuments'
components:
  schemas:
    PaginatedDocuments:
      type: object
      required:
        - results
        - next
        - previous
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/Document'
        next:
          type: string
          nullable: true
          format: uri
        previous:
          type: string
          nullable: true
          format: uri
    Document:
      type: object
      required:
        - id
        - case_id
        - file_name
        - file_size
        - file_type
        - archived
        - created_at
        - updated_at
      properties:
        id:
          type: string
          description: Unique document identifier
          example: doc_abc123
        case_id:
          type: string
          description: Associated case ID
          example: case_xyz
        file_name:
          type: string
          description: File name
          example: medical_record.pdf
        file_size:
          type: integer
          description: File size in bytes
          example: 1234567
        file_type:
          type: string
          description: MIME type
          example: application/pdf
        path:
          type: string
          nullable: true
          description: Virtual path for UI grouping
          example: Example_General_Hospital
        archived:
          type: boolean
          description: Whether document is archived
          example: false
        created_at:
          type: string
          format: date-time
          description: Creation timestamp (ISO 8601)
          example: '2025-02-01T12:34:56Z'
        updated_at:
          type: string
          format: date-time
          description: Last update timestamp (ISO 8601)
          example: '2025-02-01T12:34:56Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        API key authentication. Use format: `Authorization: Bearer
        tavrn_sk_live_...`

````