GET /v1/lineage/{entityType}/{id}
Get Lineage
Retrieve the lineage graph for an entity by ID or fully qualified name
GET
GET /v1/lineage/{entityType}/{id}
Documentation Index
Fetch the complete documentation index at: https://openmetadata-codex-audit-docs-codebase-alignment.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Get Lineage
Retrieve the lineage graph for an entity, including upstream and downstream edges. You can query by entity ID or fully qualified name.Get by Entity Type and ID
Type of the entity. Options:
table, dashboard, pipeline, topic, mlmodel, container, searchIndex, storedProcedure, dashboardDataModel, apiEndpoint.UUID of the entity to retrieve lineage for.
Number of hops to traverse upstream (min: 0, max: 3).
Number of hops to traverse downstream (min: 0, max: 3).
Include soft-deleted entities in the lineage graph.
Get by Entity Type and FQN
UseGET /v1/lineage/{entityType}/name/{fqn} to retrieve lineage by fully qualified name.
Type of the entity. Options:
table, dashboard, pipeline, topic, mlmodel, container, searchIndex, storedProcedure, dashboardDataModel, apiEndpoint.Fully qualified name of the entity (e.g.,
sample_data.ecommerce_db.shopify.dim_customer).Number of hops to traverse upstream (min: 0, max: 3).
Number of hops to traverse downstream (min: 0, max: 3).
Include soft-deleted entities in the lineage graph.
GET /v1/lineage/{entityType}/{id}
Returns
Returns the lineage graph centered on the requested entity, including upstream and downstream edges up to the specified depth.Response
The entity reference for the node at the center of the lineage graph.
List of entity references for all nodes in the lineage graph (excluding the center entity).
Edges pointing into the center entity (data sources).
Edges pointing away from the center entity (data destinations). Same structure as
upstreamEdges.Error Handling
| Code | Error Type | Description |
|---|---|---|
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission to view lineage |
404 | NOT_FOUND | Entity with given ID or FQN does not exist |