Add and Remove Reactions

Learn to use Slack's API calls to add and get reactions for a specific message.

Overview

Reactions are a pictorial way to interact with messages, but our application can also use them. For example, we can make a Slack application that counts reactions and responds accordingly, like a polling application.

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

  1. reactions.add: This endpoint adds a reaction to an item.
  2. reactions.remove: This endpoint removes a reaction from an item.

Add a reaction

To add a reaction, we access the https://slack.com/api/reactions.add endpoint.

Some important query parameters for the reactions.add endpoint are the following:

Get hands-on with 1200+ tech skills courses.