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

# Read a document tap's ledger

> Returns every ledger entry owned by the tap. The ledger records which documents the tap has already staged so re-runs skip unchanged files.



## OpenAPI

````yaml /openapi.yaml get /api/v1/tap/ledger
openapi: 3.0.3
info:
  title: Datris API
  description: >
    REST API for the Datris AI Data Platform. Ingest, validate, transform,
    store, and retrieve data.


    For AI agent integration, use the [MCP
    Server](https://docs.datris.ai/mcp-server) instead.
  version: 1.0.0
  contact:
    name: Datris
    url: https://datris.ai
  license:
    name: Apache 2.0
servers:
  - url: http://localhost:8080
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /api/v1/tap/ledger:
    get:
      tags:
        - Taps
      summary: Read a document tap's ledger
      description: >-
        Returns every ledger entry owned by the tap. The ledger records which
        documents the tap has already staged so re-runs skip unchanged files.
      parameters:
        - name: name
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Ledger entries
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TapDocumentLedgerEntry'
components:
  schemas:
    TapDocumentLedgerEntry:
      type: object
      properties:
        uri:
          type: string
          description: Unique source identifier for the document
        tapName:
          type: string
        stagedPath:
          type: string
          description: MinIO key where the raw bytes were staged
        filename:
          type: string
        contentHash:
          type: string
        firstSeenAt:
          type: string
        lastSeenAt:
          type: string
        status:
          type: string
          enum:
            - staged
            - processed
            - failed
        metadata:
          type: object
          additionalProperties:
            type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````