Use Microsoft Teams to read, send, update, or delete chat and channel messages, reply to threads, and add reactions. List teams, chats, channels, and their members to resolve destinations.
Switch to trigger mode to start a workflow from message notifications in a selected chat, or when the outgoing webhook is @mentioned in a channel. To mention a user, wrap the name in <at> tags, such as <at>userName</at>, and supply the mention details required by the action.
Chat subscriptions request creation and update notifications, but Sim deduplicates them by subscription and message ID within a seven-day window. Later edits may not start a separate workflow run.
Sim requests these scopes when someone connects a Microsoft Teams account. For a self-hosted deployment, register your own app with the provider using the settings below. See Integrations and OAuth for setup.
Setting Value Redirect URI <NEXT_PUBLIC_APP_URL>/api/auth/oauth2/callback/microsoft-teamsEnvironment variables MICROSOFT_CLIENT_ID, MICROSOFT_CLIENT_SECRET
Scope Description openidStandard authentication profileAccess profile information emailAccess email address User.ReadSign in and read your profile Chat.ReadRead your Teams chat messages Chat.ReadWriteRead and write your Teams chat messages Chat.ReadBasicRead names and members of your Teams chats ChatMessage.SendSend chat messages Channel.ReadBasic.AllRead channel names and descriptions ChannelMessage.SendSend channel messages ChannelMessage.Read.AllRead channel messages ChannelMessage.ReadWriteRead and write channel messages ChannelMember.Read.AllRead team channel members Group.Read.AllRead all groups, memberships, and group content Group.ReadWrite.AllRead and write all groups Team.ReadBasic.AllRead team names and descriptions TeamMember.Read.AllRead team members offline_accessAccess account when not using the application Files.ReadRead OneDrive files Sites.Read.AllRead documents and list items in all SharePoint sites
Read, write, update, and delete chat and channel messages. Reply to messages, add reactions, and list teams, chats, channels, and their members. Use trigger mode for message notifications in a selected chat, or an @mention of the outgoing webhook in a channel. Chat subscriptions request creation and update notifications, but Sim deduplicates them by subscription and message ID within a seven-day window. Later edits may not start a separate run. To mention users in messages, wrap their name in <at> tags: <at>userName</at>
Read content from a Microsoft Teams chat
Inputs and outputsParameter Type Required Description chatIdstring Yes The ID of the chat to read from (e.g., "19:abc123def456@thread.v2" - from chat listings) includeAttachmentsboolean No Download and include message attachments (hosted contents) into storage
Parameter Type Description successboolean Teams chat read operation success status messageCountnumber Number of messages retrieved from chat chatIdstring ID of the chat that was read from messagesarray Array of chat message objects attachmentCountnumber Total number of attachments found attachmentTypesarray Types of attachments found contentstring Formatted content of chat messages attachmentsfile[] Uploaded attachments for convenience (flattened)
Write or update content in a Microsoft Teams chat
Inputs and outputsParameter Type Required Description chatIdstring Yes The ID of the chat to write to (e.g., "19:abc123def456@thread.v2" - from chat listings) contentstring Yes The content to write to the message (plain text or HTML formatted, supports @mentions) filesfile[] No Files to attach to the message
Parameter Type Description successboolean Teams chat message send success status messageIdstring Unique identifier for the sent message chatIdstring ID of the chat where message was sent createdTimestring Timestamp when message was created urlstring Web URL to the message updatedContentboolean Whether content was successfully updated filesfile[] Files attached to the message
Read content from a Microsoft Teams channel
Inputs and outputsParameter Type Required Description teamIdstring Yes The ID of the team to read from (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID from team listings) channelIdstring Yes The ID of the channel to read from (e.g., "19:abc123def456@thread.tacv2" - from channel listings) includeAttachmentsboolean No Download and include message attachments (hosted contents) into storage
Parameter Type Description successboolean Teams channel read operation success status messageCountnumber Number of messages retrieved from channel teamIdstring ID of the team that was read from channelIdstring ID of the channel that was read from messagesarray Array of channel message objects attachmentCountnumber Total number of attachments found attachmentTypesarray Types of attachments found contentstring Formatted content of channel messages attachmentsfile[] Uploaded attachments for convenience (flattened)
Write or send a message to a Microsoft Teams channel
Inputs and outputsParameter Type Required Description teamIdstring Yes The ID of the team to write to (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID from team listings) channelIdstring Yes The ID of the channel to write to (e.g., "19:abc123def456@thread.tacv2" - from channel listings) contentstring Yes The content to write to the channel (plain text or HTML formatted, supports @mentions) filesfile[] No Files to attach to the message
Parameter Type Description successboolean Teams channel message send success status messageIdstring Unique identifier for the sent message teamIdstring ID of the team where message was sent channelIdstring ID of the channel where message was sent createdTimestring Timestamp when message was created urlstring Web URL to the message updatedContentboolean Whether content was successfully updated filesfile[] Files attached to the message
Update an existing message in a Microsoft Teams chat
Inputs and outputsParameter Type Required Description chatIdstring Yes The ID of the chat containing the message (e.g., "19:abc123def456@thread.v2" - from chat listings) messageIdstring Yes The ID of the message to update (e.g., "1234567890123" - a numeric string from message responses) contentstring Yes The new content for the message (plain text or HTML formatted)
Parameter Type Description successboolean Whether the update was successful messageIdstring ID of the updated message updatedContentboolean Whether content was successfully updated
Update an existing message in a Microsoft Teams channel
Inputs and outputsParameter Type Required Description teamIdstring Yes The ID of the team (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID from team listings or channel info) channelIdstring Yes The ID of the channel containing the message (e.g., "19:abc123def456@thread.tacv2" - from channel listings) messageIdstring Yes The ID of the message to update (e.g., "1234567890123" - a numeric string from message responses) contentstring Yes The new content for the message (plain text or HTML formatted)
Parameter Type Description successboolean Whether the update was successful messageIdstring ID of the updated message updatedContentboolean Whether content was successfully updated
Soft delete a message in a Microsoft Teams chat
Inputs and outputsParameter Type Required Description chatIdstring Yes The ID of the chat containing the message (e.g., "19:abc123def456@thread.v2" - from chat listings) messageIdstring Yes The ID of the message to delete (e.g., "1234567890123" - a numeric string from message responses)
Parameter Type Description successboolean Whether the deletion was successful deletedboolean Confirmation of deletion messageIdstring ID of the deleted message
Soft delete a message in a Microsoft Teams channel
Inputs and outputsParameter Type Required Description teamIdstring Yes The ID of the team (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID from team listings or channel info) channelIdstring Yes The ID of the channel containing the message (e.g., "19:abc123def456@thread.tacv2" - from channel listings) messageIdstring Yes The ID of the message to delete (e.g., "1234567890123" - a numeric string from message responses)
Parameter Type Description successboolean Whether the deletion was successful deletedboolean Confirmation of deletion messageIdstring ID of the deleted message
Reply to an existing message in a Microsoft Teams channel
Inputs and outputsParameter Type Required Description teamIdstring Yes The ID of the team (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID from team listings or channel info) channelIdstring Yes The ID of the channel (e.g., "19:abc123def456@thread.tacv2" - from channel listings) messageIdstring Yes The ID of the message to reply to (e.g., "1234567890123" - a numeric string from message responses) contentstring Yes The reply content (plain text or HTML formatted message)
Parameter Type Description successboolean Whether the reply was successful messageIdstring ID of the reply message updatedContentboolean Whether content was successfully sent
Get a specific message from a Microsoft Teams chat or channel
Inputs and outputsParameter Type Required Description teamIdstring No The ID of the team for channel messages (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID) channelIdstring No The ID of the channel for channel messages (e.g., "19:abc123def456@thread.tacv2") chatIdstring No The ID of the chat for chat messages (e.g., "19:abc123def456@thread.v2") messageIdstring Yes The ID of the message to retrieve (e.g., "1234567890123" - a numeric string from message responses)
Parameter Type Description successboolean Whether the retrieval was successful contentstring The message content metadataobject Message metadata including sender, timestamp, etc. ↳ messageId string Message ID ↳ content string Message content ↳ createdTime string Message creation timestamp ↳ url string Web URL to the message ↳ teamId string Team ID ↳ channelId string Channel ID ↳ chatId string Chat ID ↳ messages array Array of message details ↳ messageCount number Number of messages
Add an emoji reaction to a message in Microsoft Teams
Inputs and outputsParameter Type Required Description teamIdstring No The ID of the team for channel messages (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID) channelIdstring No The ID of the channel for channel messages (e.g., "19:abc123def456@thread.tacv2") chatIdstring No The ID of the chat for chat messages (e.g., "19:abc123def456@thread.v2") messageIdstring Yes The ID of the message to react to (e.g., "1234567890123" - a numeric string from message responses) reactionTypestring Yes The emoji reaction (e.g., ❤️, 👍, 😊)
Parameter Type Description successboolean Whether the reaction was added successfully reactionTypestring The emoji that was added messageIdstring ID of the message
Remove an emoji reaction from a message in Microsoft Teams
Inputs and outputsParameter Type Required Description teamIdstring No The ID of the team for channel messages (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID) channelIdstring No The ID of the channel for channel messages (e.g., "19:abc123def456@thread.tacv2") chatIdstring No The ID of the chat for chat messages (e.g., "19:abc123def456@thread.v2") messageIdstring Yes The ID of the message (e.g., "1234567890123" - a numeric string from message responses) reactionTypestring Yes The emoji reaction to remove (e.g., ❤️, 👍, 😊)
Parameter Type Description successboolean Whether the reaction was removed successfully reactionTypestring The emoji that was removed messageIdstring ID of the message
List all members of a Microsoft Teams team
Inputs and outputsParameter Type Required Description teamIdstring Yes The ID of the team (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID from team listings)
Parameter Type Description successboolean Whether the listing was successful membersarray Array of team members memberCountnumber Total number of members
List all members of a Microsoft Teams channel
Inputs and outputsParameter Type Required Description teamIdstring Yes The ID of the team (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID from team listings) channelIdstring Yes The ID of the channel (e.g., "19:abc123def456@thread.tacv2" - from channel listings)
Parameter Type Description successboolean Whether the listing was successful membersarray Array of channel members memberCountnumber Total number of members
List all members of a Microsoft Teams chat
Inputs and outputsParameter Type Required Description chatIdstring Yes The ID of the chat (e.g., "19:abc123def456@thread.v2" - from chat listings)
Parameter Type Description successboolean Whether the listing was successful membersarray Array of chat members memberCountnumber Total number of members hasMoreboolean Whether Graph indicated additional pages beyond this response
List the Microsoft Teams the current user is a direct member of
Inputs and outputsParameter Type Required Description
Parameter Type Description successboolean Whether the listing was successful teamsarray Array of teams the user is a member of teamCountnumber Total number of teams hasMoreboolean Whether Graph indicated additional pages beyond this response
List the Microsoft Teams chats the current user is part of
Inputs and outputsParameter Type Required Description
Parameter Type Description successboolean Whether the listing was successful chatsarray Array of chats the user is part of chatCountnumber Total number of chats hasMoreboolean Whether Graph indicated additional pages beyond this response
List all channels in a Microsoft Teams team
Inputs and outputsParameter Type Required Description teamIdstring Yes The ID of the team (e.g., "12345678-abcd-1234-efgh-123456789012" - a GUID from team listings)
Parameter Type Description successboolean Whether the listing was successful channelsarray Array of channels in the team channelCountnumber Total number of channels hasMoreboolean Whether Graph indicated additional pages beyond this response
A trigger starts a workflow when a supported event occurs in this service.
Trigger workflows when the outgoing webhook is @mentioned in a Microsoft Teams channel.
Configuration and outputsParameter Type Required Description hmacSecretstring Yes The security token provided by Teams when creating an outgoing webhook. Used to verify request authenticity.
Parameter Type Description fromobject ↳ id string Sender ID ↳ name string Sender name ↳ aadObjectId string AAD Object ID messageobject ↳ raw object ↳ attachments json Array of attachments ↳ channelData object ↳ team object ↳ id string Team ID ↳ tenant object ↳ id string Tenant ID ↳ channel object ↳ id string Channel ID ↳ teamsTeamId string Teams team ID ↳ teamsChannelId string Teams channel ID ↳ conversation object ↳ id string Composite conversation ID ↳ name string Conversation name (nullable) ↳ isGroup boolean Is group conversation ↳ tenantId string Tenant ID ↳ aadObjectId string AAD Object ID (nullable) ↳ conversationType string Conversation type (channel) ↳ text string Message text content ↳ messageType string Message type ↳ channelId string Channel ID (msteams) ↳ timestamp string Timestamp activityobject Activity payload conversationobject ↳ id string Composite conversation ID ↳ name string Conversation name (nullable) ↳ isGroup boolean Is group conversation ↳ tenantId string Tenant ID ↳ aadObjectId string AAD Object ID (nullable) ↳ conversationType string Conversation type (channel)
Trigger workflows from Microsoft Teams chat message notifications via Microsoft Graph subscriptions. Notifications share a seven-day deduplication window keyed by subscription and message ID, so later edits may not start a separate run.
Parameter Type Required Description triggerCredentialsstring Yes This trigger requires microsoft teams credentials to access your account. triggerChatIdstring Yes The ID of the Teams chat to monitor includeAttachmentsboolean No Fetch hosted contents and upload to storage
Parameter Type Description message_idstring Message ID chat_idstring Chat ID from_namestring Sender display name textstring Message body (HTML or text) created_atstring Message timestamp attachmentsfile[] Uploaded attachments as files