Skip to main content

teams message get

Auto-generated reference

This page is generated from checked-in CLI metadata for release v0.13.0. Do not edit it by hand.

Get a specific message

Synopsis​

teams message get (--team <TEAM> --channel <CHANNEL> [--reply <REPLY>] | --chat <CHAT>) (MESSAGE_ID | --message <MESSAGE>) [--with-attachments]

Options​

OptionValueRequiredEnvDefaultDescription
--teamTEAMnoTeam ID (for channel messages; requires --channel)
--channelCHANNELnoChannel ID (for channel messages; requires --team)
--chatCHATnoChat ID (for chat messages)
--replyREPLYnoReply ID, to target a reply in a channel thread (MESSAGE_ID is then the parent post)
MESSAGE_IDMESSAGE_IDnoMessage ID
--messageMESSAGEnoMessage ID
--with-attachmentsWITH_ATTACHMENTSnofalseInclude an inventory of attachments and inline images

Examples​

Read message and attachment inventory​

teams message get --team "$TEAM_ID" --channel "$CHANNEL_ID" "$MESSAGE_ID" --with-attachments --output json

Exit Codes​

CodeMeaning
0success
2invalid input
3authentication error
4permission denied
5not found
6rate limited

See Also​