How to fetch Microsoft copilot chats

Shreyansh Chauhan 0 Reputation points
2025-10-24T10:17:37.1466667+00:00

Hello,

Is there any API which allows to fetch the chat between a user and Microsoft copilot? I looked into graph API for teams, but it doesn't allow to do so.

For example:
I sent message to Microsoft copilot to summarize a word document for me (within Microsoft teams). It returns me the summarized version.

I want to fetch that conversation as one on one via API.

If there is no such support, can you please provide relevant links that mentions the same?

Thanks

Microsoft Copilot | Microsoft 365 Copilot | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Karan Gupta 0 Reputation points
    2025-10-24T17:24:59.78+00:00

    You can use the Copilot Activity Export API to retrieve interactions between a user and Microsoft Copilot across apps like Teams, Word, and Outlook.

    Official documentation

    GET https://graph.microsoft.com/v1.0/copilot/users/{userId}/interactionHistory/getAllEnterpriseInteraction
    

    Limitations of Microsoft Graph API for Teams Chat

    • The standard Graph API for Teams does not allow access to Copilot chats as regular one-on-one messages.
    • Copilot chats are not stored as typical Teams messages and are not accessible via chatMessage or channelMessage endpoints.
    • You cannot use Graph API to fetch Copilot chats unless you use the Copilot-specific APIs.

    Alternative: Copilot Chat API

    If you're building custom integrations, the Copilot Chat API allows you to initiate and continue conversations with Copilot programmatically.

    However:

    • It’s not meant for retrieving past chats.
    • It’s focused on real-time interaction, not history export.

    📄 Copilot Chat API Overview

    0 comments No comments

Your answer

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