Capability Sources

List messages in a Microsoft Teams channel

Changed on

Lists recent posts in a Teams channel with authors, subjects, message types, bodies and links. Requires the Teams channel messages read permission. Pass nextPageToken as pageToken for the next page; hasMore with a null token means the list is partial.

get/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.

Query parameters

maxResults, integer

Maximum messages per page (default 20).

pageToken, string

nextPageToken from the previous page of the same list

Response

Teams channel messages returned.

Microsoft365TeamsChannelMessagesResponse required
ok, true required
messages, Microsoft365TeamsChannelMessage[] required
nextPageToken, string nullable required
hasMore, boolean required

Changes