Questions tagged [outlook-restapi]

The Outlook REST APIs include the Mail, Calendar, and Contacts APIs in Office 365.

Welcome to the outlook-restapi tag! Please use this tag to find answers, ask questions, and answer questions about using the Outlook REST APIs.

The Outlook REST APIs are comprised of three distinct APIs that provide access to users' data in Office 365:

  • Mail API: Used to manipulate mail and mail folders.
  • Calendar API: Used to manipulate events and calendars.
  • Contacts API: Used to manipulate contacts and contact folders.

Getting Started

Want to explore and play with the APIs? Check out the Office 365 OAuth Sandbox. You can quickly issue queries against your own data, or against a sandboxed environment.

The Outlook Dev Center has getting started guides in a number of different languages. Start from scratch and end with a working app that retrieves messages from the inbox.

Looking for code samples? Check out the Office Dev Center's Code Samples page. PHP, Node.js, Rails, and more!

Looking for more information, or just want to keep abreast of updates to the APIs? Follow the Outlook REST APIs team's blog.

966 questions
7
votes
1 answer

Getting Mailbox Aliases for Personal Accounts in Microsoft Graph API not working

I'm trying to get email aliases through Microsoft Graph: https://graph.microsoft.com/v1.0/me?$select=proxyAddresses This worked for an Office 365 account of mine(business account) but I'm not able to get the aliases for a personal account…
7
votes
1 answer

Can't access /outlook/masterCategories endpoint in Microsoft Graph's API

It seems any endpoints starting starting with /outlook return this error: GET https://graph.microsoft.com/beta/me/outlook/masterCategories { "error": { "code": "RequestBroker-ParseUri", "message": "Resource not found for the…
CodeOverload
  • 47,274
  • 54
  • 131
  • 219
7
votes
0 answers

Is it possible to access the address book with the Outlook REST API?

I know I can read contacts with the Office 365 API but I can't figure out if it's possible to fetch the contacts from the address book.
bbigras
  • 1,311
  • 2
  • 17
  • 32
7
votes
3 answers

How to access shared calendars from Office REST API?

This question has been asked several times and as per answers such as this it seems the API didn't support this then until recently as here which mentions that there are new scopes which allow accessing the shared calendars. But it still does not…
Starx
  • 77,474
  • 47
  • 185
  • 261
7
votes
2 answers

Outlook Mail REST API: send message with attachment

I'm trying to use next API method: https://msdn.microsoft.com/office/office365/APi/mail-rest-operations#SendMessages. Sending messages without attachments works just fine, but I can not understand how to send message with attachments. According to…
Anton Koval'
  • 4,863
  • 5
  • 31
  • 44
7
votes
2 answers

Access to other user's calendar in Office 365 API

I'm building a WPF-app that's doing a summary of several user's calendar in the organization. The Company is using Office 365 so I thought that the Office 365 API would be the best way to go. I've managed to access my own calendar, but I don't know…
MarcusMaker
  • 73
  • 1
  • 4
6
votes
1 answer

Microsoft Graph Batch API concurrent request reduction to 4 where as outlook had 200 concurrent Requests

We use Outlook Batch API to send multiple Outlook REST requests in a single HTTP batch request. In Outlook Batch API, we make 200 requests in the same batch HTTP request and all the concurrent requests succeed. Whereas if we do the same in graph…
6
votes
1 answer

How to embed Image inline in Email Body using Microsoft Graph

I am using a Function app to trigger a mail, using MS Graph API, the mail body text is getting triggered properly but facing issue in rendering the header and footer image shown in picture. How to solve this issue in the body level. Below are the…
6
votes
2 answers

Outlook rest api for on premises only setup

I am trying to compare the usage of EWS vs Outlook REST Apis for an application that needs to connect to an on-prem exchange server. From what I understand, Exchange 2016 onwards supports REST Apis which are leveraged by Graph APIs as well…
codeoverflow
  • 71
  • 1
  • 5
6
votes
1 answer

Outlook 365 Rest API - The audience claim value is invalid

I am working on a current project where we already using Identity Server to auth. Here we use the Access token to access the microsoft Graph API to get Meetings, profile pictures and other stuff. Now we want to make an integration to the new…
Kiksen
  • 1,559
  • 1
  • 18
  • 41
6
votes
1 answer

RESTAPINotEnabledForComponentSharedMailbox error

I have users that cannot use our services because Outlook REST API returns the following error code RESTAPINotEnabledForComponentSharedMailbox. It looks like their mailbox is not a shared mailbox. So what kind of mailbox is that? Can you tell me…
Benoit Patra
  • 4,355
  • 5
  • 30
  • 53
6
votes
1 answer

Obtain access token for both Microsoft Graph and individual service API endpoints (Outlook REST APIs etc.)

I spent some time playing around with Azure AD OAuth 2.0. An access token obtained with scope https://outlook.office.com/mail.read throws 401 Unauthorized when used with Microsoft Graph. Similarly, an access token obtained with scope…
Varun
  • 4,054
  • 6
  • 31
  • 54
6
votes
1 answer

Office 365 REST API calls from a .net console application

Please note that this question is not regarding generic REST service calling. Its about specific Office 365 REST service API. To be specific I need to utilize the 'Contact' API here:…
Rahatur
  • 3,147
  • 3
  • 33
  • 49
6
votes
2 answers

Office365 API - Admin accessing another users/room's calendar events

By hitting this request: https://outlook.office365.com/api/v1.0/users/room@email.com/events in a browser I can enter my admin username and password and get Calendar Events for that specific room. However when I try making this call from a native app…
Tinashe
  • 3,115
  • 3
  • 25
  • 23
5
votes
1 answer

Outlook API error Invalid OData type specified: Microsoft.OutlookServices.FileAttachment

We have a function set up to send emails via Outlook from our web app and it's been working great, but suddenly this morning my email inbox is flooded with errors from our system saying it couldn't send the email with outlook because of a bad…
user1770717
  • 309
  • 1
  • 12
1
2
3
64 65