Table of contents
Collapse the table of content
Expand the table of content
Last Updated: 1/11/2017

Office 365 API reference

Office 365 API functionality is also available through the Microsoft Graph, a unified API that includes APIs from other Microsoft services such as Outlook, OneDrive, OneNote, Planner, and Office Graph, accessible through a single endpoint and with a single access token. We recommend using the Microsoft Graph in your apps when possible.

Office 365 APIs Overview

The Office 365 APIs enable you to provide access to your customer's Office 365 data, including the things they care about most--their mail, calendars, contacts, users and groups, files, and folders--all right from within your app itself.

You can access the Office 365 APIs from solutions across all mobile, web, and desktop platforms. No matter your development platform or tools. So whether you're building web applications using .NET, PHP, Java, Python, or Ruby on Rails, or creating apps for Windows Universal Apps, iOS, Android, or on another device platform, it's your choice.

And because the Office 365 APIs offer single sign-on with Azure Active Directory (Azure AD), you only need register your app once to access any of the Office 365 API services.

How do the Office 365 APIs work?

The Office 365 APIs are REST services that provide access to high-value data from Office 365 services:

  • Mail, calendars, contacts, people, notifications, photos, extended properties, and data extensions from Exchange Online
  • Files and folders from SharePoint Online and OneDrive for Business
  • Users and groups from Azure AD

And with the simplicity of REST, you don't need any specialized Exchange, SharePoint, or Azure AD knowledge to access these services.

Select the language, development platform, and hosting environment you want. Build using any web language, including JavaScript, HTML5, Python, Ruby, PHP, and ASP.NET. Use Visual Studio, Eclipse, Android Studio, Xcode, or the IDE of your choice. Host your apps in Microsoft Azure or any cloud platform you choose.

Then use single sign-on with Azure AD to authenticate your users and let them access email, files, calendar, and user information, and the petabytes of data that are stored in Office 365.

Office 365 SDKs make app development easier

You can program directly against the REST APIs to interact with Office 365. If you do, you'll need to write and maintain code around managing authentication tokens, constructing the correct URLs and queries for the API you want to access, and other tasks. The Office 365 SDKs for Visual Studio, Eclipse and Android Studio, or Xcode, help reduce the complexity of the code you need to write to access the Office 365 APIs.

The Office Developer Tools for Visual Studio include SDKs that provide .NET and JavaScript libraries that wrap the Office 365 REST services and provide an even easier way to connect to your Office 365 data. The SDKs are available for ASP.NET MVC, ASP.NET Web Forms, WPF, Win Forms, Universal App, Cordova and Xamarin project types in Visual Studio.

For Android developers, the Android SDK for Eclipse and Android Studio is now generally available as well. See Develop Office 365 apps by using the Office 365 SDK for Android.

For iOS apps, the iOS SDK for Xcode (currently in Preview) supports both Objective C and Swift languages within Xcode 6. See the Office 365 SDK for iOS.

How do I get started?

First, set up your developer environment. Then start building your first iOS, Android, JavaScript or ASP.NET app that uses the Office 365 APIs.

Learn more about the Office 365 APIs

Try out authentication using the Office 365 REST APIs



© 2018 Microsoft