restoutlookoutlook-api

Is there a way to get the Suggested Contacts through Outlook API?


I'm currently developing an app that fetches my contacts in my Microsoft account. The problem is, unlike Google, when I send or receive an email to/from a new contact, it isn't copied into My Contacts, so I can't get it through https://outlook.office.com/api/v2.0/me/contacts.

However, when I wrote a new email, it appears as a suggestion, so I guess it is stored somewhere else.

The question is: is there a way to access to my suggested contacts through the API to get their emails? And how?

Thank you 😊


Solution

  • This feature is only available in beta version for now, please see the following api:

    https://outlook.office.com/api/beta/me/contacts?$select=EmailAddresses,GivenName,Surname,DisplayName
    

    This api will return all the contacts that you have received an email from or sent an email to :)