Forum Discussion
spatel07
Jul 01, 2019Copper Contributor
List chat messages via Graph API
Hi, We are trying to use the Beta Chat APIs to retrieve Chat messages (1:1). We have an application set up with "Chat.Read.All" Application Permission added. I get an error on calling any of the ...
flaphead70
Dec 05, 2019MCT
spatel07 So I can get it to work with Graph Explorer.
So see my chats:
https://graph.microsoft.com/beta/me/chats/
Then using a chatid;
https://graph.microsoft.com/beta/chats/<chatid>/messages
Graph Explorer posts the chat message and I can see that in teams, but using powershell it get:
Invoke-RestMethod : {
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"request-id": "94ced8d0-b3f2-4343-a46f-d83a0eb94f93",
"date": "2019-12-05T19:09:13"
}
}
}
- flaphead70Dec 05, 2019MCT
I have "Group.Read.All", "Chat.Read.All" and "Chat.ReadWrite" enabled.
Posting and replying to a channel chat works.
- jinishahAug 28, 2020Copper Contributor
flaphead70 Do you get any work around or any update as i am facing the same issue