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

Can not connect to office 365 api

So i'm trying to connect to office 365 api in order to obtain events for a user (Calendars.Read), in Azure Management Portal I set "APPLICATION IS MULTI-TENANT" and than started getting this error: "AADSTS90093: This operation can only be performed…
0
votes
1 answer

Microsoft Calendar REST API - Access to OData is disabled

I'm trying to access Microsoft's Outlook.com Calendar REST API. I got OAUTH2 authentication set up correctly and have a valid access token and refresh token available. However, if I try to access the calendar list @ https://outlook.office.com with…
Stefan Haberl
  • 9,812
  • 7
  • 72
  • 81
0
votes
1 answer

Create "Draft" Calendar entry via REST API

I like to create a draft calendar entry for a user via the office 365 REST API, including all attendees, time etc. For missing information the user should complete this entry afterwards in the webapp. The problem: All attendees receive an…
AJRames
  • 135
  • 1
  • 11
0
votes
3 answers

Office 365 REST API with Basic Authorization

I am trying to get both personal calendar and shared calendar in an office 365 account using RESTapi. Since currently Oauth2 doesn't support accessing shared calendar, I'm testing my code with basic authorization. I have three calendars in my…
0
votes
1 answer

Microsoft outlook API give 404 error

I try get user contacts through Outlook contacts REST API. I sucessfully got access token, but when i try to get the contacts i get 404 error. This is sended…
Saril
  • 13
  • 4
0
votes
1 answer

login.microsoftonline.com reject https://outlook.office.com/mail.write scope

I try to modify the sample from the dev.outlook.com to send emails to selected contacts. Unmodified example works fine, but when I added scope "https://outlook.office.com/mail.write" to oauth.php i receive error. AADSTS70011: The provided value…
dormouse
  • 63
  • 5
0
votes
1 answer

How to copy contacts from the 'Directory' folder in outlook office 365 from the REST API?

When login into the outlook office 365 interface to manage his/her contacts, a user would click on the blue icon with nine squares at the top left of the UI and select the "Contacts" tile. On the left, the user would see the folders "My contacts",…
qnilab
  • 380
  • 3
  • 18
0
votes
1 answer

Adjacent Windows outlook c#

IHello, I want to make an adjacent to the preview pane Custom panes in C#. After searching i found A post were someone want the same thinks. They end up with Hook. I have post this topic on MSDN…
0
votes
1 answer

How to get ContentBytes property of an email attachment using office 365 rest api? I am using node.js below is the code which i am using

outlookClient.me.folders.getFolder('Inbox').messages.getMessages().filter('IsRead eq false and HasAttachments eq true').fetchAll(10).then(function (result) { result.forEach(function (message) { …
0
votes
1 answer

How reply a message useing office365 with php

I am using office365 app and referenced from https://msdn.microsoft.com/en-us/office/office365/api/mail-rest-operations#Createandsendmessages and https://dev.outlook.com/RestGettingStarted/Tutorial/php create a function: function reply_to(){ …
0
votes
1 answer

Can i use office 365 Rest Api implemented here [https://github.com/jasonjoh/node-tutorial] in node.js as a Web service?

As the mentioned https://github.com/jasonjoh/node-tutorial example is a web app. but i want to use it as a web service for example :- i want to run this app on one machine(on server) and other apps made in(mobile apps, desktop and web app) could…
rkp
  • 15
  • 6
0
votes
1 answer

Office365 REST API - Get contacts from both My Contacts and Directory

I've managed to get the list of user contacts back using the Office365 API, but I wondered whether there is a way of also returning the Directory contacts?
Tom
  • 12,776
  • 48
  • 145
  • 240
0
votes
1 answer

Missing fields in responses from Office 365 RESTful API

I am using node-outlook library to work with Office 365 RESTful API. When I fetch the contacts I cannot find data for such fields as "Mobile Phone 2", "Other Phone", "Business fax", "Notes". Although they are perfectly accessible via Office 365 web…
Dmitriy
  • 31
  • 1
  • 3
0
votes
1 answer

Office 365 Rest API Access to public folders

How do I access public folders using the office 365 REST API (or the .net client api)? I can quite happily work my through my folders but I can't figure out how to get a list of public folders (and access their contents). As a plan B I can see the…
PeterI
  • 472
  • 3
  • 17
0
votes
1 answer

Missing Messages Using the Office 365 Rest API

Between the times of 16:13 BST and 17:17 BST today (5-June 2015) messages received into a shared mailbox are not being shown via the Office 365 Rest API. Regardless of the OData queries applied I cannot get these messages to be returned via the API,…
Nick Maher
  • 189
  • 2
  • 8