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
35
votes
1 answer

When should I use Outlook REST API vs Microsoft Graph API?

I am working on an application that needs to retrieve and edit calendar events from Outlook.com and Office 365. I have seen there are 2 options: Outlook REST API Microsoft Graph API They seem to have pretty much the same interface. I saw that…
JeroenB
  • 451
  • 4
  • 10
27
votes
0 answers

Getting error code `ErrorIrresolvableConflict` responses when trying to create events on a calendar using Outlook REST API

In the last few days (starting on Oct 28, 2019), without any code change on our part, we've started seeing a significant amount of requests from our server to create events on a calendar (using this endpoint:…
lior
  • 537
  • 4
  • 13
23
votes
4 answers

OpenIdConnectProtocolValidationContext.Nonce was null

HI can someone please help imgetting below error when calling outlook rest api IDX21323: RequireNonce is '[PII is hidden by default. Set the 'ShowPII' flag in IdentityModelEventSource.cs to true to reveal it.]'.…
Vialli Fritz
  • 241
  • 1
  • 2
  • 4
16
votes
2 answers

Office365 API - Accessing another users/room's calendars

I'm attempting to build an application that will have access to all of an organization's calendars (users, rooms, etc). Currently my auth flow will sign in on behalf of a tenant user and make use of refresh tokens to access needed resources. As soon…
jstruzik
  • 1,440
  • 10
  • 19
15
votes
3 answers

Microsoft Graph - PopAuthenticatorInvalidSignature errors when patching to calendar events

We're seeing errors with the graph api when making a PATCH request to https://graph.microsoft.com/v1.0/me/calendars/$(CALENDAR_ID)/events/$(EVENT_ID). This is in an integration that has been in production for some time and we've never seen this…
Alexander Soto
  • 395
  • 2
  • 12
14
votes
2 answers

Read emails from exchange online (Office 365) through windows forms application

I am trying to read emails from my O365 mailbox through a windows forms application. I want my application to read emails from O365 mailbox using my username and password. Is it possible to access the O365 api without registering the application on…
Prasad De Silva
  • 836
  • 1
  • 12
  • 22
13
votes
1 answer

Sort Events by Start Date

I need to be able to get the events in both directions ASC/DESC using Microsoft Graph API. I'm trying the following API to achieve that: https://graph.microsoft.com/v1.0/me/events?$orderby=start However, when I perform the request I get the…
dvelopp
  • 4,095
  • 3
  • 31
  • 57
10
votes
2 answers

Office 365 REST API - Access meeting rooms calendars

Using the Office 365 API, we'd like to allow users to view meeting rooms calendars and reserve them for events according to their permissions within Office 365. I understand it's possible with an Admin consent using a service app, but this is not…
user2899845
  • 1,181
  • 9
  • 13
10
votes
1 answer

Office 365 REST API list resources (meeting rooms)

I have a question about Office365 REST API. Is there a way to obtain list of resources - meeting room calendars. I can only get meetings that will take place in room if I know meeting room…
user2011328
  • 307
  • 3
  • 10
9
votes
4 answers

c# how to get office 365 user photo using microsoft graph api

I want to be able to get all user's office365 photos within Azure Active directory. Right now I'm able to get the current user's email using graph SDK GraphServiceClient graphClient = SDKHelper.GetAuthenticatedClient(); public async Task
8
votes
2 answers

How to find recurrence exceptions through Microsoft Outlook Calendar Graph API

I'm currently using the Microsoft Graph API to sync calendar events to my local application. On my end, I don't care to save each individual occurrence in a series, but prefer instead to just save the series master and then extrapolate out the…
Bobby
  • 119
  • 11
8
votes
1 answer

Microsoft Graph API - 503 Service Unavailable

I'm working to integrate Microsoft Graph with a Rails web application. We're trying to send multiple email messages via Graph, but every now and then we get a 503 Service Unavailable with the following headers and body: Response headers: { …
Jack
  • 441
  • 3
  • 13
8
votes
2 answers

Does Exchange Server (in-house) suppport REST API?

This document that applies to Exchange Server suggests that the bulk of API / Web Services is SOAP based: https://msdn.microsoft.com/en-us/library/office/dd877012(v=exchg.150).aspx However i see that Office 365 (which i assume is cloud based)…
8
votes
1 answer

Outlook API - Get meeting room calendar

How can I get an Office365 meeting room calendar using Outlook Calendar REST API? I can't find anything useful on the api documentation or stackoverflow..
Gabe
  • 5,997
  • 5
  • 46
  • 92
8
votes
2 answers

Outlook - Read another user's calendar

I'm developing an Android App based on Outlook-SDK-Android. The App talks with Outlook Calendar REST API to retrieve, book and delete events (see code examples here and here). Now I need to read someone else's calendar and I've been provided an…
Gabe
  • 5,997
  • 5
  • 46
  • 92
1
2 3
64 65