Data Lineage
Returns a list of lineage events associated with the current user.
Lineage events are generated asynchronously when creating or retrieving lineage/impact graphs. They contain processing status ('COMPLETED', 'ALREADY_STARTED', 'FAILED', 'TIMED_OUT'), and can be used to track the progress of graph generation.
Requires 'View lineage' permission.
The list is automatically filtered to include only events created by the authenticated user.
No pagination is applied; the full list of events is returned in a single response.
Lineage events retrieved
List of lineage events for the current user
Serialized graph data
Unique hash of the graph
Associated graph ID
Creation timestamp
Additional message
Current status of the lineage event
Reference to the background task
Type of lineage event
User who created the event
Unauthorized
Forbidden
Internal Server Error
GET /api/lineage_events HTTP/1.1
Accept: */*
[
{
"graph_data": "[\"bar\"]",
"graph_hash": "abc123def456",
"graph_id": null,
"inserted_at": "2026-05-08T10:00:00Z",
"message": null,
"status": "COMPLETED",
"task_reference": "0.0.1234...",
"type": null,
"user_id": 123
}
]Exports a graph as a ZIP archive containing CSV files.
Requires 'View lineage' permission, and the graph must belong to the requesting user.
The export uses the graph's stored parameters (type, ids, excludes) to generate the CSV files.
The response is a downloadable ZIP file with the filename graph_<id>.zip.
The export does not recalculate the graph; it uses the existing graph data. If the graph is stale, the CSV may not reflect the latest changes.
Graph ID to export as CSV (string or integer)
CSV file downloaded
Unauthorized
Not found
Internal Server Error
POST /api/graphs/csv HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"id": "graph-123"
}binaryCreates a graph for lineage or impact analysis.
The resulting graph is filtered by the user's permissions on the underlying data structures. Additionally, the user must have the 'View lineage' permission to generate lineage or impact graphs.
Request parameters:
type(required) – Must be one of:"sample"– Builds a sample graph (does not requireids)."lineage"– Builds a lineage graph (requires a non‑emptyidsarray of structure IDs)."impact"– Builds an impact graph (requires a non‑emptyidsarray).
ids– List of data structure IDs (required forlineageandimpact; ignored forsample).excludes(optional) – List of IDs to exclude from the graph.levels(optional) – Depth level for the graph (default: service‑defined, typically full depth).header_labels(optional, boolean) – Custom labels used when exporting the graph.
Behavior differences:
If the graph is already computed and cached, the endpoint returns
201with the graph data.If the graph is being processed asynchronously, it returns
202with atask_referenceand agraph_hashto poll for completion.
The graph is tied to the requesting user. Cached graphs are automatically recalculated if they become stale (e.g., when underlying data changes).
Include header labels in the response
Number of levels to traverse
Type of graph to generate
Graph created
Response for graph creation. Can be completed (201) or processing (202)
Graph processing
Unauthorized
Unprocessable Entity
Internal Server Error
POST /api/graphs HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 85
{
"excludes": null,
"header_labels": true,
"ids": [
"bar",
"baz"
],
"levels": 2,
"type": "impact"
}{
"excludes": [],
"groups": [
{
"id": "@@ROOT"
},
{
"id": "foo"
}
],
"id": "graph-123",
"ids": [
"bar"
],
"opts": {
"type": "impact"
},
"paths": [
{
"path": [],
"v1": "bar",
"v2": "baz"
}
],
"resources": [
{
"id": "bar"
},
{
"id": "baz"
}
]
}Retrieves a graph by its identifier.
The graph is private to the user who created it; only that user can retrieve it. The user must also have the 'View lineage' permission to access the underlying data.
Behavior differences:
If the graph exists and is stale (due to changes in the underlying data), the endpoint automatically recalculates it using the stored creation parameters and returns the updated graph.
If the graph is not stale, the cached data is returned directly. The response always includes the graph ID and its full data payload.
This endpoint bypasses the standard render pipeline and sends a raw JSON response.
Graph ID
Graph retrieved
Unauthorized
Not found
Internal Server Error
GET /api/graphs/{id} HTTP/1.1
Accept: */*
{
"data": {
"excludes": [],
"groups": [
{
"id": "@@ROOT"
},
{
"id": "foo"
}
],
"id": "graph-123",
"ids": [
"bar"
],
"opts": {
"type": "impact"
},
"paths": [
{
"path": [],
"v1": "bar",
"v2": "baz"
}
],
"resources": [
{
"id": "bar"
},
{
"id": "baz"
}
]
}
}Retrieves a graph by its hash value, returning its current data or processing status.
The graph is private to the user who initiated the creation; only that user can access it.
Response statuses:
200 OK– Graph status: 'COMPLETE'; returns the graph data withhashandid.202 Accepted– Graph is still processing; returns the lineage event payload with status 'ALREADY_STARTED'.500 Internal Server Error– The processing failed or timed out; returns the lineage event payload with status 'FAILED' or 'TIMED_OUT'.404 Not Found– No matching graph or event exists.
Graph hash
Graph retrieved
Response for graph retrieval by hash. Can be completed (200) or processing (202)
Graph processing
Unauthorized
Not found
Internal Server Error
GET /api/graphs/hash/{hash} HTTP/1.1
Accept: */*
{
"excludes": [],
"groups": [
{
"id": "@@ROOT"
},
{
"id": "foo"
}
],
"hash": "abc123def456",
"id": "graph-123",
"ids": [
"bar"
],
"opts": {
"type": "impact"
},
"paths": [
{
"path": [],
"v1": "bar",
"v2": "baz"
}
],
"resources": [
{
"id": "bar"
},
{
"id": "baz"
}
]
}Last updated