Capability Sources
List messages in a Microsoft Teams channel
Changed onLists 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 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.
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.
Microsoft365 Teams Channel Messages Response required
ok, true required
messages, Microsoft365 Teams Channel Message[] required
nextPageToken, string nullable required
hasMore, boolean required
Changes
- info
removed the non-success response with the status
- info
- info
endpoint added
- info