Lodol Docs

Microsoft Teams

API actions for the Microsoft Teams integration.

Microsoft Teams

Send messages in Microsoft Teams chats and channels, schedule meetings, and manage teams and members.


Add member to team

Add a member to a Teams team.

Parameters

ParameterTypeRequiredDescription
ms_team_idstringYesThe ID of the team. You can find it with the List joined teams or Get IDs from a Teams link actions.
ms_user_idstringYesThe user ID or email address of the person to add. You can find the ID with the Search team members action, or simply enter their email address.
rolestringNoOptional role for the member (e.g., owner).

Response

{
  "ms_team_id": "team123",
  "ms_user_id": "user123",
  "result": {},
  "status": "success"
}

Create channel

Create a new channel in a Teams team.

Parameters

ParameterTypeRequiredDescription
ms_team_idstringYesThe ID of the team. You can find it with the List joined teams or Get IDs from a Teams link actions.
display_namestringYesThe name for the new channel.
descriptionstringNoOptional description for the channel.

Response

{
  "channel_id": "channel123",
  "ms_team_id": "team123",
  "result": {},
  "status": "success"
}

List joined teams

List all Teams the current user has joined.

Parameters

ParameterTypeRequiredDescription
topnumberNoOptional maximum number of teams to return.

Response

{
  "status": "success",
  "team_count": 1,
  "teams": [
    {
      "description": "Engineering team",
      "displayName": "Engineering",
      "id": "72602e12-78ac-474c-99d6-f619710353a9"
    }
  ]
}

List team channels

List channels in a Teams team.

Parameters

ParameterTypeRequiredDescription
ms_team_idstringYesThe ID of the team. You can find it with the List joined teams or Get IDs from a Teams link actions.
topnumberNoOptional maximum number of channels to return.

Response

{
  "channel_count": 1,
  "channels": [
    {
      "description": "General discussion",
      "displayName": "General",
      "id": "19:general@thread.tacv2"
    }
  ],
  "ms_team_id": "team123",
  "status": "success"
}

List user chats

List chats for a user.

Parameters

ParameterTypeRequiredDescription
ms_user_idstringNoThe user ID. Defaults to 'me', the signed-in user.

Response

{
  "chat_count": 1,
  "chats": [
    {
      "chatType": "group",
      "id": "19:abc123@thread.v2",
      "topic": "Project Discussion"
    }
  ],
  "ms_user_id": "me",
  "status": "success"
}

Get the team, channel, and organization (tenant) IDs from a Microsoft Teams link.

Parameters

ParameterTypeRequiredDescription
linkstringYesA Microsoft Teams URL (team or channel link).

Response

{
  "channel_id": "19:abc123@thread.tacv2",
  "ms_team_id": "72602e12-78ac-474c-99d6-f619710353a9",
  "status": "success",
  "tenant_id": "aaaabbbb-0000-cccc-1111-dddd2222eeee"
}

Schedule meeting

Schedule a Teams meeting.

Parameters

ParameterTypeRequiredDescription
organizer_idstringNoThe organizer's user ID. Defaults to 'me', the signed-in user.
subjectstringYesThe meeting subject.
start_datetimestringYesWhen the meeting starts, for example 2026-07-15T09:00:00.
end_datetimestringYesWhen the meeting ends, for example 2026-07-15T10:00:00.
timezonestringYesTime zone for the meeting (e.g., 'America/New_York').
attendeesarrayYesList of attendee email addresses.

Response

{
  "meeting_id": "event123",
  "organizer_id": "me",
  "result": {},
  "status": "success"
}

Search team members

Search for members of a Teams team by name.

Parameters

ParameterTypeRequiredDescription
ms_team_idstringYesThe ID of the team. You can find it with the List joined teams or Get IDs from a Teams link actions.
querystringYesThe person's name to search for. Matches any part of the name and ignores capitalization.
topnumberNoOptional maximum number of results to return.

Response

{
  "member_count": 1,
  "members": [
    {
      "displayName": "John Doe",
      "email": "john@contoso.com",
      "id": "user123"
    }
  ],
  "ms_team_id": "team123",
  "status": "success"
}

Send channel message

Send a message to a Teams channel.

Parameters

ParameterTypeRequiredDescription
ms_team_idstringYesThe ID of the team. You can find it with the List joined teams or Get IDs from a Teams link actions.
channel_idstringYesThe ID of the channel. You can find it with the List team channels, Get IDs from a Teams link, or Create channel actions.
messagestringYesThe message content.

Response

{
  "channel_id": "channel123",
  "ms_team_id": "team123",
  "result": {},
  "status": "success"
}

Send chat message

Send a message to a Teams chat.

Parameters

ParameterTypeRequiredDescription
chat_idstringYesThe ID of the chat. You can find it with the List user chats action.
messagestringYesThe message content.
subjectstringNoOptional message subject.

Response

{
  "chat_id": "chat123",
  "result": {},
  "status": "success"
}

On this page