Capability Sources
Post a message to a Microsoft Teams channel
Changed onPosts 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 URLhttps://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
Microsoft365 Teams Channel Message Body 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.
Microsoft365 Teams Channel Message Response required
ok, true required
message, Microsoft365 Teams Channel Message required
Changes
- info
removed the non-success response with the status
- info
- info
endpoint added
- info