Unable to post message in Live meeting chat using Microsoft Graph API

Ameer K 15 Reputation points
2023-05-11T12:24:03.28+00:00

Hi Team,

I am unable post message in Live Microsoft Teams meeting.

I tried following request to post chat:

POST https://graph.microsoft.com/v1.0/meetings/{meeting-id}/chatMessages

I am getting error as

   "message": "Resource not found for the segment 'meetings'."

chatError

when I tried following request:

POST https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/messages

We getting messages only in channels , not in live meeting. Please help us how to get chats in ongoing live meeting.

Thanks

Ameer

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,059 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,569 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,841 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. TH-4749-MSFT 3,290 Reputation points
    2023-05-11T15:53:22.6533333+00:00

    Hello Ameer K,

    Thanks for reaching out. There is no meeting endpoint hence you are receiving the error message. To send a chat message please use the example documented in article [https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http](https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http).
    

    To retrieve messages for live events, use the chats messages endpoint as follows:

    https://graph.microsoft.com/v1.0/user/{user-id}/chats/{live-meeting-chat-id}/messages

    Please refer to article for more info.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    Thanks.

    0 comments No comments

  2. Ameer K 15 Reputation points
    2023-05-12T05:53:25.92+00:00

    Hi Team,

    When I am trying the following request I am getting message like

    "message": "Resource not found for the segment 'user'.",
    

    https://graph.microsoft.com/v1.0/user/{user-id}/chats/{live-meeting-chat-id}/messages

    nwChatError

    So kindly guide me to chat message in live meeting (meeting-chat);

    Thanks

    Ameer

    0 comments No comments

  3. TH-4749-MSFT 3,290 Reputation points
    2023-05-12T13:38:53.2233333+00:00

    Hello Ameer K,

    Thanks for your reply. There appears to be a space before user id and chat id. Please remove these spaces and try again.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    Thanks.