← Back to Blog

Getting Started with Microsoft Graph API

Microsoft Graph is the unified API for M365 data. Learn authentication and first API calls.

What is Microsoft Graph?

One REST endpoint (graph.microsoft.com) for Users, Mail, SharePoint, Teams, OneDrive, Planner.

Authentication

  • Register app in Azure AD

  • Add API permissions (User.Read)

  • Use MSAL.js to get tokens

First API Call

GET https://graph.microsoft.com/v1.0/me
Authorization: Bearer {token}

Common Endpoints

  • /me/messages — Emails

  • /sites/{id}/lists — SharePoint lists

  • /teams/{id}/channels — Teams channels

Use Graph Explorer to test.