---
title: "Post a message to a Microsoft Teams channel"
method: POST
path: "/v1/capabilities/microsoft-365/teams/{teamId}/channels/{channelId}/messages"
tags: ["Capability Sources"]
---

# Post a message to a Microsoft Teams channel

`POST /v1/capabilities/microsoft-365/teams/{teamId}/channels/{channelId}/messages`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/capabilities/microsoft-365/teams/{teamId}/channels/{channelId}/messages`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Posts one new message to a Teams channel after explicit user confirmation (confirmSend: true). Requires the Teams channel send permission.

## Path parameters

- `teamId` string, required
- `channelId` string, required

## Request body

- Microsoft365TeamsChannelMessageBody
  - `subject` string: Optional subject line for a new channel post.
  - `content` string, required
  - `confirmSend` true, required: Must be true only after the user explicitly asked to post this message to this channel.

## Response `200`

Teams channel message posted.

- Microsoft365TeamsChannelMessageResponse
  - `ok` true, required
  - `message` Microsoft365TeamsChannelMessage, required
    - `id` string, required
    - `createdDateTime` string, required
    - `lastModifiedDateTime` string, required
    - `subject` string, required
    - `content` string, required
    - `contentType` string, required
    - `messageType` string, required
    - `from` Microsoft365EmailAddress, nullable, required
      - `name` string, required
      - `address` string, required
    - `webUrl` string, required

## Other responses

- `400`: A request parameter or payload is invalid.
- `401`: The caller must be signed in.
- `403`: The connection is blocked by organization policy.
- `409`: The calling member has not connected Microsoft 365 or is missing permission.
- `502`: Microsoft Graph rejected the request.

## Changes

- **2026-12-02** `79f1f5ef5c76`: 1 info
  - removed the non-success response with the status `404`
- **2026-11-30** `8491c9c1b679`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/capabilities/microsoft-365/teams/:teamId/channels/:channelId/messages/post.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
