{ "opencollection": "1.0.0", "info": { "name": "Microsoft Graph Teams Apps Messages API", "version": "1.0.0" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize", "accessTokenUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Messages", "type": "folder" }, "items": [ { "info": { "name": "Microsoft Teams List Channel Messages", "type": "http" }, "http": { "method": "GET", "url": "https://graph.microsoft.com/v1.0/teams/:team-id/channels/:channel-id/messages", "params": [ { "name": "team-id", "value": "", "type": "path", "description": "The unique identifier of the team." }, { "name": "channel-id", "value": "", "type": "path", "description": "The unique identifier of the channel." }, { "name": "$top", "value": "", "type": "query", "description": "Maximum number of messages to return." } ] }, "docs": "Retrieve messages from a channel." }, { "info": { "name": "Microsoft Teams Send Channel Message", "type": "http" }, "http": { "method": "POST", "url": "https://graph.microsoft.com/v1.0/teams/:team-id/channels/:channel-id/messages", "params": [ { "name": "team-id", "value": "", "type": "path", "description": "The unique identifier of the team." }, { "name": "channel-id", "value": "", "type": "path", "description": "The unique identifier of the channel." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Send a message to a channel." } ] } ], "bundled": true }