---
title: "Get Asset Lineage"
method: GET
path: "/api/v1/assets/{asset_id}/lineage"
tags: ["lineage-query"]
---

# Get Asset Lineage

`GET /api/v1/assets/{asset_id}/lineage`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/assets/{asset_id}/lineage`
- Auth: none declared

Get complete lineage graph for an asset.

Returns all nodes and edges from the database.
Client-side filtering can be used to show different views (asset/schema/table).

Args:
    asset_id: Asset UUID

Returns:
    StandardResponse with LineageGraphResponse data

## Path parameters

- `asset_id` string, uuid, required

## Headers

- `Authorization` string

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
