Need information on Graph API for MS O365 Message trace

Ayush Shrimal 5 Reputation points
2025-08-05T08:39:20.0966667+00:00

According to this Microsoft Tech Community post, the "Reporting Webservice support to pull Message Trace data will also begin deprecating starting on September 1st, 2025." https://urldefense.com/v3/https://techcommunity.microsoft.com/blog/exchange/announcing-general-availability-ga-of-the-new-message-trace-in-exchange-online/4420243;!!BmdzS3_lV9HdKG8!3wgwYlDk6mp5o3WnNk12C802cBJyiDcQLCGHDiFU1oQbfVGVJ5sixHgsyBQxnM0wDzqC0-H1lfnnhwn4Risg$

Is there alternative Graph API to pull similar MessageTrace logs from Office 365 Exchange online? If, yes then could you please share with us specific Microsoft Graph API to get the MessageTrace logs?

Microsoft 365 and Office | Development | Microsoft 365 Developer Program
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. TiNo-T 4,215 Reputation points Microsoft External Staff Moderator
    2025-08-05T09:44:14.9+00:00

    Dear @Ayush Shrimal,

    Thank you so much for contacting Microsoft Q&A Forum. 

    Based on your concern, I have tried to research and found that as of now, Microsoft Graph API does not yet offer a direct replacement for the reporting webservice's Message Trace functionality in Exchange Online. There is no direct Graph API endpoint exists for pulling Message Trace logs similar to the legacy ReportingWebService (MessageTrace and MessageTraceDetail) endpoints. I also found 2 partially similar cases that you can consult: 

    Besides that, Microsoft has introduced Export-Import APIs in Microsoft Graph (currently in public preview) that allow: 

    • Exporting and importing mailbox content (emails, contacts, calendar items). 
    • Navigating mailbox folder hierarchies. 
    • Managing folders and extended properties. 

    However, these APIs are not designed for message trace or delivery diagnostics. They are more suited for backup, archiving, and migration scenarios. 

    References: 

    Use the mailbox import and export APIs in Microsoft Graph (preview) - Microsoft Graph beta | Microsoft Learn 

    Import an Exchange mailbox item using the mailbox import and export APIs - Microsoft Graph | Microsoft Learn 

    Therefore, until Microsoft releases a Graph-based Message Trace API, I have several suggestions that you can use for this time: 

    1.Continue using the legacy reporting webservice until it's fully deprecated. 

    2.Use PowerShell cmdlets like Get-MessageTrace and Get-MessageTraceDetail via Exchange Online PowerShell. References: 

    Get-MessageTrace (ExchangePowerShell) | Microsoft Learn 

    Get-MessageTraceDetail (ExchangePowerShell) | Microsoft Learn 

    Additionally, Microsoft recommends migrating from Exchange Web Services (EWS) to Microsoft Graph for most mailbox-related operations. However, message trace is one of the few areas where Graph API still lacks parity. You can consult in here: Microsoft Graph Outlook API for mail, calendars, and contacts | Microsoft Learn 

    I hope this information can help you to clarify this feature. 

    Wish you a pleasant day!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.