Microsoft Graph API Microsoft Graph is the single REST API for Microsoft 365 data: mail, calendar, OneDrive, Teams and the directory. How it works, and how I use it from stdlib Python to export my mailbox and OneDrive files.