---
title: "List lineage of a workbook element"
method: GET
path: "/v2/workbooks/{workbookId}/lineage/elements/{elementId}"
tags: ["Workbooks"]
---

# List lineage of a workbook element

`GET /v2/workbooks/{workbookId}/lineage/elements/{elementId}`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/workbooks/{workbookId}/lineage/elements/{elementId}`
- Auth: HTTP bearer

This endpoint retrieves the lineage and dependencies of a specific workbook element. It provides a detailed view of how data is interconnected within a workbook, which can be critical for understanding data sources and dependencies.

  ### Usage notes
  - **workbookId:** The UUID of the workbook containing the element. Retrieve the **workbookId** by calling the [/v2/workbooks](https://help.sigmacomputing.com/reference/list-workbooks) endpoint.
  - **elementId:** The UUID of the element within the workbook whose lineage is being queried. Retrieve the **elementId** by first calling the [/v2/workbooks/{workbookId}/pages](https://help.sigmacomputing.com/reference/list-workbook-pages) endpoint, then calling the [/v2/workbooks/{workbookId}/pages/{pageId}/elements](https://help.sigmacomputing.com/reference/list-workbook-page-elements) endpoint.
  - The element that you request must be a data element, such as a table, pivot table, or visualization. Requesting a UI or control element returns an error.

  ### Usage scenarios
  - **Data governance:** Allows data managers to track how information is used and propagated through different workbook elements.
  - **Debugging and optimization:** Helps in identifying and resolving issues in data processing or in the structure of workbook setups.
  - **Data source management**: Identify the data sources in use in a specific workbook.

  ### Best practices
  - Use this endpoint to regularly audit workbook structures, ensuring that all data connections and transformations are correct and optimized.
  - Integrate this information into documentation or data dictionaries to enhance transparency and understanding across teams.

## Path parameters

- `workbookId` string, required
- `elementId` string, required

## Response `200`

The response body.

- WorkbooksListLineageResponse200
  - `dependencies` object, required
  - `edges` V2WorkbooksWorkbookIdLineageElementsElementIdGetResponsesContentApplicationJsonSchemaEdgesItems[], required
    - `source` string, required
    - `target` string, required
    - `type` 'lookup' | 'source' | 'dependency', required

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
