Load up the settings for your app from the app management page.This will allow your app to view all the messages within any public channel in a workspace. That scope lets your app retrieve a list of all the public channels in a workspace so that we can pick one to retrieve a message from. For this guide, we need to add two scopes. There are lots of scopes available, and you can read our OAuth guide for more information on why they're needed, and what they do. In order to read anything else, it will need to request scopes to get permission. In a raw state, your app will only be able to view messages that are sent to it. Make sure you create the app in a test workspace, because you're going to be requesting some major data access permissions.Īfter you've done that, come back here and keep reading. If you don't have one yet, here's a very quick guide to help you create one. One thing you'll need before starting is a Slack app. Getting started with retrieving messages.
It will also show you how to identify threaded messages, and retrieve the replies in a thread.
This guide will show you how to access the history of a Slack conversation and then pull out the details of a specific message. However, there are some occasions where it might be necessary for an app to actively seek out a message and find it in the wild. Slack apps tend to encounter messages most often when receiving them in Events API payloads or in request payloads when users invoke slash commands or custom actions.