Building and customizing solutions using Microsoft 365 Copilot APIs and tools
Hello fabian,
Copilot-generated replies are not visible through the standard Graph endpoint GET /chats/{chat_id}/messages, as these messages aren’t stored or accessible like regular Teams chat or bot messages.
To retrieve Copilot responses, consider these options: 1. Copilot Activity Export API
- Endpoint: GET /beta/copilot/users/{userId}/interactionHistory/getAllEnterpriseInteractions
- This returns the full conversation history, including user prompts, Copilot replies, HTML content, metadata, and attachment references.
See aiInteractionHistory: getAllEnterpriseInteractions | Microsoft Learn
- Copilot Chat API (for programmatic access)
- You can create or continue conversations using: POST /beta/copilot/conversations GET /beta/copilot/conversations/{conversationId}/chats This allows you to interact with Copilot and retrieve response payloads as part of the Chat API
workflow.
See copilotConversation: chat | Microsoft LearnPOST /beta/copilot/conversations
Thanks,
Nivedipa