Microsoft Azure Lineage API

The Lineage API from Microsoft Azure, for lineage.

GitHub OpenAPI
Business capability
Data Governance Management BC-610.10

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /lineage/{guid}/next Page through lineage of an entity · Microsoft Azure Get Lineage Guid Next #
Ask an LLM
“Can I get the next page of upstream or downstream lineage for a data asset?”
“Is lineage paging controlled by offset and limit?”
Tell an agent
Get the next page of {direction} lineage for entity {guid}.
Page lineage for entity {guid} in direction {direction} starting at offset {offset}.
GET /atlas/v2/lineage/{guid} Get the lineage graph of an entity by GUID · Microsoft Azure Get Atlas Lineage Guid #
Ask an LLM
“What does the lineage graph look like for a data asset in Purview?”
“Can I control how many hops and how wide the lineage graph goes?”
Tell an agent
Get the lineage graph for entity {guid} in direction {direction}.
Show {direction} lineage for entity {guid} up to {depth} hops.
GET /lineage/{guid}/next/ Page through lineage including derived lineage · Microsoft Azure Get Lineage Guid Next #
Ask an LLM
“Can I page lineage for an entity and include derived lineage in the results?”
“Is there a lineage paging call that supports the getDerivedLineage flag?”
Tell an agent
Get the next page of {direction} lineage for entity {guid} with derived lineage {getDerivedLineage}.
Page derived lineage for entity {guid} in direction {direction}, limit {limit}.
GET /atlas/v2/lineage/uniqueAttribute/type/{typeName} Get lineage of an entity by type and unique attribute · Microsoft Azure Get Atlas Lineage Uniqueattribute Type Typename #
Ask an LLM
“Can I fetch lineage for an entity when I only know its type and qualified name?”
“Which call returns lineage by unique attribute instead of GUID?”
Tell an agent
Get {direction} lineage for the {typeName} entity with qualified name {qualifiedName}.
Show lineage for type {typeName} identified by unique attribute {qualifiedName}, direction {direction}.

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/microsoft-azure:microsoft-azure-lineage-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

microsoft-azure-lineage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure Analytics Purview Data Map Lineage API
  version: '2023-09-01'
  description: 'Purview Data Map Service is a fully managed cloud service whose users can

    discover the data sources they need and understand the data sources they find.

    At the same time, Data Map helps organizations get more value from their

    existing investments. This spec defines REST API of Purview Data Map Service.'
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
security:
- OAuth2Auth:
  - https://purview.azure.net/.default
tags:
- name: Lineage
paths:
  /lineage/{guid}/next:
    get:
      operationId: microsoftAzureLineageGetnextpage
      description: Return immediate next page lineage info about entity with pagination
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - name: guid
        in: path
        description: The globally unique identifier of the entity.
        required: true
        schema:
          type: string
      - name: direction
        in: query
        description: The direction of the lineage, which could be INPUT, OUTPUT or BOTH.
        required: true
        x-ms-enum:
          name: LineageDirection
          modelAsString: true
          values:
          - name: Input
            value: INPUT
            description: input
          - name: Output
            value: OUTPUT
            description: output
          - name: Both
            value: BOTH
            description: both
        schema:
          type: string
          enum:
          - INPUT
          - OUTPUT
          - BOTH
      - name: offset
        in: query
        description: The offset for pagination purpose.
        required: false
        schema:
          type: integer
          format: int32
      - name: limit
        in: query
        description: The page size - by default there is no paging.
        required: false
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AtlasLineageInfo'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AtlasErrorResponse'
      x-ms-examples:
        Lineage_GetNextPage:
          $ref: ./examples/Lineage_GetNextPage.json
      summary: Microsoft Azure Get Lineage Guid Next
      tags:
      - Lineage
  /atlas/v2/lineage/{guid}:
    get:
      tags:
      - Lineage
      description: Get lineage info of the entity specified by GUID.
      operationId: microsoftAzureLineageGetlineagegraph
      x-ms-examples:
        Lineage_GetLineageGraph:
          $ref: ./examples/Lineage_GetLineageGraph.json
      parameters:
      - $ref: '#/components/parameters/guid'
      - $ref: '#/components/parameters/depth'
      - $ref: '#/components/parameters/width'
      - $ref: '#/components/parameters/direction'
      - $ref: '#/components/parameters/includeParent'
      - $ref: '#/components/parameters/getDerivedLineage'
      responses:
        '200':
          description: OK. If the request is valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AtlasLineageInfo'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Get Atlas Lineage Guid
  /lineage/{guid}/next/:
    get:
      tags:
      - Lineage
      description: Return immediate next page lineage info about entity with pagination
      operationId: microsoftAzureLineageNextpagelineage
      x-ms-examples:
        Lineage_NextPageLineage:
          $ref: ./examples/Lineage_NextPageLineage.json
      parameters:
      - $ref: '#/components/parameters/guid'
      - $ref: '#/components/parameters/direction'
      - $ref: '#/components/parameters/getDerivedLineage'
      - $ref: '#/components/parameters/offset'
      - $ref: '#/components/parameters/limit'
      - $ref: '#/components/parameters/purviewAPIVersion'
      responses:
        '200':
          description: OK. If the input is valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AtlasLineageInfo'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Get Lineage Guid Next
  /atlas/v2/lineage/uniqueAttribute/type/{typeName}:
    get:
      tags:
      - Lineage
      description: 'Returns lineage info about entity.


        In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format


        attr:[attrName]=[attrValue]


        NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName.

        The REST request would look something like this:

        GET /v2/lineage/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.'
      operationId: microsoftAzureLineageGetlineagebyuniqueattribute
      x-ms-examples:
        Lineage_GetLineageByUniqueAttribute:
          $ref: ./examples/Lineage_GetLineageByUniqueAttribute.json
      parameters:
      - $ref: '#/components/parameters/typeName'
      - $ref: '#/components/parameters/depth'
      - $ref: '#/components/parameters/width'
      - $ref: '#/components/parameters/direction'
      - $ref: '#/components/parameters/includeParent'
      - $ref: '#/components/parameters/getDerivedLineage'
      - name: attr:qualifiedName
        in: query
        description: The qualified name of the entity. (This is only an example. qualifiedName can be changed to other unique attributes)
        required: false
        schema:
          type: string
      responses:
        '200':
          description: If Lineage exists for the given entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AtlasLineageInfo'
                description: If Lineage exists for the given entity
              example:
                baseEntityGuid: '...'
                guidEntityMap:
                  property1:
                    classificationNames:
                    - '...'
                    - '...'
                    classifications:
                    - entityGuid: '...'
                      entityStatus: DELETED
                      validityPeriods:
                      - {}
                      - {}
                      attributes:
                        property1: {}
                        property2: {}
                      typeName: '...'
                    - entityGuid: '...'
                      entityStatus: PURGED
                      validityPeriods:
                      - {}
                      - {}
                      attributes:
                        property1: {}
                        property2: {}
                      typeName: '...'
                    displayText: '...'
                    guid: '...'
                    isIncomplete: true
                    labels:
                    - '...'
                    - '...'
                    meaningNames:
                    - '...'
                    - '...'
                    meanings:
                    - confidence: 12345
                      createdBy: '...'
                      description: '...'
                      displayText: '...'
                      expression: '...'
                      relationGuid: '...'
                      source: '...'
                      status: DISCOVERED
                      steward: '...'
                      termGuid: '...'
                    - confidence: 12345
                      createdBy: '...'
                      description: '...'
                      displayText: '...'
                      expression: '...'
                      relationGuid: '...'
                      source: '...'
                      status: DISCOVERED
                      steward: '...'
                      termGuid: '...'
                    status: PURGED
                    attributes:
                      property1: {}
                      property2: {}
                    typeName: '...'
                  property2:
                    classificationNames:
                    - '...'
                    - '...'
                    classifications:
                    - entityGuid: '...'
                      entityStatus: ACTIVE
                      validityPeriods:
                      - {}
                      - {}
                      attributes:
                        property1: {}
                        property2: {}
                      typeName: '...'
                    - entityGuid: '...'
                      entityStatus: ACTIVE
                      validityPeriods:
                      - {}
                      - {}
                      attributes:
                        property1: {}
                        property2: {}
                      typeName: '...'
                    displayText: '...'
                    guid: '...'
                    isIncomplete: true
                    labels:
                    - '...'
                    - '...'
                    meaningNames:
                    - '...'
                    - '...'
                    meanings:
                    - confidence: 12345
                      createdBy: '...'
                      description: '...'
                      displayText: '...'
                      expression: '...'
                      relationGuid: '...'
                      source: '...'
                      status: DEPRECATED
                      steward: '...'
                      termGuid: '...'
                    - confidence: 12345
                      createdBy: '...'
                      description: '...'
                      displayText: '...'
                      expression: '...'
                      relationGuid: '...'
                      source: '...'
                      status: OBSOLETE
                      steward: '...'
                      termGuid: '...'
                    status: ACTIVE
                    attributes:
                      property1: {}
                      property2: {}
                    typeName: '...'
                lineageDepth: 12345
                lineageDirection: BOTH
                relations:
                - fromEntityId: '...'
                  relationshipId: '...'
                  toEntityId: '...'
                - fromEntityId: '...'
                  relationshipId: '...'
                  toEntityId: '...'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Get Atlas Lineage Uniqueattribute Type Typename
components:
  schemas:
    AtlasTermAssignmentStatus:
      type: string
      description: Status for term assignment
      enum:
      - DISCOVERED
      - PROPOSED
      - IMPORTED
      - VALIDATED
      - DEPRECATED
      - OBSOLETE
      - OTHER
      x-ms-enum:
        name: AtlasTermAssignmentStatus
        modelAsString: true
        values:
        - name: Discovered
          value: DISCOVERED
          description: The status is discovered.
        - name: Proposed
          value: PROPOSED
          description: The status is proposed.
        - name: Imported
          value: IMPORTED
          description: The status is imported.
        - name: Validated
          value: VALIDATED
          description: The status is validated.
        - name: Deprecated
          value: DEPRECATED
          description: The status is deprecated.
        - name: Obsolete
          value: OBSOLETE
          description: The status is obsolete.
        - name: Other
          value: OTHER
          description: Other status.
    EntityStatus:
      type: string
      description: Status - can be active or deleted
      enum:
      - ACTIVE
      - DELETED
      x-ms-enum:
        name: EntityStatus
        modelAsString: true
        values:
        - name: Active
          value: ACTIVE
          description: The status is active.
        - name: Deleted
          value: DELETED
          description: The status is deleted.
    ParentRelation:
      type: object
      description: The lineage parents relation with GUID of the parent entity and to child entity.
      properties:
        childEntityId:
          type: string
          description: The GUID of child entity.
        relationshipId:
          type: string
          description: The GUID of relationship.
        parentEntityId:
          type: string
          description: The GUID of parent entity.
    TimeBoundary:
      type: object
      description: Captures time-boundary details
      properties:
        endTime:
          type: string
          description: The end of the time boundary.
        startTime:
          type: string
          description: The start of the time boundary.
        timeZone:
          type: string
          description: The timezone of the time boundary.
    AtlasClassification:
      type: object
      description: 'An instance of a classification; it doesn''t have an identity, this object

        exists only when associated with an entity.'
      properties:
        attributes:
          type: object
          description: The attributes of the struct.
          additionalProperties: {}
        typeName:
          type: string
          description: The name of the type.
        lastModifiedTS:
          type: string
          description: ETag for concurrency control.
        entityGuid:
          type: string
          description: The GUID of the entity.
        entityStatus:
          $ref: '#/components/schemas/EntityStatus'
          description: 'Status of the entity - can be active or deleted. Deleted entities are not

            removed.'
        removePropagationsOnEntityDelete:
          type: boolean
          description: Determines if propagations will be removed on entity deletion.
        validityPeriods:
          type: array
          description: An array of time boundaries indicating validity periods.
          items:
            $ref: '#/components/schemas/TimeBoundary'
          x-ms-identifiers: []
    AtlasLineageInfo:
      type: object
      description: The lineage information.
      properties:
        baseEntityGuid:
          type: string
          description: The GUID of the base entity.
        guidEntityMap:
          type: object
          description: The GUID entity map.
          additionalProperties:
            $ref: '#/components/schemas/AtlasEntityHeader'
        widthCounts:
          type: object
          description: The entity count in specific direction.
          additionalProperties:
            additionalProperties: {}
            type: object
        lineageDepth:
          type: integer
          format: int32
          description: The depth of lineage.
        lineageWidth:
          type: integer
          format: int32
          description: The width of lineage.
        childrenCount:
          type: integer
          format: int32
          description: The number of children node.
        lineageDirection:
          $ref: '#/components/schemas/LineageDirection'
          description: The enum of lineage direction.
        parentRelations:
          type: array
          description: An array of parentRelations relations.
          items:
            $ref: '#/components/schemas/ParentRelation'
          x-ms-identifiers: []
        relations:
          type: array
          description: An array of lineage relations.
          items:
            $ref: '#/components/schemas/LineageRelation'
          x-ms-identifiers: []
    AtlasTermAssignmentHeader:
      type: object
      description: The header for term assignment.
      properties:
        confidence:
          type: integer
          format: int32
          description: The confidence of the term assignment.
        createdBy:
          type: string
          description: The user who created the record.
        description:
          type: string
          description: The description of the term assignment.
        displayText:
          type: string
          description: The display text.
        expression:
          type: string
          description: The expression of the term assignment.
        relationGuid:
          $ref: '#/components/schemas/Azure.Core.uuid'
          description: The GUID of the relationship.
        status:
          $ref: '#/components/schemas/AtlasTermAssignmentStatus'
          description: The status of terms assignment.
        steward:
          type: string
          description: The steward of the term.
        termGuid:
          $ref: '#/components/schemas/Azure.Core.uuid'
          description: The GUID of the term.
    AtlasErrorResponse:
      type: object
      description: An error response from the service
      properties:
        requestId:
          $ref: '#/components/schemas/Azure.Core.uuid'
          description: The request ID.
        errorCode:
          type: string
          description: The error code.
        errorMessage:
          type: string
          description: The error message.
    LineageDirection:
      type: string
      description: Lineage direction
      enum:
      - INPUT
      - OUTPUT
      - BOTH
      x-ms-enum:
        name: LineageDirection
        modelAsString: true
        values:
        - name: Input
          value: INPUT
          description: input
        - name: Output
          value: OUTPUT
          description: output
        - name: Both
          value: BOTH
          description: both
    Azure.Core.uuid:
      type: string
      format: uuid
      description: Universally Unique Identifier
    AtlasEntityHeader:
      type: object
      description: An instance of an entity - like hive_table, hive_database.
      properties:
        attributes:
          type: object
          description: The attributes of the struct.
          additionalProperties: {}
        typeName:
          type: string
          description: The name of the type.
        lastModifiedTS:
          type: string
          description: ETag for concurrency control.
        classificationNames:
          type: array
          description: An array of classification names.
          items:
            type: string
        classifications:
          type: array
          description: An array of classifications.
          items:
            $ref: '#/components/schemas/AtlasClassification'
          x-ms-identifiers: []
        displayText:
          type: string
          description: The display text.
        guid:
          type: string
          description: The GUID of the record.
        isIncomplete:
          type: boolean
          description: Whether it is a shell entity
        labels:
          type: array
          description: labels
          items:
            type: string
        meaningNames:
          type: array
          description: An array of meanings.
          items:
            type: string
        meanings:
          type: array
          description: An array of term assignment headers.
          items:
            $ref: '#/components/schemas/AtlasTermAssignmentHeader'
          x-ms-identifiers: []
        status:
          $ref: '#/components/schemas/EntityStatus'
          description: 'Status of the entity - can be active or deleted. Deleted entities are not

            removed.'
    LineageRelation:
      type: object
      description: The lineage relation with GUID of the from and to entity.
      properties:
        fromEntityId:
          type: string
          description: The GUID of from-entity.
        relationshipId:
          type: string
          description: The GUID of relationship.
        toEntityId:
          type: string
          description: The GUID of to-entity.
    AtlasLineageInfoExtraProperties:
      type: object
      description: The lineage direction
      additionalProperties:
        description: The entity guid.
    AtlasStruct:
      type: object
      properties:
        attributes:
          type: object
          description: The attributes of the struct.
          additionalProperties: {}
        typeName:
          type: string
          description: The name of the type.
        lastModifiedTS:
          $ref: '#/components/schemas/LastModifiedTS'
      title: AtlasStruct
      description: Captures details of struct contents. Not instantiated directly, used only via AtlasEntity, AtlasClassification.
    ErrorResponse:
      description: An error response from the service
      type: object
      properties:
        requestId:
          type: string
          description: The request ID.
        errorCode:
          type: string
          description: The error code.
        errorMessage:
          type: string
          description: The error message.
    Status:
      type: string
      title: Status
      description: Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store.
      enum:
      - ACTIVE
      - DELETED
      x-ms-enum:
        name: Status
        modelAsString: true
    LastModifiedTS:
      type: string
      title: lastModifiedTS
      description: ETag for concurrency control.
  parameters:
    Azure.Core.Foundations.ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      x-ms-parameter-location: method
      x-ms-client-name: apiVersion
      schema:
        type: string
        minLength: 1
    getDerivedLineage:
      name: getDerivedLineage
      description: True to include derived lineage in the response
      in: query
      required: false
      x-ms-parameter-location: method
      schema:
        type: boolean
    guid:
      name: guid
      description: The globally unique identifier of the entity.
      in: path
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 4096
        minLength: 1
    direction:
      name: direction
      description: The direction of the lineage, which could be INPUT, OUTPUT or BOTH.
      in: query
      required: true
      x-ms-enum:
        name: direction
        modelAsString: true
      x-ms-parameter-location: method
      schema:
        type: string
        enum:
        - BOTH
        - INPUT
        - OUTPUT
    limit:
      name: limit
      description: The page size - by default there is no paging.
      in: query
      required: false
      x-ms-parameter-location: method
      schema:
        type: integer
        format: int32
    includeParent:
      name: includeParent
      description: True to include the parent chain in the response.
      in: query
      required: false
      x-ms-parameter-location: method
      schema:
        type: boolean
    typeName:
      name: typeName
      description: The name of the type.
      in: path
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 4096
        minLength: 1
    offset:
      name: offset
      description: The offset for pagination purpose.
      in: query
      required: false
      x-ms-parameter-location: method
      schema:
        type: integer
        format: int32
    width:
      name: width
      description: The number of max expanding width in lineage.
      in: query
      required: false
      x-ms-parameter-location: method
      schema:
        type: integer
        format: int32
        default: 10
    depth:
      name: depth
      description: The number of hops for lineage.
      in: query
      required: false
      x-ms-parameter-location: method
      schema:
        type: integer
        format: int32
        default: 3
    purviewAPIVersion:
      name: api-version
      description: Version of Purview APIs
      in: query
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
  securitySchemes:
    OAuth2Auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            https://purview.azure.net/.default: ''
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.
x-ms-parameterized-host:
  hostTemplate: '{endpoint}/datamap/api'
  useSchemePrefix: false
  parameters:
  - name: endpoint
    in: path
    required: true
    type: string