Reply to a message in a channel


APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported.

Create a new reply to a message in a specified channel.


One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Group.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application Not supported.

HTTP request

POST /teams/{id}/channels/{id}/messages/{id}/replies

Request headers

Name Type Description
Authorization string Bearer {token}. Required.

Request body

In the request body, supply a JSON representation of a message object. Only the body property is mandatory, other properties are optional.


If successful, this method returns 201 Created response code with the message that was created.



Here is an example of the request.

Content-type: application/json

  "body": {
    "contentType": "html",
    "content": "Hello World"

Here is an example of the response.

HTTP/1.1 201 Created
Content-type: application/json
Content-length: 160

    "@odata.context": "$metadata#teams('123456-1234-1234-1234-123456789123')/channels('')/messages('id-value')/replies/$entity",
    "id": "id-value",
    "replyToId": null,
    "etag": "id-value",
    "messageType": "message",
    "createdDateTime": "2019-02-04T19:58:15.511Z",
    "lastModifiedDateTime": null,
    "deleted": false,
    "subject": null,
    "summary": null,
    "importance": "normal",
    "locale": "en-us",
    "policyViolation": null,
    "from": {
        "application": null,
        "device": null,
        "conversation": null,
        "user": {
            "id": "id-value",
            "displayName": "Joh Doe",
            "userIdentityType": "aadUser"
    "body": {
        "contentType": "html",
        "content": "Hello World"
    "attachments": [],
    "mentions": [],
    "reactions": []

SDK sample code

GraphServiceClient graphClient = new GraphServiceClient( authProvider );

var body = new ItemBody
	ContentType = BodyType.Html,
	Content = "Hello World",

var chatMessage = new ChatMessage
	Body = body,

await graphClient.Teams["{id}"].Channels["{id}"].Messages["{id}"].Replies

Read the SDK documentation for details on how to add the SDK to your project and create an authProvider instance.