How to extract complete chat history from teams using Graph API? Is it possible?

Manu Y 1 Reputation point
2022-04-06T07:28:39.867+00:00

I am looking to extract and download a teams channel chat using Microsoft Graph API. Is it possible to this and how?

Microsoft Graph Profile API
Microsoft Graph Profile API
A Microsoft API that retrieves the profile of the signed-in user or another user with a valid Azure AD or Microsoft account.
106 questions
Microsoft Graph SDK
Microsoft Graph SDK
A Microsoft software developer kit designed to simplify building high-quality, efficient, and resilient applications that access Microsoft Graph.
883 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ShivaniRai-MSFT 2,686 Reputation points
    2022-04-06T09:38:03.82+00:00

    Hi @Manu Y ,

    We can retrieve the list of messages (without the replies) in a channel of a team using below Graph API Endpoint GET /teams/{team-id}/channels/{channel-id}/messages

    Reference Document: https://learn.microsoft.com/en-us/graph/api/channel-list-messages?view=graph-rest-1.0&tabs=http

    Hope this helps.

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

    0 comments No comments