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

# One node's lineage neighborhood

> The node, everything transitively upstream and/or downstream, the edges between them, freshness for the pipeline the node is (or feeds), and optionally the most recent recorded runs touching the node — what each read and wrote, per destination.



## OpenAPI

````yaml /openapi.yaml get /api/v1/lineage/{type}/{name}
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/{type}/{name}:
    get:
      tags:
        - Provenance
      summary: One node's lineage neighborhood
      description: >-
        The node, everything transitively upstream and/or downstream, the edges
        between them, freshness for the pipeline the node is (or feeds), and
        optionally the most recent recorded runs touching the node — what each
        read and wrote, per destination.
      parameters:
        - in: path
          name: type
          required: true
          schema:
            type: string
            enum:
              - source
              - tap
              - pipeline
              - dataset
              - catalog
        - name: name
          in: path
          required: true
          schema:
            type: string
        - in: query
          name: direction
          required: false
          description: Traverse upstream only, downstream only, or both (default).
          schema:
            type: string
            enum:
              - up
              - down
              - both
        - in: query
          name: depth
          required: false
          description: Maximum hops from the node; 0 or absent means unbounded.
          schema:
            type: integer
        - in: query
          name: runs
          required: false
          description: Append this many most-recent recorded runs (max 50).
          schema:
            type: integer
        - in: query
          name: columns
          required: false
          description: >-
            For pipeline and dataset nodes, embed column-level lineage
            (deterministic tier plus any cached inferred mappings). A historical
            dataset uses the definition version of the last run that wrote it.
          schema:
            type: boolean
      responses:
        '200':
          description: The neighborhood
          content:
            application/json:
              schema:
                type: object
                properties:
                  node:
                    type: object
                  upstream:
                    type: array
                    items:
                      type: object
                  downstream:
                    type: array
                    items:
                      type: object
                  edges:
                    type: array
                    items:
                      type: object
                  freshness:
                    type: object
                  runs:
                    type: array
                    description: Present when `runs` > 0; newest first.
                    items:
                      type: object
                      properties:
                        runId:
                          type: string
                        pipeline:
                          type: string
                        configVersion:
                          type: integer
                        status:
                          type: string
                          enum:
                            - SUCCESS
                            - ERROR
                            - CANCELLED
                        startedAt:
                          type: string
                        completedAt:
                          type: string
                        durationMs:
                          type: integer
                        recordCount:
                          type: integer
                        input:
                          type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - tap
                                - upload
                            tapName:
                              type: string
                            tapRunTime:
                              type: string
                            scriptSha:
                              type: string
                            source:
                              type: string
                            filename:
                              type: string
                        outputs:
                          type: array
                          items:
                            type: object
                            properties:
                              kind:
                                type: string
                              coords:
                                type: string
                              datasetId:
                                type: string
                              status:
                                type: string
                                enum:
                                  - SUCCESS
                                  - ERROR
                                  - UNKNOWN
                              recordCount:
                                type: integer
                              error:
                                type: string
        '404':
          description: No such node
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````