---
title: "Walk the provenance/lineage graph for an entity (how it was produced / what derived from it)."
method: POST
path: "/v1/provenance/get"
tags: ["resource-facade"]
---

# Walk the provenance/lineage graph for an entity (how it was produced / what derived from it).

`POST /v1/provenance/get`

## Headers

- `x-api-key` string, nullable

## Request body

- LineageGetInput
  - `entity_type` string, required — Root node type: item | order | processing_job | collection | project
  - `entity_id` string, required — Root entity id
  - `direction` string — up=ancestors, down=descendants, both
  - `max_depth` integer

## Response `200`

Successful Response

- LineageGetOutput
  - `root` object, required
  - `direction` string, required
  - `edges` LineageEdge[]
    - `depth` integer, required
    - `src_type` string, nullable
    - `src_id` string, nullable
    - `dst_type` string, nullable
    - `dst_id` string, nullable
    - `relation` string, nullable
    - `invocation_id` string, nullable
  - `nodes` LineageNode[]
    - `entity_type` string, required
    - `entity_id` string, required
    - `depth` integer, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.dev/geopera/apis/geopera-data-platform.md) · [All operations](https://skmtc.dev/geopera/apis/geopera-data-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/geopera/geopera-data-platform/revisions/cb0130b2a40a/schema)
