---
title: "Get Sql Lineage"
method: POST
path: "/dbt/models/sql_lineage"
tags: ["DBT_MODELS"]
---

# Get Sql Lineage

`POST /dbt/models/sql_lineage`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/dbt/models/sql_lineage`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Headers

- `x-tenant` string, required

## Request body

- SQLLineageRequest
  - `dbt_model_rk` string, required
  - `session_id` string, required

## Response `200`

Successful Response

- SQLLineageResponse
  - `tableEdges` array[], required
    - unknown[]
      - unknown
  - `details` object, required
  - `nodePositions` object, nullable

## Other responses

- `400`: Not supported for public user
- `403`: Not supported for public user
- `422`: Validation Error

---

[API](https://skmtc.dev/myaltimate/apis/myaltimate-api.md) - [All operations](https://skmtc.dev/myaltimate/apis/myaltimate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/myaltimate-api/revisions/727657ce54e9?raw)
