---
title: "Find Path Between Nodes"
method: GET
path: "/api/v1/assets/{asset_id}/lineage/path"
tags: ["lineage-query"]
---

# Find Path Between Nodes

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

## Request

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

Find shortest path between two nodes.

Args:
    asset_id: Asset UUID
    from_unique_id: Source node unique ID
    to_unique_id: Target node unique ID
    max_hops: Maximum path length

Returns:
    StandardResponse with path data

## Path parameters

- `asset_id` string, uuid, required

## Query parameters

- `from_unique_id` string, required: Source node unique identifier
- `to_unique_id` string, required: Target node unique identifier
- `max_hops` integer: Maximum path length

## 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)
