Error 404 when trying to fetch mail messages

Brass Contributor

Hello Everyone,


I've created a C# Daemon console app for reading mails from my own mailbox. Here are the list of all permissions that I've included with admin consent:



I'm able to generate authorization token and make a successful GET request to the following endpoint:{ id | userPrincipalName }


But when I try to make a request to fetch messages using below endpoint, I get 404 Not Found error:{ id | userPrincipalName }/messages{ id | userPrincipalName }/mailfolders/inbox/messages


What could be the possible reason behind this issue?


I've referred this link for creating daemon app:


Thanks & Regards,


0 Replies