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
5
votes
2 answers

Access to Outlook RestAPI from an Outlook web Add-in

I developed an Outlook Web Add-in that is working fine. It's a Taskpane that is available in compose mode of appointments and that collects event's data, adds a few ones and send that all to an API somewhere. What I would like to do now is to…
5
votes
1 answer

Add online meeting url to event with Microsoft Graph API

Could anybody help me with creating an event with Microsoft Graph API. Desirable behavior is to add a link to the event which is clickable in majority of the calendar clients. Here is an example of the event payload I’ve used: { ... "body":…
5
votes
1 answer

How can I send mail in office 365 REST API?

I've found the following documentation on how to send email using Office 365 rest API. This is the example given on the doucmentation: POST https://outlook.office.com/api/v2.0/me/sendmail { "Message": { "Subject": "Meet for lunch?", …
5
votes
1 answer

Set a custom header with Outlook/Office 365 REST

I know it is possible to get the headers from an email with this Outlook REST, but is there a way that we can set custom headers as well? I can't seem to find any documentation.
Corey Larson
  • 1,577
  • 18
  • 39
5
votes
2 answers

Is it possible to retrieve the RFC 2822 (or any) headers from an email with the Outlook/Office 365 REST API?

An application I am working on needs access to the headers of an email - specifically ones like return-path, in-reply-to, and references. Ideally, we would love to be able to access all of the RFC 2822 headers of the email. Is this possible with the…
Corey Larson
  • 1,577
  • 18
  • 39
5
votes
2 answers

Outlook API OAuth2 offline acces / permanent access using php

I followed the tutorial below to get mail using outlook api. This works, but requires the user to login every time to give access. Is there a way to give permanent / offline access? Similar to how gmail api works (access to when your not at your…
singularity
  • 99
  • 2
  • 9
5
votes
1 answer

Fetching "cancelled" events through the Office 365 REST API

I'm having trouble figuring out a way to fetch "cancelled" events on Office 365. It seems like a pretty basic thing to do, however none of my attempts at figuring out how to do so have worked. Reading the Office 365 API documentation, I can see that…
Rican7
  • 1,125
  • 2
  • 10
  • 28
5
votes
1 answer

Using Azure Multi-Tenant application without an Office 365 subscription to access users calendar information

We have written a service application that reads Office 365 calendar information from multiple calendars in an organisation (tenant) and does some analysis against the entries. We use the Office 365 REST API for this. We have multiple client…
Scott
  • 4,113
  • 6
  • 37
  • 49
4
votes
1 answer

Issue in migrating outlook task api (getAllTasks) to graph To-do task api

We are in the process of Migrating from Outlook APIs to Graph Microsoft APIs. We are unable to migrate task API as we don't find any graph API documentation relating to getAllTasks. Please help us to find this API.
4
votes
0 answers

Getting Invalid value for the key "reminderMinutesBeforeStart" in Outlook "Get Events API"

Getting Invalid value for the key "reminderMinutesBeforeStart" in Outlook Get Events API. When the reminder is not set for one of the users. We are getting "1525252321" minutes as value for the "reminderMinutesBeforeStart" key. Please help us to…
4
votes
0 answers

Create readonly calendar event with Microsoft Graph API

We'd like to use Microsoft Graph API to create calendar events in order to sync the calendar events of our own application with the ones in Outlook. However, in our application, we have time periods that are closed for altering. So, the events…
Domenic
  • 708
  • 1
  • 9
  • 23
4
votes
0 answers

ErrorCode: 'PP_E_RPS_CERT_NOT_FOUND'. Message: ' Internal error: spRPSTicket->ProcessToken failed

I am trying to subscribe a user for push notifications. These are headers that contains a valid access token. > POST https://outlook.office.com/api/v2.0/me/subscriptions > Authorization: Bearer *** access token *** > Accept: application/json >…
sensorario
  • 20,262
  • 30
  • 97
  • 159
4
votes
1 answer

Synchronization of outlook messages attributes (Flag, IsRead) and deletion status

According to this documentation Synchronize messages API users have ability to synchronize messages with pretty simple skipToken mechanics. And it works well for fetching new messages in folders. But! What I'm also interested is how to sync flags…
user1876339
  • 319
  • 1
  • 2
  • 7
4
votes
1 answer

Outlook API v2.0 getEvents concurrency litmit

I am using outlook api v2.0 rest api to perform crud operations against calendars and events and have started hitting a rate limit issue. This one for example is hitting the calendarview endpoint: GET…
Antonio Acevedo
  • 1,480
  • 3
  • 21
  • 39
4
votes
2 answers

Identifying DSN (Delivery Status Notifications) or NDR (Non Delivery Reports) and the failed recipients in Microsoft Graph / Outlook REST API

I found several questions here about detecting mail status in various mail servers, but still it's unclear how to do it using Outlook REST API. In documentation we can see the response for request: GET…
creaturek
  • 75
  • 7