Microsoft Graph quick start

Build a sample app that connects to Microsoft 365 and calls the Microsoft Graph API.

Get up and running in three minutes. This code uses Microsoft Graph to access your Microsoft account, Azure Active Directory, and Outlook.

Questions? See the FAQ.


1

Choose a language


2

Get a client ID

Automatically register a new application in the Microsoft Application Registration portal and embed the client ID (also known as the app ID) into your sample. You will need a school or work account.

When you use the Microsoft Graph API, you agree to the Microsoft APIs Terms of Use and the Microsoft Privacy Statement.


3

Build and run the sample

Download our code sample to get started. The sample introduces you to authentication and sends an email from your account. For instructions, see the README in the .zip file.