Microsoft Purview Lineage API

Operations for tracking data lineage

GitHub OpenAPI

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 Lineage get next page #
GET /api/atlas/v2/lineage/{guid} Get lineage for an entity · Microsoft Purview Get lineage by GUID #
Ask an LLM
“Where does the data in a given asset come from and where does it flow?”
“Can I limit how many hops of lineage are returned?”
Tell an agent
Get {direction} lineage for entity {guid}.
Show lineage of asset {guid} in direction {direction} to depth {depth}.
GET /api/atlas/v2/lineage/{guid}/next Page through lineage for an entity · Microsoft Purview Get next page of lineage #
Ask an LLM
“How do I fetch the next page of lineage when an asset has many neighbours?”
“Can lineage results be paged with offset and limit?”
Tell an agent
Get the next page of {direction} lineage for entity {guid} from offset {offset}.
Fetch {limit} more lineage nodes for {guid} going {direction}.
GET /api/atlas/v2/lineage/uniqueAttribute/type/{typeName} Get lineage by type and unique attribute · Microsoft Purview Get lineage by unique attribute #
Ask an LLM
“Can I look up lineage using an asset's type and qualified name instead of its GUID?”
“Which call returns lineage when I only know the entity type and unique attribute?”
Tell an agent
Get {direction} lineage for the {type} entity identified by unique attribute.
Show lineage for type {type} in direction {direction} to depth {depth}.

Documentation

📖
Documentation
https://learn.microsoft.com/en-us/rest/api/purview/
📖
Authentication
https://learn.microsoft.com/en-us/purview/tutorial-using-rest-apis
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/data-gov-api-create-assets
📖
Authentication
https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/legacy/how-to-purview-custom-lineage-api-user-guide
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/legacy/tutorial-metadata-policy-collections-apis
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/purview/unified-catalog-api-overview
📖
Authentication
https://learn.microsoft.com/en-us/purview/data-gov-api-rest-data-plane
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/purview/unified-catalog-data-quality
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/security-ediscovery-apioverview?view=graph-rest-1.0
📖
Authentication
https://learn.microsoft.com/en-us/graph/security-ediscovery-appauthsetup
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/edisc-ref-api-guide
📖
Documentation
https://learn.microsoft.com/en-us/graph/security-information-protection-overview
📖
Documentation
https://learn.microsoft.com/en-us/graph/security-datasecurityandgovernance-overview
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/developer/use-the-api
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/security-recordsmanagement-overview?view=graph-rest-1.0

Specifications

Schemas & Data

Other Resources

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-purview:microsoft-purview-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-purview-lineage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 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
  description: Operations for tracking data lineage
paths:
  /lineage/{guid}/next:
    get:
      operationId: Lineage_GetNextPage
      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'
      tags:
      - Lineage
      summary: Lineage get next page
      x-summary-source: derived
  /api/atlas/v2/lineage/{guid}:
    get:
      operationId: getLineageByGuid
      summary: Microsoft Purview Get lineage by GUID
      description: Get lineage info of the entity specified by GUID.
      tags:
      - Lineage
      parameters:
      - name: guid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: direction
        in: query
        required: true
        description: The direction of lineage (INPUT, OUTPUT, BOTH)
        schema:
          type: string
          enum:
          - INPUT
          - OUTPUT
          - BOTH
      - name: depth
        in: query
        description: The number of hops for lineage
        schema:
          type: integer
          format: int32
          default: 3
      responses:
        '200':
          description: Lineage info retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AtlasLineageInfo'
        '401':
          description: Unauthorized
        '404':
          description: Entity not found
  /api/atlas/v2/lineage/{guid}/next:
    get:
      operationId: getLineageNextPage
      summary: Microsoft Purview Get next page of lineage
      description: Return immediate next page lineage info about entity with pagination.
      tags:
      - Lineage
      parameters:
      - name: guid
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: direction
        in: query
        required: true
        schema:
          type: string
          enum:
          - INPUT
          - OUTPUT
          - BOTH
      - name: offset
        in: query
        schema:
          type: integer
          format: int32
      - name: limit
        in: query
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Next page of lineage retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AtlasLineageInfo'
        '401':
          description: Unauthorized
  /api/atlas/v2/lineage/uniqueAttribute/type/{typeName}:
    get:
      operationId: lineageGetByUniqueAttribute
      summary: Microsoft Purview Get lineage by unique attribute
      description: Return lineage info about entity. In addition to the typeName path parameter, attribute key-value pair(s) can be provided.
      tags:
      - Lineage
      parameters:
      - name: typeName
        in: path
        required: true
        schema:
          type: string
      - name: api-version
        in: query
        required: true
        schema:
          type: string
          default: '2023-09-01'
      - name: direction
        in: query
        required: true
        schema:
          type: string
          enum:
          - INPUT
          - OUTPUT
          - BOTH
      - name: depth
        in: query
        schema:
          type: integer
          format: int32
          default: 3
      responses:
        '200':
          description: Lineage info retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AtlasLineageInfo'
        '401':
          description: Unauthorized
components:
  schemas:
    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.
    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.
    Azure.Core.uuid:
      type: string
      format: uuid
      description: Universally Unique Identifier
    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.
    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'
        relations:
          type: array
          description: An array of lineage relations.
          items:
            $ref: '#/components/schemas/LineageRelation'
    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
    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.
    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'
    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.
    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.
    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.
    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'
        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'
        status:
          $ref: '#/components/schemas/EntityStatus'
          description: 'Status of the entity - can be active or deleted. Deleted entities are not

            removed.'
  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
  securitySchemes:
    OAuth2Auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            https://purview.azure.net/.default: ''
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
    oauth2:
      type: oauth2
      description: Azure Active Directory OAuth2 authentication
      flows:
        clientCredentials:
          tokenUrl: https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token
          scopes:
            https://purview.azure.net/.default: Access Microsoft Purview
x-ms-parameterized-host:
  hostTemplate: '{endpoint}/datamap/api'
  useSchemePrefix: false
  parameters:
  - name: endpoint
    in: path
    required: true
    type: string
    format: uri
    x-ms-skip-url-encoding: true