Microsoft Purview Policy Events API

The PolicyEvents API from Microsoft Purview — 1 operation(s) for policyevents.

GitHub OpenAPI

Operations 1

GET /policy-events Policy events list #

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-policyevents-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-policyevents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Purview Distribution Service REST API Document Policy…
  description: Purview distribution service enables various Azure RPs to fetch the policies and attributes for data governance.
  version: '2023-01-01'
servers:
- url: /pds
security:
- azure_auth:
  - user_impersonation
tags:
- name: PolicyEvents
paths:
  /policy-events:
    get:
      tags:
      - PolicyEvents
      description: Get policy events for given scope.
      operationId: PolicyEvents_List
      parameters:
      - in: query
        name: scope
        description: Id for any resource managed by Purview.
        required: true
        schema:
          type: string
      - in: query
        name: syncToken
        description: This sync token represents the latest checkpoint for policies. Client need to pass this value while fetching subsequent delta changes.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyEventsResponseUpdated'
        '304':
          description: Not Modified
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      summary: Policy events list
      x-summary-source: derived
components:
  schemas:
    PolicyEventsResponseUpdated:
      description: Response model for policy delta fetch API.
      required:
      - syncToken
      type: object
      properties:
        syncToken:
          description: This sync token represents the latest checkpoint for policies. Client need to pass this value while fetching subsequent delta changes.
          minLength: 1
          type: string
        value:
          description: List of policy elements.
          type: array
          items:
            $ref: '#/components/schemas/PolicyElementEventModelUpdated'
    PolicyElementKind:
      description: Represents the kind of policy element.
      enum:
      - Policy
      - PolicySet
      - AttributeRule
      type: string
      x-ms-enum:
        name: PolicyElementKind
        modelAsString: true
    ErrorResponseModel:
      description: Default error response model.
      required:
      - error
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorModel'
    ErrorModel:
      description: Default error model.
      required:
      - code
      - message
      type: object
      properties:
        code:
          description: Error code.
          minLength: 1
          type: string
        message:
          description: Error message.
          minLength: 1
          type: string
        target:
          description: Error description.
          type: string
        details:
          description: Error details.
          type: array
          items:
            $ref: '#/components/schemas/ErrorModel'
    PolicyElementEventModelUpdated:
      description: Represents the policy element event model.
      required:
      - eventType
      - id
      - kind
      - updatedAt
      - version
      type: object
      properties:
        id:
          description: Id of the policy element.
          minLength: 1
          type: string
        scopes:
          description: List of scopes included in this policy.
          type: array
          items:
            type: string
        version:
          format: int64
          description: Current version of policy element. This is auto incremented with each change. Starts with 1.
          type: integer
        elementJson:
          description: Policy element serialized json payload.
          type: string
        kind:
          $ref: '#/components/schemas/PolicyElementKind'
        updatedAt:
          format: date-time
          description: Time at which this policy element was last updated.
          type: string
        eventType:
          description: 'Type of event. Format: <RP-Name>/<Resource-Type>/<Action>. For Example: Microsoft.Purview/PolicyElements/Delete.'
          minLength: 1
          type: string
  parameters:
    api-version:
      in: query
      name: api-version
      description: The api-version of the service.
      required: true
      x-ms-parameter-location: client
      schema:
        type: string
  securitySchemes:
    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}'
  useSchemePrefix: false
  parameters:
  - $ref: '#/components/parameters/endpoint'