Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/v1/sdk/lineage | List assets with lineage info |
| GET | /api/v1/sdk/lineage/{id} | Get lineage for specific asset |
List Assets with Lineage
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
source | string | - | Filter by data source |
has_upstream | boolean | - | Only assets with upstream dependencies |
has_downstream | boolean | - | Only assets with downstream dependencies |
limit | integer | 50 | Max results |
offset | integer | 0 | Results to skip |
Response
Get Asset Lineage
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
direction | string | both | upstream, downstream, or both |
depth | integer | 1 | Levels to traverse (1-5) |
Response
Relationship Types
| Type | Description |
|---|---|
derives_from | Target is derived from source (transformation) |
joins_with | Assets are joined together |
feeds_into | Source feeds into target |
copies_to | Direct copy relationship |
references | Lookup/reference relationship |
Use Case: Check Upstream Before Pipeline
Verify all upstream sources are fresh before running:Use Case: Impact Analysis
Before making schema changes, check downstream impact:Common Questions
How deep can I traverse lineage in one request?
Passdepth from 1 to 5 on GET /lineage/{id}. Depth 1 returns direct neighbors, which is cheap and enough for most impact-analysis UIs. Higher depths fan out quickly, so avoid depth 5 in tight loops and paginate the results you consume.
Where does lineage come from?
Lineage is derived from warehouse query history, dbt manifests, and view definitions for supported sources, then enriched with dashboard consumers (Looker, Tableau, Mode). You won’t see relationships for sources that don’t expose query history or for ad-hoc scripts run outside the warehouse.What do the relationship types mean?
derives_from marks transformation-based derivation (CREATE TABLE AS, dbt models). joins_with captures co-used inputs. feeds_into describes a non-derivation downstream consumer (e.g., a dashboard). copies_to is a direct copy, and references is a lookup/FK-style join.