> ## 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.

# The whole lineage graph

> The graph Source → Tap → Pipeline → Dataset → Catalog, derived from configuration plus recorded runs (cached ~1 minute). Node ids are `type:name`. Datasets a pipeline landed into under an earlier configuration appear with `historical: true` (and a dashed edge).



## OpenAPI

````yaml /openapi.yaml get /api/v1/lineage
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.28.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/lineage:
    get:
      tags:
        - Provenance
      summary: The whole lineage graph
      description: >-
        The graph Source → Tap → Pipeline → Dataset → Catalog, derived from
        configuration plus recorded runs (cached ~1 minute). Node ids are
        `type:name`. Datasets a pipeline landed into under an earlier
        configuration appear with `historical: true` (and a dashed edge).
      responses:
        '200':
          description: Nodes and edges
          content:
            application/json:
              schema:
                type: object
                properties:
                  nodes:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        type:
                          type: string
                          enum:
                            - source
                            - tap
                            - pipeline
                            - dataset
                            - catalog
                        name:
                          type: string
                        catalog:
                          type: string
                        tags:
                          type: array
                          items:
                            type: string
                        historical:
                          type: boolean
                        authority:
                          type: string
                          enum:
                            - authoritative
                            - derived
                            - undeclared
                          description: >-
                            Dataset nodes only — which copy may be cited.
                            Declared on the pipeline, never inferred.
                  edges:
                    type: array
                    items:
                      type: object
                      properties:
                        from:
                          type: string
                        to:
                          type: string
                        historical:
                          type: boolean
                        evidence:
                          type: object
                          description: >-
                            What traversed this edge in the last `windowDays`;
                            absent when no recorded run backs the edge (a
                            configuration claim).
                          properties:
                            runs:
                              type: integer
                            records:
                              type: integer
                            lastRunAt:
                              type: string
                            lastStatus:
                              type: string
                            failedRuns:
                              type: integer
                            windowDays:
                              type: integer
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````