How To Get Slack Group Id

Obtaining the Group ID on Slack may seem daunting, but by following a few easy steps, you can get it done quickly. As someone who uses Slack often, I have often needed the Group ID for different reasons. In this article, I will walk you through the steps of acquiring the Slack Group ID, while also sharing some of my personal tips.

Step 1: Accessing the Slack API

In order to retrieve the Group ID, we’ll need to make use of the Slack API. First, head over to the Slack API documentation and sign in to your Slack account. Once you’re signed in, create a new app by navigating to “Your Apps” and clicking on “Create New App”.

Step 2: Configuring the App

After creating the app, you’ll be redirected to the app’s settings. Here, you’ll find a navigation menu on the left-hand side. Click on “Basic Information” and then scroll down to the “App-Level Tokens” section. Generate a new token by clicking on “Create Token” and make sure to grant the necessary permissions for accessing the necessary information.

Step 3: Making API Calls

Now that we have the app and the token set up, it’s time to dive into some code! You can use the programming language of your choice to make API calls to retrieve the Slack Group ID. Here’s a simple example using Python:

import requests

token = "your_token_here"
url = ""
headers = {
"Authorization": f"Bearer {token}"

response = requests.get(url, headers=headers)
data = response.json()

for group in data["groups"]:
group_id = group["id"]
group_name = group["name"]
print(f"Group Name: {group_name}, Group ID: {group_id}")

Remember to replace “your_token_here” with the token you generated in Step 2. Make sure to have the necessary libraries installed and run the code. The code snippet above lists all the groups in your Slack workspace along with their corresponding Group IDs.

Step 4: Finding the Group ID

Once you have the list of groups and their IDs, you can easily locate the desired Slack Group ID. Look for the group you’re interested in and note down its ID. This Group ID can now be used for various purposes, such as making API calls specific to that group or integrating with other services.


Obtaining the Slack Group ID might seem like a complex task at first, but by following these steps, you can easily retrieve it. By utilizing the Slack API and making the necessary API calls, you’ll be able to access the Group ID of any Slack group in your workspace. Now you can confidently navigate the Slack ecosystem and unleash the full potential of your app or integration!