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

# Lineage API

> Query, create, delete, and export data lineage, or ingest OpenLineage events.

# Lineage

The Lineage APIs let you query and manage relationships between OpenMetadata assets. Native endpoints accept entity IDs or fully qualified names. OpenLineage endpoints accept events with input and output datasets.

Use the native API when your application already identifies the catalog assets to connect. Use the OpenLineage API when your pipeline emits `RunEvent` payloads. For more information, see [OpenLineage Compatibility](https://docs.open-metadata.org/v2.1.x/how-to-guides/data-lineage/openlineage.md).

## Authentication and Permissions

Send your OpenMetadata JWT in the `Authorization: Bearer` header. Native lineage writes require `EditLineage` permission on both endpoint entities. OpenLineage event submission requires `EditLineage` permission on the `table` resource.

Endpoint paths in these pages are relative to the API base URL. For example, `/v1/lineage` is served at `https://your-company.open-metadata.org/api/v1/lineage`.

For more information, see [API Authentication](https://docs.open-metadata.org/v2.1.x/api-reference/authentication.md).

## Available Endpoints

> [card] [Get Lineage](https://docs.open-metadata.org/v2.1.x/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.open-metadata.org/v2.1.x/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.open-metadata.org/v2.1.x/api-reference/lineage/delete.md)
>
> Remove a lineage edge between two entities.

> [card] [Export Lineage](https://docs.open-metadata.org/v2.1.x/api-reference/lineage/export.md)
>
> Export the lineage graph for an entity as CSV.

> [card] [OpenLineage Events](https://docs.open-metadata.org/v2.1.x/api-reference/lineage/openlineage.md)
>
> Send a single OpenLineage event or a batch of events to create dataset and column-level lineage.

## Supported Entity Types

Lineage connects data assets such as tables, dashboards, pipelines, topics, and ML models. 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.