Skip to main content

Create Teams channel

Action ID: tools.microsoft_teams.create_channel Create a new channel in a Microsoft Teams team. Can create either public (standard) or private channels. Reference: https://learn.microsoft.com/en-us/graph/api/channel-post

Secrets

Required secrets:
  • microsoft_teams_oauth: OAuth token MICROSOFT_TEAMS_USER_TOKEN.

Input fields

display_name
string
required
The display name for the channel.
team_id
string
required
The ID of the team.
base_url
string
Base URL for the Microsoft Graph API.Default: "https://graph.microsoft.com".Allowed values: https://graph.microsoft.com, https://graph.microsoft.us.
description
string | null
Description for the channel.Default: null.
is_private
boolean
Whether to create a private channel (requires members).Default: false.
owner_user_ids
array[string] | null
List of user IDs to add as owners (required for private channels).Default: null.

Delete Teams channel

Action ID: tools.microsoft_teams.delete_channel Delete a channel from a Microsoft Teams team. Reference: https://learn.microsoft.com/en-us/graph/api/channel-delete?view=graph-rest-beta&tabs=http

Secrets

Required secrets:
  • microsoft_teams_oauth: OAuth token MICROSOFT_TEAMS_USER_TOKEN.

Input fields

channel_id
string
required
The ID of the channel.
team_id
string
required
The ID of the team.
base_url
string
Base URL for the Microsoft Graph API.Default: "https://graph.microsoft.com".Allowed values: https://graph.microsoft.com, https://graph.microsoft.us.

List channel messages

Action ID: tools.microsoft_teams.list_channel_messages Retrieve the list of messages (without the replies) in a channel of a team. Reference: https://learn.microsoft.com/en-us/graph/api/channel-list-messages?view=graph-rest-beta&tabs=python

Secrets

Required secrets:
  • microsoft_teams_oauth: OAuth token MICROSOFT_TEAMS_USER_TOKEN.

Input fields

channel_id
string
required
The ID of the channel.
team_id
string
required
The ID of the team.
base_url
string
Base URL for the Microsoft Graph API.Default: "https://graph.microsoft.com".Allowed values: https://graph.microsoft.com, https://graph.microsoft.us.
expand_replies
boolean
Whether to expand replies for each message.Default: false.
top
integer | null
Number of messages to return per page (default 20, max 50).Default: null.

Send adaptive card

Action ID: tools.microsoft_teams.send_adaptive_card Send a message with Adaptive Cards to a Microsoft Teams channel. Reference: https://learn.microsoft.com/en-us/graph/api/channel-post-messages

Secrets

Required secrets:
  • microsoft_teams_oauth: OAuth token MICROSOFT_TEAMS_USER_TOKEN.

Input fields

card_elements
array[object]
required
List of Adaptive Card elements.
channel_id
string
required
The ID of the channel.
team_id
string
required
The ID of the team.
base_url
string
Base URL for the Microsoft Graph API.Default: "https://graph.microsoft.com".Allowed values: https://graph.microsoft.com, https://graph.microsoft.us.
title
string | null
Title for the card (appears as subject).Default: null.

Send replies to a Teams message

Action ID: tools.microsoft_teams.post_replies Send a reply to a Microsoft Teams message. Reference: https://learn.microsoft.com/en-us/graph/api/chatmessage-post-replies

Secrets

Required secrets:
  • microsoft_teams_oauth: OAuth token MICROSOFT_TEAMS_USER_TOKEN.

Input fields

channel_id
string
required
The ID of the channel.
message
string
required
The reply message to send.
message_id
string
required
The ID of the message to reply to.
team_id
string
required
The ID of the team.
base_url
string
Base URL for the Microsoft Graph API.Default: "https://graph.microsoft.com".Allowed values: https://graph.microsoft.com, https://graph.microsoft.us.
contentType
string
The content type of the reply message.Default: "html".

Send Teams message

Action ID: tools.microsoft_teams.send_message Send a message to a Microsoft Teams channel. Reference: https://learn.microsoft.com/en-us/graph/api/channel-post-messages

Secrets

Required secrets:
  • microsoft_teams_oauth: OAuth token MICROSOFT_TEAMS_USER_TOKEN.

Input fields

channel_id
string
required
The ID of the channel.
message
string
required
The message to send.
team_id
string
required
The ID of the team.
base_url
string
Base URL for the Microsoft Graph API.Default: "https://graph.microsoft.com".Allowed values: https://graph.microsoft.com, https://graph.microsoft.us.