Capability Sources

Post a message to a Microsoft Teams channel

Changed on

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

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

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

teamId, string required

Team ID from the joined teams list.

channelId, string required

Channel ID from the team's channels list.

Request body

Microsoft365TeamsChannelMessageBody required
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

Teams channel message posted.

Microsoft365TeamsChannelMessageResponse required
ok, true required
message, Microsoft365TeamsChannelMessage required

Changes