dbt Labs Lineage Integrations API

The Lineage Integrations API from dbt Labs, for lineage integrations.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 8

GET /api/v3/accounts/{account_id}/projects/{project_id}/integrations/lineage/ List lineage integrations #
POST /api/v3/accounts/{account_id}/projects/{project_id}/integrations/lineage/ Create lineage integration #
GET /api/v3/accounts/{account_id}/projects/{project_id}/integrations/lineage/{id}/ Get lineage integration #
PATCH /api/v3/accounts/{account_id}/projects/{project_id}/integrations/lineage/{id}/ Update lineage integration #
DELETE /api/v3/accounts/{account_id}/projects/{project_id}/integrations/lineage/{id}/ Delete lineage integration #
GET /api/v3/accounts/{account_id}/projects/{project_id}/integrations/lineage/{id}/collections/ List collections from BI tool #
GET /api/v3/accounts/{account_id}/projects/{project_id}/integrations/lineage/{id}/collections/{collection_id}/ List collections from BI tool 2 #
POST /api/v3/accounts/{account_id}/projects/{project_id}/integrations/lineage/{id}/selections Update lineage integration selections #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dbtlabs:dbtlabs-lineage-integrations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dbtlabs-lineage-integrations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: dbt Cloud API v3 Lineage Integrations API
  version: 3.0.0
  description: '# How to use this API


    The dbt Cloud API v3 contains endpoints for programmatic administration of your dbt Cloud account.

    With it, you can replicate resources across projects, accounts, and environments, or standardize project

    creation for business teams. For endpoints related to jobs and runs, refer to the

    Discovery API or dbt Cloud API v2.


    The API docs are generated from an openapi spec defined in the

    dbt-cloud-openapi-spec

    repository. If you find issues in these docs or have questions about using the dbt Cloud

    API, please open an issue in the dbt-cloud-openapi-spec repo or contact support@getdbt.com.


    ## Authentication


    To authenticate an application with the dbt Cloud API, navigate to the

    Account Settings page and go to Personal Tokens from the left sidebar. Create one if you don''t have one already.

    If you cannot access this page, confirm that your dbt Cloud account has access to the API,

    and that you are using the hosted version of dbt Cloud. If dbt Cloud is running inside of a VPC

    in an Enterprise account, contact your account manager for help finding your account-scoped Personal Access Token.


    Once you''ve found your Personal Access Token (PAT) for your account, use it in the Authorization header of requests to the dbt Cloud API.

    Be sure to include the `Token` prefix in the Authorization header, or the request will fail with a

    "401 Unauthorized" error.


    *Note: `Bearer` can be used in place of `Token` in the Authorization header. Both syntaxes are equivalent.*


    **Headers**

    ```

    Accept: application/json

    Authorization: Token

    ```


    ## Pagination


    All top-level API resources support bulk fetches using the "list" or `GET` API methods. These API methods accept `limit` and `offset` query parameters that you can use together to paginate results and return a subset of those results.


    * Offset: Specifies how many records to skip. Can be an integer 0 and higher.

    * Limit: Specifies the maximum records you want to retrieve in a single request. Can be an integer up to 100. This limit makes responses easier to handle for servers and people.


    Endpoints that support pagination include some useful extra information about the pagination state. For example:


    ```json

    {

    data: [...],

    extra: {

    // How the results were filtered

    filters: {...},

    // The order of the results

    order_by: "id",

    // The pagination state

    pagination: {

    // The number of records returned in this response

    count: 5,

    // The total number of available records

    total_count: 10,

    }


    }

    }

    ````


    ## Example request


    The following example uses the list projects endpoint to list the projects that your token is authorized to access.

    This request skips the first 10 projects and lists the next 10 projects.

    Be sure to replace `` in the Authorization header with your actual API token and `` with your actual account ID.


    ```bash

    curl --request GET \

    --url ''https://cloud.getdbt.com/api/v3/accounts//projects/?limit=10&offset=5'' \

    --header ''Content-Type: application/json'' \

    --header ''Authorization: Token ''

    ```'
  termsOfService: https://www.getdbt.com/terms-of-service
  contact:
    email: support@getdbt.com
servers:
- url: https://cloud.getdbt.com/
  description: Production (US)
- url: https://{account_prefix}.us1.dbt.com/
  description: Production (US)
  variables:
    account_prefix:
      default: ab123
      description: Your unique account prefix. Can be found on your account settings page.
- url: https://emea.dbt.com/
  description: Production (Europe)
- url: https://au.dbt.com/
  description: Production (AU)
tags:
- name: Lineage Integrations
paths:
  /api/v3/accounts/{account_id}/projects/{project_id}/integrations/lineage/:
    get:
      operationId: ListLineageIntegrations
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: query
        name: include_related
        schema:
          type: string
        description: Comma-separated list of related objects to include in the response.
      - in: path
        name: project_id
        schema:
          type: integer
          format: int64
        required: true
      tags:
      - Lineage Integrations
      security:
      - BearerAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListLineageIntegrationResponse'
          description: ''
      summary: List lineage integrations
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: List Lineage Integrations
    post:
      operationId: CreateLineageIntegration
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: path
        name: project_id
        schema:
          type: integer
          format: int64
        required: true
      tags:
      - Lineage Integrations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostLineageIntegrationRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PostLineageIntegrationRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PostLineageIntegrationRequest'
        required: true
      security:
      - BearerAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DetailLineageIntegrationResponse'
          description: ''
      summary: Create lineage integration
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: Create Lineage Integration
  /api/v3/accounts/{account_id}/projects/{project_id}/integrations/lineage/{id}/:
    get:
      operationId: GetLineageIntegration
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: path
        name: id
        schema:
          type: integer
          format: int64
        required: true
      - in: query
        name: include_related
        schema:
          type: string
        description: Comma-separated list of related objects to include in the response.
      - in: path
        name: project_id
        schema:
          type: integer
          format: int64
        required: true
      tags:
      - Lineage Integrations
      security:
      - BearerAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DetailLineageIntegrationResponse'
          description: ''
      summary: Get lineage integration
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: Get Lineage Integration
    patch:
      operationId: UpdateLineageIntegration
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: path
        name: id
        schema:
          type: integer
          format: int64
        required: true
      - in: path
        name: project_id
        schema:
          type: integer
          format: int64
        required: true
      tags:
      - Lineage Integrations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchLineageIntegrationRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchLineageIntegrationRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchLineageIntegrationRequest'
      security:
      - BearerAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DetailLineageIntegrationResponse'
          description: ''
      summary: Update lineage integration
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: Update Lineage Integration
    delete:
      operationId: DeleteLineageIntegration
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: path
        name: id
        schema:
          type: integer
          format: int64
        required: true
      - in: path
        name: project_id
        schema:
          type: integer
          format: int64
        required: true
      tags:
      - Lineage Integrations
      security:
      - BearerAuthentication: []
      responses:
        '204':
          description: No response body
      summary: Delete lineage integration
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: Delete Lineage Integration
  /api/v3/accounts/{account_id}/projects/{project_id}/integrations/lineage/{id}/collections/:
    get:
      operationId: ListCollectionsFromBITool
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: query
        name: collection_id
        schema:
          type: string
        description: A subfolder in the collection
      - in: path
        name: id
        schema:
          type: integer
          format: int64
        required: true
      - in: query
        name: include_related
        schema:
          type: string
        description: Comma-separated list of related objects to include in the response.
      - in: path
        name: project_id
        schema:
          type: integer
          format: int64
        required: true
      tags:
      - Lineage Integrations
      security:
      - BearerAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListLineageIntegrationCollectionResponse'
          description: ''
      summary: List collections from BI tool
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: List collections from BI tool
  /api/v3/accounts/{account_id}/projects/{project_id}/integrations/lineage/{id}/collections/{collection_id}/:
    get:
      operationId: ListCollectionsFromBITool_2
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: path
        name: collection_id
        schema:
          type: string
        required: true
      - in: path
        name: id
        schema:
          type: integer
          format: int64
        required: true
      - in: query
        name: include_related
        schema:
          type: string
        description: Comma-separated list of related objects to include in the response.
      - in: path
        name: project_id
        schema:
          type: integer
          format: int64
        required: true
      tags:
      - Lineage Integrations
      security:
      - BearerAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListLineageIntegrationCollectionResponse'
          description: ''
      summary: List collections from BI tool 2
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: List collections from BI tool_2
  /api/v3/accounts/{account_id}/projects/{project_id}/integrations/lineage/{id}/selections:
    post:
      operationId: UpdateLineageIntegrationSelections
      parameters:
      - in: path
        name: account_id
        schema:
          type: integer
          format: int64
        required: true
      - in: path
        name: id
        schema:
          type: integer
          format: int64
        required: true
      - in: path
        name: project_id
        schema:
          type: integer
          format: int64
        required: true
      tags:
      - Lineage Integrations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostLineageIntegrationWatchSelectionRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PostLineageIntegrationWatchSelectionRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PostLineageIntegrationWatchSelectionRequest'
      security:
      - BearerAuthentication: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetLineageIntegrationWatchSelectionResponse'
          description: ''
      summary: Update lineage integration selections
      x-summary-source: derived
      x-operation-id-source: normalized
      x-operation-id-original: Update Lineage Integration Selections
components:
  schemas:
    V3ResponseExtraData:
      title: V3ResponseExtraData
      type: object
      properties:
        filters:
          $ref: '#/components/schemas/V3RequestParams'
        order_by:
          title: Order By
          anyOf:
          - type: string
          - type: array
            items:
              type: string
        pagination:
          $ref: '#/components/schemas/V3ResponsePagination'
      required:
      - pagination
    ListLineageIntegrationCollectionResponse:
      title: ListLineageIntegrationCollectionResponse
      type: object
      properties:
        status:
          $ref: '#/components/schemas/Status'
        data:
          title: Data
          type: array
          items:
            $ref: '#/components/schemas/LineageIntegrationCollection'
        extra:
          $ref: '#/components/schemas/V3ResponseExtraData'
        error_code:
          title: Error Code
          type: integer
      required:
      - data
      - extra
    PostLineageIntegrationWatchSelectionRequest:
      title: PostLineageIntegrationWatchSelection
      description: 'Base class for all request payloads.

        It is expected that each endpoint extends this class to define its own payload format'
      type: object
      properties:
        to_add:
          title: To Add
          description: Collections to start watching
          type: array
          items:
            $ref: '#/components/schemas/WatchSelectionItem'
        to_remove:
          title: To Remove
          description: Identifiers of collections to stop watching
          type: array
          items:
            type: string
      additionalProperties: false
    V3RequestParams:
      title: V3RequestParams
      description: 'Base class for all URL request parameters.

        It is expected that each endpoint extends this class to define its own parameters format'
      type: object
      properties: {}
    V3ResponsePagination:
      title: V3ResponsePagination
      type: object
      properties:
        count:
          title: Count
          type: integer
        total_count:
          title: Total Count
          type: integer
      required:
      - count
      - total_count
    WatchSelectionItem:
      title: WatchSelectionItem
      type: object
      properties:
        identifier:
          title: Identifier
          type: string
        name:
          title: Name
          type: string
        type:
          $ref: '#/components/schemas/WatchSelectionType'
        watching:
          title: Watching
          type: boolean
      required:
      - identifier
      - name
      - type
    LineageIntegration:
      title: LineageIntegration
      type: object
      properties:
        id:
          title: Id
          description: The integration's ID
          format: int64
          type: integer
        created_at:
          title: Created At
          type: string
          format: date-time
        updated_at:
          title: Updated At
          type: string
          format: date-time
        account_id:
          title: Account Id
          description: The account the integration is associated with
          format: int64
          type: integer
        project_id:
          title: Project Id
          description: The project the integration is associated with
          format: int64
          type: integer
        name:
          title: Name
          description: The name of the integration
          type: string
      required:
      - id
      - created_at
      - updated_at
      - account_id
      - project_id
      - name
    PatchLineageIntegrationRequest:
      title: PatchLineageIntegration
      description: 'Base class for all request payloads.

        It is expected that each endpoint extends this class to define its own payload format'
      type: object
      properties:
        name:
          description: The name of the integration
          allOf:
          - $ref: '#/components/schemas/LineageIntegrationType'
        account_id:
          title: Account Id
          description: The account the integration is associated with
          format: int64
          type: integer
        project_id:
          title: Project Id
          description: The project the integration is associated with
          format: int64
          type: integer
        config:
          title: Config
          description: The integration configuration for this type of integration
          allOf:
          - $ref: '#/components/schemas/OptionalLineageIntegrationConfigSchema'
      additionalProperties: false
    LineageIntegrationType:
      title: LineageIntegrationType
      description: An enumeration.
      enum:
      - tableau
      - powerbi
      type: string
    LineageIntegrationCollection:
      title: LineageIntegrationCollection
      type: object
      properties:
        collections:
          title: Collections
          description: List of collections
          type: array
          items:
            $ref: '#/components/schemas/WatchSelectionItem'
      required:
      - collections
    DetailLineageIntegrationResponse:
      title: DetailLineageIntegrationResponse
      type: object
      properties:
        status:
          $ref: '#/components/schemas/Status'
        data:
          $ref: '#/components/schemas/LineageIntegration'
        extra:
          title: Extra
          type: object
        error_code:
          title: Error Code
          type: integer
      required:
      - data
    PostLineageIntegrationRequest:
      title: PostLineageIntegration
      description: 'Base class for all request payloads.

        It is expected that each endpoint extends this class to define its own payload format'
      type: object
      properties:
        name:
          description: The name of the integration
          allOf:
          - $ref: '#/components/schemas/LineageIntegrationType'
        account_id:
          title: Account Id
          description: The account the integration is associated with
          format: int64
          type: integer
        project_id:
          title: Project Id
          description: The project the integration is associated with
          format: int64
          type: integer
        config:
          title: Config
          description: The integration configuration for this type of integration
          allOf:
          - $ref: '#/components/schemas/LineageIntegrationConfigSchema'
      required:
      - name
      - account_id
      additionalProperties: false
    LineageIntegrationConfigSchema:
      title: LineageIntegrationConfigSchema
      type: object
      properties: {}
    Status:
      title: Status
      type: object
      properties:
        code:
          title: Code
          type: integer
        is_success:
          title: Is Success
          type: boolean
        user_message:
          title: User Message
          type: string
        developer_message:
          title: Developer Message
          default: ''
          type: string
    GetLineageIntegrationWatchSelectionResponse:
      title: GetLineageIntegrationWatchSelectionResponse
      type: object
      properties:
        added:
          title: Added
          description: Number of collections additionally being watched
          type: integer
        removed:
          title: Removed
          description: Number of collections no longer being watched
          type: integer
      required:
      - added
      - removed
    OptionalLineageIntegrationConfigSchema:
      title: OptionalLineageIntegrationConfigSchema
      type: object
      properties: {}
    ListLineageIntegrationResponse:
      title: ListLineageIntegrationResponse
      type: object
      properties:
        status:
          $ref: '#/components/schemas/Status'
        data:
          title: Data
          type: array
          items:
            $ref: '#/components/schemas/LineageIntegration'
        extra:
          $ref: '#/components/schemas/V3ResponseExtraData'
        error_code:
          title: Error Code
          type: integer
      required:
      - data
      - extra
    WatchSelectionType:
      title: WatchSelectionType
      description: An enumeration.
      enum:
      - folder
      - dashboard
      type: string
  securitySchemes:
    BearerAuthentication:
      type: http
      scheme: bearer
      bearerFormat: Bearer