Use the Microsoft Graph API to get change notifications

Namespace: microsoft.graph

The Microsoft Graph REST API uses a webhook mechanism to deliver change notifications to clients. A client is a web service that configures its own URL to receive notifications. Client apps use notifications to update their state upon changes. For more details, including how to subscribe to and handle incoming notifications, see Set up notifications for changes in user data.

Using the Microsoft Graph API, an app can subscribe to changes on the following resources:

Resource Supported resource paths Resource data can be included in notifications
Cloud printing printer Changes when a print job is ready to be downloaded (JobFetchable event):
Cloud printing printTaskDefinition Changes when there is a valid job in the queue (JobStarted event) :
Outlook message Changes to all messages in a user's mailbox:
Changes to messages in a user's Inbox:
Outlook event Changes to all events in a user's mailbox:
Outlook personal contact Changes to all personal contacts in a user's mailbox:
user Changes to all users:
Changes to a specific user:
group Changes to all groups:
Changes to a specific group:
Changes to owners of a specific group:
Changes to members of a specific group:
Microsoft 365 group conversation Changes to a group's conversations:
driveItem on OneDrive (personal) Changes to content within the hierarchy of any folder:
driveItem on OneDrive for Business Changes to content within the hierarchy of the root folder:
list under a SharePoint site Changes to content within the list:
Security alert Changes to a specific alert:
Changes to filtered alerts:
Teams callRecord Changes to all call records: /communications/callRecords No
Teams chatMessage Changes to chat messages in all channels in all teams:
Changes to chat messages in a specific channel:
Changes to chat messages in all chats:
Changes to chat messages in a specific chat:

Note: Any resource path that begins with /users/{id} can also accept /me to reference the signed-in user.


In general, subscription operations require read permission to the resource. For example, to get notifications for messages, your app needs the Mail.Read permission. The create subscription article lists permissions needed for each resource type. The following table lists the types of permissions your app can request to use webhooks for specific resource types.

Permission type Supported resource types
Delegated - work or school account alert, contact, conversation, driveItem, list, event, group, message, user
Delegated - personal Microsoft account contact, driveItem, list, event, message
Application alert, contact, list, driveItem, event, group, message, user, callRecord, chatMessage, printer, printTaskDefinition

See also