Microsoft Graph
APIOne REST API for Microsoft 365 mail, calendars, files, Teams and users
- Access
- Entra ID OAuth access token
About
Microsoft Graph is the single REST endpoint for Microsoft 365 and Entra data: Outlook mail and calendars, OneDrive and SharePoint files, Teams chats and directory users. Apps sign in through Microsoft Entra ID. Standard APIs come with user licenses; a few high-volume APIs are metered.
What you can do with it
- Read and send Outlook mail on behalf of a signed-in user
- Create calendar events and find meeting times across Microsoft 365 users
- Sync OneDrive and SharePoint files, or post messages to Teams chats
Get started
- Register an app in Microsoft Entra ID
- Grant it Mail.Read or other Graph permissions
- Get an access token with MSAL
Example
curl "https://graph.microsoft.com/v1.0/me/messages?\$select=sender,subject&\$top=10" \
-H "Authorization: Bearer $GRAPH_ACCESS_TOKEN"Details
- Hosting
- Hosted service
- Available in
- Worldwide
- Official SDKs
- C#, JavaScript/TypeScript, Java, Go, PHP, Python
- MCP server
- Remote
- Works with
- Microsoft 365, Outlook, Microsoft Teams