I'm planning to write a web service to automate some task for my Outlook.com email account. I want Outlook.com to send an HTTP request to my endpoint when an email arrives, so that I don't need to poll the server. Does Outlook.com provide such functionality?
Asked
Active
Viewed 1.4k times
3
-
Note: not sure whether this is on topic; if not, please suggest where to ask. I had a look at [Web App SE](https://webapps.stackexchange.com) but it seems to focus on *non-programming* use of web applications. – Franklin Yu Dec 13 '18 at 19:36
-
I don't think this is on topic, so I'll put this in comments. Does [Outlook Push Notifications REST API reference](https://learn.microsoft.com/en-us/previous-versions/office/office-365-api/api/version-2.0/notify-rest-operations) provide what you need? – dmulter Dec 13 '18 at 21:39
-
@dmulter Thank you. That seems to be exactly the API I was looking for. Do you know a site in Stack Exchange family suitable for this question? If there is such a site, I can move this question there, and you can get the credit. – Franklin Yu Dec 13 '18 at 21:52
-
Also that way we can help future Googler. – Franklin Yu Dec 13 '18 at 22:00
-
Seems no one is flagging it, so I'll move it to an answer. – dmulter Dec 14 '18 at 00:21
2 Answers
2
Outlook provides webhooks via what they call push notifications. You'll find details on this API in the Outlook Push Notifications REST API reference. The capability exists to receive events for a wide variety of resources, including email messages in Outlook.com.
You might also find some useful capabilities for notification of changes to messages with Use the Microsoft Graph API to get change notifications and Keeping messages and mail folders up to date in apps.

dmulter
- 2,608
- 3
- 15
- 24
-
2Maybe also mention their latest [Graph API](https://learn.microsoft.com/en-us/graph/outlook-organize-messages#keeping-messages-and-mail-folders-up-to-date-in-apps)? – Franklin Yu Dec 14 '18 at 01:38
-
https://stackoverflow.com/questions/56400945/trigger-an-external-api-call-in-outlook-replying-to-an-email-coming-from-a-speci can you please take a look at this – Ankita May 31 '19 at 21:27