...

/

Get Conversation Properties

Get Conversation Properties

Learn to use Slack API calls to get variables and other data from the workspace.

Overview

In this lesson, we retrieve information from Slack’s Conversations API. This set of endpoints is useful when we create an application for different workspaces.

Let’s look at the following endpoints in this lesson:

  1. conversations.history: This endpoint fetches a conversation’s history, including messages and events.
  2. conversations.info: This endpoint retrieves information about a conversation.
  3. conversations.list: This endpoint lists all channels in a Slack team.
  4. conversations.members: This endpoint retrieve members of a conversation.
  5. conversations.replies: This endpoint retrieve a thread of messages posted to a conversation.

Get the conversation history

To acquire the conversation history, we access the https://slack.com/api/conversations.history endpoint. This endpoint allows us to get all the sent messages present in a conversation. You’re advised to use the limit parameter so that the response is not too large.

Some important query parameters for the conversations.history endpoint are the following:

Access this course and 1400+ top-rated courses and projects.