Synch dat from Microsoft Exchange trough HTTP request

gabr brac 21 Reputation points
2022-08-23T10:49:24.163+00:00

Hello i want to use the HTTP request like this one:
https://graph.microsoft.com/v1.0/me/contacts

But when i run this request, the output return me an 401 Access token is empty, and probably is for the authentication, so where i have to take this info?

link to query
https://developer.microsoft.com/en-us/graph/graph-explorer?request=me%2Fcontacts&method=GET&version=v1.0&GraphUrl=https://graph.microsoft.com

My goal is to send data from Microsoft exchange to webhook

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,448 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sheena-MSFT 1,731 Reputation points
    2022-08-23T11:45:30.57+00:00

    Hi gabrbrac-1130 ,

    To call this endpoint https://graph.microsoft.com/v1.0/me/contacts in Graph Explorer, please sign in with your microsoft user account. Give the permission contacts.Read from the tab modify permissions. Refer https://learn.microsoft.com/en-us/graph/api/user-list-contacts?view=graph-rest-1.0&tabs=http

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


  2. gabr brac 21 Reputation points
    2022-08-25T13:32:56.18+00:00

    @Sheena-MSFT can you help me?