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

# Column-level lineage for one pipeline definition

> Which destination columns come from which source fields. The deterministic tier (schema comparison: `passthrough` / `drop` edges with confidence `exact`, stamped provenance columns as `system`) is always returned. For pipelines with an AI transformation, `infer=true` runs the opt-in extraction — the codegen model reads the instruction, the field lists and the last generated script, and returns only mappings it can evidence (`rename` / `derive` / `drop`, confidence `inferred`). Inferred results are cached per definition version and never recomputed unless the definition changes.



## OpenAPI

````yaml /openapi.yaml get /api/v1/lineage/columns/{pipeline}
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/columns/{pipeline}:
    get:
      tags:
        - Provenance
      summary: Column-level lineage for one pipeline definition
      description: >-
        Which destination columns come from which source fields. The
        deterministic tier (schema comparison: `passthrough` / `drop` edges with
        confidence `exact`, stamped provenance columns as `system`) is always
        returned. For pipelines with an AI transformation, `infer=true` runs the
        opt-in extraction — the codegen model reads the instruction, the field
        lists and the last generated script, and returns only mappings it can
        evidence (`rename` / `derive` / `drop`, confidence `inferred`). Inferred
        results are cached per definition version and never recomputed unless
        the definition changes.
      parameters:
        - in: path
          name: pipeline
          required: true
          schema:
            type: string
        - in: query
          name: version
          required: false
          description: A definition version snapshot; default is the current definition.
          schema:
            type: integer
        - in: query
          name: infer
          required: false
          description: >-
            Run (and cache) the AI-inferred tier when applicable. Off by
            default.
          schema:
            type: boolean
      responses:
        '200':
          description: Column lineage
          content:
            application/json:
              schema:
                type: object
                properties:
                  pipeline:
                    type: string
                  version:
                    type: integer
                  versionSource:
                    type: string
                    enum:
                      - current
                      - snapshot
                  sourceFields:
                    type: array
                    items:
                      type: string
                  destinationFields:
                    type: array
                    items:
                      type: string
                  destinationSchema:
                    type: string
                    enum:
                      - declared
                      - inherited
                      - none
                  transformation:
                    type: object
                    properties:
                      kind:
                        type: string
                        enum:
                          - ai
                          - rowFunctions
                          - preprocessor
                          - none
                      instruction:
                        type: string
                  edges:
                    type: array
                    items:
                      type: object
                      properties:
                        from:
                          type: array
                          items:
                            type: string
                        to:
                          type: string
                        op:
                          type: string
                          enum:
                            - passthrough
                            - rename
                            - derive
                            - drop
                            - system
                        confidence:
                          type: string
                          enum:
                            - exact
                            - inferred
                            - system
                        evidence:
                          type: string
                  unresolved:
                    type: array
                    items:
                      type: string
                  inferred:
                    type: object
                    properties:
                      available:
                        type: boolean
                      computed:
                        type: boolean
                      computedAt:
                        type: string
                      model:
                        type: string
                      note:
                        type: string
                      error:
                        type: string
        '404':
          description: No such pipeline or version
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````