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
3
votes
3 answers

Can I use both $search and $filter in a single Microsoft Graph request?

I'm trying to get a list of messages from Outlook through Microsoft Graph by a query with both $search and $filter parameters. I need to get all the messages based on my search criteria and the messages createdDateTime should be greater than the…
3
votes
0 answers

@odata:nextLink is sometimes not present when paginating through Outlook mail even if there is more mail

We are syncing user's Outlook accounts by paginating through the /me/messages endpoint in chronological order. Sometimes the API response will not include @odata:nextLink even if there are more messages. We are just using the $top, $select, $skip,…
3
votes
1 answer

Outlook Event API : At least one property failed validation error

I'm creating an Outlook event via Outlook API by providing following JSON input : { "subject":"bla bla bla", "start":{ "dateTime":"2018-01-14T17:00:00", "timeZone":"India Standard Time" }, "Attendees": [ { …
Paras
  • 3,191
  • 6
  • 41
  • 77
3
votes
1 answer

Get notification from Microsoft Graph when deleting event occurrence

I have subscribed to events (https://outlook.office.com/api/v2.0/me/events) push notification. When I delete one event of recurrence master event, I receive UPDATED notification with id of master event and not specific occurrence event id. How can…
3
votes
0 answers

Calendar REST API for on-premise exchange 2016 (No hybrid)

I have been using Calendar Rest API for office 365 and from the documentation it seems that there are no plans of introducing these API's for an non-hybrid On-Premise Exchange…
3
votes
2 answers

Create event does not acknowledge timezone passed in

I am using Microsoft Graph to create an event. Everything is working except it always creates the event in UTC. I am following the examples from the documentation, but still no luck. Here is the body of the post: { "subject": "My event", …
hp.
  • 513
  • 6
  • 15
3
votes
2 answers

Microsoft Graph get calendar entries happening today (reaching over timeframe)

I'm currently struggeling with the Microsoft Graph REST-API. What I'm trying to do is list todays events (happening between midnight and midnight). From the documentation, the filter function is very limited. My current statement looks like this:…
flor1an
  • 960
  • 3
  • 15
  • 33
3
votes
2 answers

Microsoft Graph API Shared Calendar IDs inconsistent between users

My application allows users to schedule events on shared calendars and allows other users to potentially reschedule or cancel those events. I ask for the Calendar.ReadWrite.Shared permission to enable this. It appears that if two users have access…
3
votes
0 answers

Outlook REST API: "The user could not be authenticated or the grant is expired." error with no apparent reason

Our app is integrated with Outlook REST API, mainly for mailbox integration, and recently we are having some problems with our users suddenly unable to log in. We use OAuth authentication with this authority…
3
votes
1 answer

Microsoft Graph API: Is there any limit on payload size of a POST request

Is there any limit on the payload size of a POST request in Graph API. This link suggests a limitation of 4MB. Is there any reference to this in the documentation? Also is there any limitation for the outlook REST API
bala
  • 311
  • 3
  • 11
3
votes
1 answer

Identify same/related calendar event from different calendars

I need to retrieve the attendee list from an organizer's calendar. To do this, I need to identify with certainty the same event in the another user's calendar. Exchange is linking the related events, but that property might not be exposed over…
ZorgoZ
  • 2,974
  • 1
  • 12
  • 34
3
votes
1 answer

Receiving outlook rest push notification twice, when I create/update/delete the calender

I have a requirement that, I need to get notification whenever any calendar item is created/updated/deleted. I followed the Outlook push notification documentation to subscribe to calendar notifications. I have successfully subscribed for calendar…
MK446
  • 448
  • 6
  • 22
3
votes
1 answer

Get first email from conversation id using Microsoft Graph

Is it possible to query for the first, or all emails from a particular conversation id using the Microsoft Graph? If not, how about with the classic Exchange API? Scenario: I am creating an application where I am interested in tracking the user who…
Shawn Tabrizi
  • 12,206
  • 1
  • 38
  • 69
3
votes
1 answer

Get all meeting rooms from outlook API

I'm trying to use the outlook API to return all meeting rooms from an account in a list. Is this possible? I can't find it anywhere in the documentation. Which api call do I have to make? Thanks
RoyalSausage
  • 273
  • 2
  • 12
3
votes
1 answer

Can't get SingleValueExtendedProperties from Outlook contacts for certain data types with GRAPH

I'm trying to get values for PT_DOUBLE and PT_CLSID custom property data types using Microsoft Graph. I have no trouble getting custom properties for PT_LONG (Integer) or PT_UNICODE (String). Integer and String does not work for PT_DOUBLE and…
Eric Legault
  • 5,706
  • 2
  • 22
  • 38