Microsoft Graph
APIOne REST API for Microsoft 365 mail, calendars, files, Teams and users
- Erişim
- Entra ID OAuth access token
Hakkında
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.
Neler yapabilirsin
- 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
Başlarken
- Register an app in Microsoft Entra ID
- Grant it Mail.Read or other Graph permissions
- Get an access token with MSAL
Örnek kod
curl "https://graph.microsoft.com/v1.0/me/messages?\$select=sender,subject&\$top=10" \
-H "Authorization: Bearer $GRAPH_ACCESS_TOKEN"Ayrıntılar
- Barındırma
- Hazır hizmet (bulut)
- Kullanılabildiği yerler
- Tüm dünya
- Resmi SDK'lar
- C#, JavaScript/TypeScript, Java, Go, PHP, Python
- MCP sunucusu
- Uzak sunucu
- Entegrasyonlar
- Microsoft 365, Outlook, Microsoft Teams