Microsoft Teams Beta API

Jelena Popovic 1 Reputation point
2021-07-28T09:14:39.533+00:00

We need to get all the Microsoft Teams chats for the specific user, but your documentation says:

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported.

How are we going to be able to use these APIs for the production applications or where is BETA supposed to become the official version so that these APIs are available?

Is there any way we could get:

  • List of chats for a single user
  • List of messages within one chat
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,520 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shivam Dhiman 6,066 Reputation points
    2022-03-11T18:44:23.783+00:00

    Hi @Jelena Popovic

    "List of chats for a single user" is available from August 25, 2021 Release Log.

    You can use this Graph API endpoint to List all chats of users

    GET https://graph.microsoft.com/v1.0/users/{user-id}/chats

    To List messages in a chat you can use these Graph API endpoint

    GET /me/chats/{chat-id}/messages
    GET /users/{user-id | user-principal-name}/chats/{chat-id}/messages
    GET /chats/{chat-id}/messages

    You can track new features/changes in Graph API Using the below Documentation.

    What's New

    Change Log

    Hope this helps.

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


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.