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
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,716 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. ShivaniRai-MSFT 2,726 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

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more