{"id":6212,"date":"2021-04-19T11:00:54","date_gmt":"2021-04-19T19:00:54","guid":{"rendered":"https:\/\/officedevblogs.wpengine.com\/?p=6212"},"modified":"2021-04-19T11:00:54","modified_gmt":"2021-04-19T19:00:54","slug":"leverage-new-microsoft-teams-chat-apis-to-enable-new-scenarios","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/leverage-new-microsoft-teams-chat-apis-to-enable-new-scenarios\/","title":{"rendered":"Leverage new Microsoft Teams chat APIs to enable new scenarios"},"content":{"rendered":"<p>We\u2019ve listened to your feedback and your needs for access to chat APIs in Microsoft Teams to build more scenarios. That\u2019s why we\u2019re excited to announce the general availability of the Microsoft Teams chat APIs in the Microsoft Graph v1.0 endpoint. You can use these APIs to create and update chats, create new messages, and add\/remove members from chats. These APIs also allow the caller to add, remove and update tabs inside chats and meetings.<\/p>\n<h4>New chat APIs for Microsoft Teams<\/h4>\n<p>We have new Teams chat APIs on the Microsoft Graph v1.0 endpoint for you to start using today. The below captures the features that are part of this release:<\/p>\n<p><strong>Create\/update chat APIs\u00a0<\/strong>&#8211; You can now create one-on-one and group chats through Microsoft Graph. You can also update the names of existing group chats. These APIs are available with delegated permission.\u00a0 To learn more, see <a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/chat-post?view=graph-rest-1.0\">Create chats<\/a>.<\/p>\n<p><strong>Membership management APIs\u00a0<\/strong>&#8211; These APIs allow managing a roster of all\u00a0non-one-on-one\u00a0chats. In addition to adding and removing users, callers can specify how far back in history a member can see messages. These APIs are available with delegated permission.\u00a0 \u00a0To learn more, see <a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/resources\/conversationmember?view=graph-rest-1.0\">conversationMember<\/a>.<\/p>\n<p><strong>Chat APIs<\/strong> \u2013 You can now create a new <strong>chatMessage<\/strong> in the specified chat with delegated permission, retrieve the list of messages in a chat and retrieve a single message in a chat by specifying the message id with delegated and application permission. To learn more, see \u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/chat-post-messages?view=graph-rest-1.0\">Send message<\/a> and <a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/chat-list-messages?view=graph-rest-1.0\">List messages<\/a> in chat<\/p>\n<p><strong>App APIs (CRUD)<\/strong><strong>\u00a0<\/strong>&#8211; You\u2019ve told us that you would like to programmatically install apps (especially bots) inside a meeting.\u00a0 These APIs allow a caller to add, remove, and upgrade apps inside chats and meetings. If the chat is associated with a meeting, the APIs automatically apply the equivalent app operation to the online meeting instance as well. These APIs are available with delegated and application permission.\u00a0For details, see <a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/resources\/teamsappinstallation?view=graph-rest-1.0\">teamsAppInstallation<\/a>.<\/p>\n<p><strong>Tabs APIs (CRUD)\u00a0<\/strong>&#8211; These APIs allow a caller to add and remove tabs inside chats and meetings. If the chat is associated with a meeting, they automatically apply the equivalent tab operation to the online meeting instance as well.\u00a0These APIs are available with delegated and Application permission.\u00a0For details, see <a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/resources\/teamstab?view=graph-rest-1.0\">teamsTab<\/a>.<\/p>\n<h4>Conclusion<\/h4>\n<p>We look forward to your feedback on these APIs. Please connect with us on <a href=\"https:\/\/docs.microsoft.com\/en-us\/answers\/topics\/office-teams-app-dev.html\">Microsoft Q&amp;A<\/a>.<\/p>\n<p>Happy coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>General availability of the Microsoft Teams chat APIs in the Microsoft Graph v1.0 endpoint enable additional capabilities with chat and messages.<\/p>\n","protected":false},"author":69074,"featured_media":25159,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3,128],"tags":[],"class_list":["post-6212","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph","category-microsoft-teams"],"acf":[],"blog_post_summary":"<p>General availability of the Microsoft Teams chat APIs in the Microsoft Graph v1.0 endpoint enable additional capabilities with chat and messages.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/6212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69074"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=6212"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/6212\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/25159"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=6212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=6212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=6212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}