Operation: Create; Exception: [Status Code: Unauthorized; Reason: ]

Gleb 0 Reputation points
2025-06-11T19:17:40.0133333+00:00

Hello. I encountered a problem when trying to create a functionality that will allow a user to subscribe to the Outlook email collection functionality. I am doing this functionality in a Nest JS application. I have successfully implemented the user authorization processes via Outlook, access token validation via the application webhook, but I get the error "Operation: Create; Exception: [Status Code: Unauthorized; Reason: ]" when making a POST request to https://graph.microsoft.com/beta/subscriptions. I have issued all the necessary accesses, such as Mail.Read, Mail.WriteRead and others, in Azure. What could be the problem?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,684 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.