{"id":15125,"date":"2023-08-28T19:46:34","date_gmt":"2023-08-29T02:46:34","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/?p=15125"},"modified":"2023-08-28T19:46:34","modified_gmt":"2023-08-29T02:46:34","slug":"restarting-billing-on-teams-chat-export-apis-new-api-enhancements","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/restarting-billing-on-teams-chat-export-apis-new-api-enhancements\/","title":{"rendered":"Restarting billing on Teams Chat Export APIs; new API enhancements"},"content":{"rendered":"<p>On July 1, 2023, we announced that we were pausing billing for \u201c<code>chats: getAllMessages<\/code>\u201d calls made on the Teams Chat Export API (<a href=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/billing-updates-for-microsoft-teams-api-in-microsoft-graph\/\">blog here<\/a>). This is a reminder that we are <strong>restarting billing on<\/strong> <strong>9\/30\/2023. <\/strong><\/p>\n<p>Pricing for Teams Chat Export APIs remains unchanged. Please review here: <a href=\"https:\/\/learn.microsoft.com\/en-us\/graph\/teams-licenses\">Payment models and licensing requirements for Microsoft Teams APIs \u2013 Microsoft Graph | Microsoft Learns<\/a><\/p>\n<h2>New filter parameters for Teams Graph chat scenarios<\/h2>\n<p>On August 25, 2023, we are introducing new filter parameters that help developers optimize the messages returned when querying a chat thread. The <code>chats: getAllMessages<\/code> API now supports extraction of <strong>messages sent<\/strong>, based on the following:<\/p>\n<ul>\n<li>users (multiple user IDs supported in the same request)<\/li>\n<li>applications (bots, connectors etc.)<\/li>\n<li>anonymous users<\/li>\n<li>federated users (external access users)<\/li>\n<li>system event messages (control messages)<\/li>\n<\/ul>\n<p>These parameters are part of the request\u2019s <code>$filter<\/code>. If none of these parameters are present in the request, the API will return messages from all the users present in the specified user chat.<\/p>\n<p>Please note that this new filter parameter will effectively capture all user messages only when queried across all users in the tenant. Selective capture only for a subset of users in the tenant still requires the use of existing \u201c<code>chats: getAllMessages<\/code>\u201d API endpoint without any filter parameter to ensure completeness of messages archived.<\/p>\n<p>We recommend use of these new filters prior to the resumption of billing for calls made \u201c<code>\/chats\/getAllMessages<\/code>\u201d endpoint on the Teams Chat Export API. To help get started on the filters, refer here: <a href=\"https:\/\/learn.microsoft.com\/en-us\/microsoftteams\/export-teams-content#how-to-access-teams-export-apis\">Export content with the Microsoft Teams Export APIs &#8211; Microsoft Teams | Microsoft Learn<\/a><\/p>\n<p>If you have questions, please <a href=\"https:\/\/developer.microsoft.com\/graph\/support\">reach out.<\/a><\/p>\n<p>Thank you for using Microsoft Teams! Visit us at our <a href=\"https:\/\/developer.microsoft.com\/en-us\/microsoft-teams\">Microsoft Teams Dev Center.<\/a><\/p>\n<p>Follow us on <a href=\"https:\/\/twitter.com\/Microsoft365Dev\">Microsoft 365 Developer (@Microsoft365Dev) \/ Twitter<\/a> for the latest news.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a reminder that we are restarting billing on 9\/30\/2023 for calls made on the Teams Chat Export API.<\/p>\n","protected":false},"author":127150,"featured_media":15136,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[128],"tags":[256],"class_list":["post-15125","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-teams","tag-teams-chat-export-api"],"acf":[],"blog_post_summary":"<p>This is a reminder that we are restarting billing on 9\/30\/2023 for calls made on the Teams Chat Export API.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/15125","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\/127150"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=15125"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/15125\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/15136"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=15125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=15125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=15125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}