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
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?