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

Manu Y 1 Reputation point

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

    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:

    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