An API that connects multiple Microsoft services, enabling data access and automation across platforms
Yes, the Microsoft Graph API sends a new “created” notification to the endpoint when an email is restored after deletion. This is because the Microsoft Graph API treats the restoration of a deleted email as a new creation event.
The changeType field in the subscription JSON you provided is set to “created”, which means the API will send notifications when new messages are created. When an email is restored, it’s considered as a new message, hence the “created” notification.
Please note that this behavior is by design and is a known issue when you use the change notification of the user calendar event (/users/{id}/events). Subscriptions to changes for user with changeType set to updated will also receive notifications of changeType: updated on user creation and user soft deletion.
I hope this clarifies your question. Let me know if you have any other questions!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".