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

# Lineage

> Query, create, delete, and export data lineage between entities

# Lineage

The Lineage API lets you manage data lineage relationships between any two entities in Collate. Lineage captures how data flows from sources to destinations, including column-level mappings and pipeline references.

## Available Endpoints

> [card] [Get Lineage](https://docs.getcollate.io/api-reference/lineage/get.md)
>
> Retrieve the lineage graph for an entity by ID or fully qualified name, with configurable upstream and downstream depth.

> [card] [Add Lineage](https://docs.getcollate.io/api-reference/lineage/add.md)
>
> Create a lineage edge between two entities with optional column-level mappings, pipeline references, and SQL queries.

> [card] [Delete Lineage](https://docs.getcollate.io/api-reference/lineage/delete.md)
>
> Remove a lineage edge between two entities.

> [card] [Export Lineage](https://docs.getcollate.io/api-reference/lineage/export.md)
>
> Export the lineage graph for an entity as CSV.

## Supported Entity Types

Lineage can be established between **any** entity types in Collate. Common combinations include:

| From | To | Example |
| - | - | - |
| Table | Table | ETL transformations between source and target tables |
| Table | Dashboard | Dashboards consuming data from tables |
| Pipeline | Table | Pipelines producing data into tables |
| Topic | Table | Streaming data from Kafka topics into tables |
| Table | ML Model | Tables used as training data for ML models |

## Key Concepts

* **Edge**: A directional lineage relationship from one entity to another
* **Column-level lineage**: Mapping specific columns from a source entity to columns in a target entity
* **Pipeline reference**: Associating a pipeline entity that powers the transformation
* **Upstream/Downstream depth**: Controls how many hops to traverse when querying the lineage graph


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.