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
0 answers

Same ID for two folders with different "displayName"

I made a request to this API and got msgfolderroot ID: https://graph.microsoft.com/beta/me/mailFolders/msgfolderroot After that, I made a call and got a list of folders: https://graph.microsoft.com/beta/me/mailFolders/root/childFolders I needed to…
3
votes
0 answers

Microsoft Graph - Error when using multiple filters for CalendarView

I try to get a CalendarView which is filtered by both sensitivity and lastModifiedDateTime, but the graph API is failing when both filters are applied at once. If I run the query with one filter at a time, it works as expected. Through testing, I've…
Søren Hansen
  • 33
  • 2
  • 8
3
votes
0 answers

Creating event returns ErrorPropertyValidationFailure

I'm trying to create an Event via Microsoft Graph by providing following JSON input: { "subject": "Test event", "organizer": { "emailAddress": { "name": "Name 1", "address": "name1@graffter.onmicrosoft.com" } }, "start":…
AitorGC
  • 31
  • 2
3
votes
1 answer

Create microsoft graph API subscription to multiple resources

I couldn't find a way to create new subscription to multiple resources using the Microsoft graph API: https://developer.microsoft.com/en-us/graph/docs/concepts/webhooks For instance, I would like to create a new subscription to all mailboxes that…
Eran Levy
  • 154
  • 10
3
votes
2 answers

Create New Event using Outlook Api in PHP (using POST method)

I am creating new event in php using POST method in Outlook API. I followed this link https://learn.microsoft.com/en-us/outlook/rest/php-tutorial to implement GET events method. Authorization code I am using is following $oauthClient = new…
3
votes
1 answer

Fetch events from shared calendar with Office 365 REST API

Loading shared calendar from a user works so far. However, as soon as you want to load the events, we get the following error message: ErrorAccessDenied Access is denied. Check credentials and try again. The URL looks like…
3
votes
0 answers

How to get inbox mail from office 365 in php?

I have been attempting to get email's from office 365 using PHP. Here i need to get email's without user login.So i'm trying to get access token without user login. This is the end point where i'm getting access…
dhamo dharan
  • 712
  • 1
  • 10
  • 25
3
votes
2 answers

Microsoft Outlook Calendar Graph API delta is not returning deleted events?

I'm currently using the Microsoft Graph API to sync calendar events to my local application. It seems to be working fine, except I don't seem to be able to retrieve deleted events. I'm following the instructions for the delta query as laid out by…
Bobby
  • 119
  • 11
3
votes
1 answer

Send Mail with attachment Microsoft Graph not working

I am making an application that sends emails from a User as described by this article. Everything is working as expected, except for when I try to include an attachment. The email sends, but without the attachment. I'm not sure what the problem is…
3
votes
2 answers

Does Microsoft Graph API Subscription creation require specific permissions?

I am trying to use the create subscription API to open a subscription channel on a calendar's events such that we can receive updates when interviewers respond to the interview. I have tried many variations to get this request to work: Permission…
3
votes
1 answer

Graph Subscription Created but Notifications Not Being Sent

My GraphServiceClient subscription was created on my user and I receive a successful response: { "resource": "users/me@my.domain.com/events", "changeType": "created,updated", "clientState": "baedacff-7b53-4aca-81b8-20f9fff68618", …
user1477388
  • 20,790
  • 32
  • 144
  • 264
3
votes
1 answer

Outlook 2016 on macOS: Native Add-in, how to proceed

Problem Statement: Create a macOS Outlook add-in which responds to Calendar move and delete events and calls an API. Challenge: Most of the links say that this is not possible but there are native Outlook add-ins for Mac already out there. One…
3
votes
2 answers

deals with hidden folder

We are a little company in france, and we have developed a add-in for outlook, that used the WS exchange and VSTO. We need to develope this plugins for office 365 How can we deals with hidden folder inside a outlook mailbox ? With WS Exchange we can…
3
votes
1 answer

Outlook API to forward email as attachment

I'm currently developing an Outlook Add-in and trying to add a feature to forward an email as an attachment. Can anyone please advice what the simplest way to accomplish it? I cannot find a single API to do it in Outlook Mail REST API reference. Is…
tkj
  • 41
  • 3
3
votes
2 answers

How to retrieve ItemAttachment bytes

I want to download the bytes of an attachment to an email that is itself an email using Microsoft Graph. My only option at the moment appears to be to use the Get ItemAttachment method on the API that looks like…
Dave Moten
  • 11,957
  • 2
  • 40
  • 47