Hi all,
Can you please help me on below topic.
I need to read mails from outlook through api calls.
I have tenant id, client id, secret id.
In my organization we are having 2019 studio only.
By using http request please let me know how to read mails send mails.
Thanks in advance.
Hi @PRAVEEN_VARMA
This would help you 
Thanks & Regards,
Nived N
Happy Automation !
Hi @NIVED_NAMBIAR,
I have gone through that post, used the client id secret id and end point getting response 200 but i’m unable to get the access token or else messages from mail box.
Actually i’m new to api calls
Could you please elaborate a little bit.
Thanks ®ards,
Praveen
Hi @PRAVEEN_VARMA
First you have to get autorization token, then you have to use autorization token in the api to retrive mails.
to retrive autorization token, use the following API
POST https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials
&client_id={client-id}
&client_secret={client-secret}
&scope=https://outlook.office.com/.default
It is a post request where you have to pass tenant id, client id, client secret and retrive autorization token and then use that autorization token in all your API to retrive outlook mail details
Hope this info helps you
Thanks & Regards,
Nived N