O365 · June 12, 2021 0

Microsoft APIs 101

Hi again,

If you are new to the MS online products here is some basics you should know:

So far there is an API for Office365, an API for Microsoft365 (called MS Graph API) and an API for AAD (called Azure v1 API).

its important you know the difference between Office 365 and Microsoft 365 , if not; the take a look here

In this article I am talking about Microsoft Graph API which is recently redirected from https://graph.microsoft.com/ to https://developer.microsoft.com/en-us/graph

My first advice would be to spend some time with the graph explorer.

Visit the Microsoft Graph explorer from the link https://developer.microsoft.com/en-us/graph/graph-explorer

then enter your credentials to login to the explorer

My next advice is make sure that the Endpoint you want to use is activated (consented)

click on the three dots sign and select “select permissions”

here you have a nice view to expand the Endpoints and activate what you need

the word “consented” should appear after you activate an Endpoint. In my case I have consented the Mail Endpoint

after that you can explore the Endpoints. In my case, I am exploring my Emails through the GET my mail

My next advice: if something went wrong feel free to check the permissions

I have previously wrote about that, check it out here

the steps are simple, copy the Access token

move to  the free Microsoft tool https://jwt.ms/

in my case, the decoded token shows the Mail related permissions I have assigned

Close Bitnami banner