For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Data Lineage

List lineage events

get

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.

Responses
200

Lineage events retrieved

application/json

List of lineage events for the current user

graph_datastring · nullableOptional

Serialized graph data

graph_hashstringRequired

Unique hash of the graph

graph_idinteger · nullableOptional

Associated graph ID

inserted_atstring · date-timeRequired

Creation timestamp

messagestring · nullableOptional

Additional message

statusstring · enumRequired

Current status of the lineage event

Possible values:
task_referencestring · nullableOptional

Reference to the background task

typestring · nullableOptional

Type of lineage event

user_idintegerRequired

User who created the event

get/api/lineage_events
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
  }
]

Export graph as CSV

post

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.

Body
idany ofRequired

Graph ID to export as CSV (string or integer)

stringOptional
or
integerOptional
Responses
200

CSV file downloaded

text/csv
string · binaryOptional
post/api/graphs/csv
POST /api/graphs/csv HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 18

{
  "id": "graph-123"
}
binary

Create graph

post

Creates 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 require ids).

    • "lineage" – Builds a lineage graph (requires a non‑empty ids array of structure IDs).

    • "impact" – Builds an impact graph (requires a non‑empty ids array).

  • ids – List of data structure IDs (required for lineage and impact; ignored for sample).

  • 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 201 with the graph data.

  • If the graph is being processed asynchronously, it returns 202 with a task_reference and a graph_hash to 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).

Body
header_labelsboolean · nullableOptional

Include header labels in the response

levelsinteger · nullableOptional

Number of levels to traverse

typestring · enumRequired

Type of graph to generate

Possible values:
Responses
201

Graph created

application/json

Response for graph creation. Can be completed (201) or processing (202)

or
post/api/graphs
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"
    }
  ]
}

Get graph

get

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.

Path parameters
idstringRequired

Graph ID

Responses
200

Graph retrieved

application/json
get/api/graphs/{id}
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"
      }
    ]
  }
}

Get graph by hash

get

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 with hash and id.

  • 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.

Path parameters
hashstringRequired

Graph hash

Responses
200

Graph retrieved

application/json

Response for graph retrieval by hash. Can be completed (200) or processing (202)

or
get/api/graphs/hash/{hash}
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