A community member has associated this post with a similar question:
How to fix MailboxNotEnabledForRESTAPI

Only moderators can edit this content.

We are developing an application that requires access to a mailbox enabled for the Outlook REST API

Dharmender Kumar(WL) 0 Reputation points
2024-04-18T12:30:32.99+00:00

We are developing an application that requires access to a mailbox enabled for the Outlook REST API. We need a developer preview account to test our app's functionality, especially for creating online meetings, booking the host and recipient's calendar and sending invitations. For now I try to access calendar or events api  i.e.  https://graph.microsoft.com/v1.0/me/calendarview https://graph.microsoft.com/v1.0/me/events then I get this issue:

{
  error:
    code:"MailboxNotEnabledForRESTAPI"
    message:"The mailbox is either inactive, soft-deleted, or is hosted on-premise.
}

I got to know that my mailbox has not yet been enabled for the Outlook REST API. Could you please provide instructions on how to remove this issue or on how to obtain such an account so that issue is resolved?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,616 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
4,896 questions
0 comments No comments
{count} votes