GET /v1/lineage/export
Export Lineage
Export the lineage graph for an entity as CSV
GET
GET /v1/lineage/export
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.
Export Lineage
Export the lineage graph for a given entity as a CSV file. Useful for auditing, reporting, and offline analysis of data lineage.Query Parameters
Fully qualified name of the entity to export lineage for (e.g.,
sample_data.ecommerce_db.shopify.dim_customer).Entity type. Options:
table, dashboard, pipeline, topic, mlmodel, container, searchIndex, storedProcedure, dashboardDataModel, apiEndpoint.Number of hops to traverse upstream (min: 0, max: 3).
Number of hops to traverse downstream (min: 0, max: 3).
GET /v1/lineage/export
Returns
Returns a CSV string with one row per lineage edge in the graph.Response
The CSV includes the following columns:| Column | Description |
|---|---|
fromEntityFQN | Fully qualified name of the source entity |
fromEntityType | Entity type of the source |
toEntityFQN | Fully qualified name of the destination entity |
toEntityType | Entity type of the destination |
sqlQuery | SQL query driving the transformation (if available) |
Error Handling
| Code | Error Type | Description |
|---|---|---|
400 | BAD_REQUEST | Missing required parameters |
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission to export lineage |
404 | NOT_FOUND | Entity with the given FQN does not exist |