> ## 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 retrieval documents

> List records, provider invoices, and available request cost summaries in one response. This endpoint does not accept pagination or category filters. An invoice can appear before it is downloadable; retrieval_request.documents_available is sent when its file becomes available.



## OpenAPI

````yaml GET /v2/retrieval-requests/{retrieval_request_id}/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/retrieval-requests/{retrieval_request_id}/documents:
    get:
      tags:
        - Retrieval Requests
      summary: List retrieval documents
      description: >-
        List records, provider invoices, and available request cost summaries in
        one response. This endpoint does not accept pagination or category
        filters. An invoice can appear before it is downloadable;
        retrieval_request.documents_available is sent when its file becomes
        available.
      operationId: listRetrievalDocuments
      parameters:
        - name: retrieval_request_id
          in: path
          required: true
          description: Retrieval request ID
          schema:
            type: string
      responses:
        '200':
          description: Available retrieval documents
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RetrievalRequestDocumentsResponse'
        '404':
          description: Retrieval request not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    RetrievalRequestDocumentsResponse:
      type: object
      description: >-
        Complete current document list in one response. This endpoint does not
        paginate or filter by category; next and previous are always null.
      required:
        - results
        - next
        - previous
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/RetrievalRequestDocument'
        next:
          type: string
          format: uri
          nullable: true
          description: Always null for this endpoint.
          example: null
        previous:
          type: string
          format: uri
          nullable: true
          description: Always null for this endpoint.
          example: null
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Machine-readable error code
              example: validation_error
            message:
              type: string
              description: Human-readable error message
              example: The patient.date_of_birth field is required
    RetrievalRequestDocument:
      type: object
      required:
        - id
        - retrieval_request_id
        - category
        - record_types
        - file_name
        - file_size
        - file_type
        - page_count
        - created_at
      properties:
        id:
          type: string
          description: >-
            Opaque document identifier. For an invoice, it matches the ID in
            webhook invoice_ids. The request cost PDF uses cost_summary.
          example: rrdoc_001
        retrieval_request_id:
          type: string
          example: rr_abc123
        category:
          type: string
          enum:
            - records
            - invoice
            - cost_summary
          description: >-
            `records` for facility records, `invoice` for provider invoices,
            `cost_summary` for completed request costs once billing is
            finalized.
          example: records
        record_types:
          type: array
          items:
            type: string
          description: >-
            Content categories, commonly medical_records, billings, radiology,
            abstract_records, or other. Additional values may appear. Empty for
            invoices and cost summaries.
          example:
            - medical_records
        metadata:
          type: object
          description: >-
            Present for invoice documents only; omitted for records and cost
            summaries.
          required:
            - provider_fee_amount
          properties:
            provider_fee_amount:
              type: number
              minimum: 0
              description: >-
                This provider invoice's amount in USD, not cents, contributing
                to costs.provider_fees. Zero is a valid amount.
              example: 85
        file_name:
          type: string
          nullable: true
          description: File name, or null when unavailable.
          example: example_general_hospital_records.pdf
        file_size:
          type: integer
          nullable: true
          example: 2456789
        file_type:
          type: string
          nullable: true
          description: MIME type, or null when unavailable.
          example: application/pdf
        page_count:
          type: integer
          nullable: true
          example: 134
        created_at:
          type: string
          format: date-time
          nullable: true
          example: '2025-02-05T15:22:10Z'
      description: >-
        An invoice can appear in this list and in costs before it is
        downloadable. Its download endpoint returns 404 until the file is
        available.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        API key authentication. Use format: `Authorization: Bearer
        tavrn_sk_live_...`

````