Send a message to 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 message in the 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

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.

Note: Sending messages with attachments and images is not supported.


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/$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": []