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

Retrieving mail items with Id and Outlook REST API

Given a list of Ids (aka ItemIds) how can we efficiently retrieve the emails with OutlookREST Api? I tried to forge the following request. https://outlook.office365.com/api/beta/me/MailFolders//messages?$filter=((Id eq 'firstId') or…
Benoit Patra
  • 4,355
  • 5
  • 30
  • 53
0
votes
0 answers

Microsoft OAuth 2.0: Account unavailable error.

I'm trying to authenticate my application using Microsoft OAuth 2.0. Application registration is already done. I'm using a web browser component to make user allow the application to access user's calendars. Then I'm tracking the redirection URLs…
Ali Asgari
  • 801
  • 7
  • 18
0
votes
2 answers

Internal vs. external Office 365 account for Outlook REST API credentials?

If I register an application for the new unified Outlook.com/Office 365 REST APIs using an account tied to my companies' Office 365 instance, will users of other Office 365 accounts outside my organization also be able to use the application? Are…
Corey Larson
  • 1,577
  • 18
  • 39
0
votes
2 answers

How to get contact's "FreeBusyStatus" in Microsoft Outlook using REST Api?

See above mentioned image, it gives different status but don't know how to get it. Check Outlook API. Thanks in advance :-)
Prat
  • 143
  • 3
  • 17
0
votes
1 answer

Log in into Outlook meeting room account

Is it possible to log in into an Office365 Meeting Room user? I need to use an android app for each Meeting Room of my company and get the meeting room bookings to save them into a shared local repository. I have to use Outlook Calendar REST API to…
Gabe
  • 5,997
  • 5
  • 46
  • 92
0
votes
1 answer

How to open an Office365 calendar event from its WebLink in edit mode

Whenever I try to open in a browser an Office365 calendar event using its WebLink received from the Outlook API it opens a page with only the title of the event and the date and time it was created at and I do not have the option to open it in edit…
aleks47
  • 1
  • 1
0
votes
1 answer

Office 365 - Request for notifications after certain datetime - webhooks using Graph api

After subscribing for notifications (Created, Updated,Deleted), if for whatever reasons our daemon/service that receives notifications goes down, what are the ways to receive notifications again? Can we query for updates/notifications based on an ID…
0
votes
1 answer

Outlook Notify v2 API - Create calendar subscription

I am setting up a subscription request. I receive the validationtoken url param so according to the docs I have to reply in the next five seconds doing this: Set the content type in the response header to text\plain. Include only the validation…
Antonio Acevedo
  • 1,480
  • 3
  • 21
  • 39
0
votes
1 answer

Trouble while sending large amounts of mail via Outlook REST API

I'm using Outlook REST API to send mail. When I try to send 7000 emails via Outlook api, there are 78 mails cannot be sent and moved to draft folder. I wonder if it is default action of outlook api or it is an error ? Thank you !
Hom nom nom nom ...
  • 479
  • 1
  • 5
  • 14
0
votes
1 answer

Profile details in outlook rest api

Starting from here: https://dev.outlook.com/restapi/tutorial/php Scopes: private static $scopes = array("openid" ,"profile" ,"offline_access" ,"https://outlook.office.com/calendars.read" ,"https://outlook.office.com/contacts.read" ); When…
Alqin
  • 1,305
  • 3
  • 16
  • 35
0
votes
1 answer

Getting 401-Unauthorized while getting photo using outlook REST API - java cliet

I am trying to retrieve user photo using outlook REST API(https://msdn.microsoft.com/en-us/office/office365/api/photo-rest-operations#UserphotooperationsGetphoto) I got the access token following…
Pallab Lahiri
  • 21
  • 1
  • 7
0
votes
1 answer

Change Organiser for Outlook calendar Event in Node.js

How to programmatically change organiser of outlook calendar event? I have created one calendar event with two attendees using Outlook Rest API so I want to make as a organiser to one of the attendees. Anyone have idea on this? Thank you.
0
votes
1 answer

Event Time zone issue on Exchange Online using ASP. Net MVC application using Rest api

I am trying to create event for all day using o365 event rest api but getting error start and end time should be midnight I tried using below start date & End date for all day event e.g. Start Date: 01/01/2016 12:00 AM (dd/MM/yyyy) End Date:…
0
votes
1 answer

Outlook Calendar api Get future events

I have this request and I get all the events: https://outlook.office.com/api/v2.0/me/events?$select=Subject,Start,End How do I get only future events? Apending "&start=2016-04-11T22:33:10" doesn't work. I tried '&$filter="start/datetime gt…
Alqin
  • 1,305
  • 3
  • 16
  • 35
0
votes
2 answers

Maximum number of devices allowed to use the same Outlook account

What's the maximum number of devices that can use an Outlook account at the same time? I need to keep an Office365 user logged in (for months) on 7 tablets at the same time plus sporadically access it from a browser. Context: I'm developing and…
Gabe
  • 5,997
  • 5
  • 46
  • 92