From bc2cad8a1739134bd6fb943de317a193b2e3267e Mon Sep 17 00:00:00 2001 From: bkeerthivasa Date: Fri, 20 Feb 2026 09:39:33 -0800 Subject: [PATCH 1/2] [getAllEnterpriseInteractions] Add a new example with createdDateTime filters --- ...ionhistory-getallenterpriseinteractions.md | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/docs/api/ai-services/interaction-export/aiinteractionhistory-getallenterpriseinteractions.md b/docs/api/ai-services/interaction-export/aiinteractionhistory-getallenterpriseinteractions.md index 91fee4b8..413f0a74 100644 --- a/docs/api/ai-services/interaction-export/aiinteractionhistory-getallenterpriseinteractions.md +++ b/docs/api/ai-services/interaction-export/aiinteractionhistory-getallenterpriseinteractions.md @@ -307,6 +307,78 @@ Content-type: application/json } ``` +### Example 3: Get all the Copilot interactions for a user with createdDateTime filters + +The following example shows a request that gets all the Copilot interactions for a user within a specific date range. + +> [!NOTE] +> When using the `createdDateTime` filter, it is necessary to provide both a minimum and maximum time boundary. + +#### Request + +The following example shows a request. + +:::zone pivot="graph-v1" + +```http +GET https://graph.microsoft.com/v1.0/copilot/users/254efcd0-5094-4fc5-b2b3-1637629393e1/interactionhistory/getallenterpriseinteractions?$filter=createdDateTime gt 2025-11-24T00:00:00Z and createdDateTime lt 2025-11-25T00:00:00Z +``` + +:::zone-end + +:::zone pivot="graph-preview" + +```http +GET https://graph.microsoft.com/beta/copilot/users/254efcd0-5094-4fc5-b2b3-1637629393e1/interactionhistory/getallenterpriseinteractions?$filter=createdDateTime gt 2025-11-24T00:00:00Z and createdDateTime lt 2025-11-25T00:00:00Z +``` + +:::zone-end + +#### Response + +The following example shows the response. The response object shown here might be shortened for readability. + +```http +HTTP/1.1 200 OK +Content-type: application/json + +{ + "value": [ + { + "id": "1764008994427", + "sessionId": "19:4MaLljqiHJSD-rKYK-aqJmaGuUgmlsBgQxeXaUspdz41@thread.v2", + "requestId": "79699122-d834-6cc2-c1df-0332a0bd982d", + "appClass": "IPM.SkypeTeams.Message.Copilot.BizChat", + "interactionType": "userPrompt", + "conversationType": "bizchat", + "etag": "1764008994427", + "createdDateTime": "2025-11-24T18:29:54.427Z", + "locale": "en-us", + "contexts": [], + "from": { + "@odata.type": "#microsoft.graph.chatMessageFromIdentitySet", + "application": null, + "device": null, + "user": { + "@odata.type": "#microsoft.graph.teamworkUserIdentity", + "id": "254efcd0-5094-4fc5-b2b3-1637629393e1", + "displayName": "8:orgid:254efcd0-5094-4fc5-b2b3-1637629393e1", + "userIdentityType": "aadUser", + "tenantId": "c9d0512d-d402-4cfa-becc-4407bcf48a2d" + } + }, + "body": { + "contentType": "text", + "content": "What are the key action items from my recent meetings?" + }, + "attachments": [], + "links": [], + "mentions": [] + } + ] +} +``` + ## Related content [Microsoft Graph service-specific throttling limits](/graph/throttling-limits#microsoft-teams-service-limits) From 5fb5b9f07696fc28d485b5c92728348730d0dcc6 Mon Sep 17 00:00:00 2001 From: Laura Graham Date: Mon, 23 Feb 2026 17:38:38 -0800 Subject: [PATCH 2/2] Update date and clarify createdDateTime filter note Updated the date and improved note clarity regarding the 'createdDateTime' filter. --- .../aiinteractionhistory-getallenterpriseinteractions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/ai-services/interaction-export/aiinteractionhistory-getallenterpriseinteractions.md b/docs/api/ai-services/interaction-export/aiinteractionhistory-getallenterpriseinteractions.md index 413f0a74..d91204ef 100644 --- a/docs/api/ai-services/interaction-export/aiinteractionhistory-getallenterpriseinteractions.md +++ b/docs/api/ai-services/interaction-export/aiinteractionhistory-getallenterpriseinteractions.md @@ -1,7 +1,7 @@ --- title: "aiInteractionHistory: getAllEnterpriseInteractions" description: Get all Microsoft 365 Copilot interaction data, including user prompts to Copilot and Copilot responses. -ms.date: 02/11/2026 +ms.date: 02/23/2026 author: bkeerthivasa ms.author: bkeerthivasa ms.localizationpriority: high @@ -312,7 +312,7 @@ Content-type: application/json The following example shows a request that gets all the Copilot interactions for a user within a specific date range. > [!NOTE] -> When using the `createdDateTime` filter, it is necessary to provide both a minimum and maximum time boundary. +> When you use the `createdDateTime` filter, provide both a minimum and maximum time boundary. #### Request