Every team on Slack has a unique ID number associated with it, called the team ID. This ID helps distinguish between different teams when you belong to multiple Slack workspaces. The team ID also comes in handy when configuring apps and integrations that connect to your Slack workspace.
Finding your Slack team ID is easy – here are the steps:
Check the Slack URL
The easiest way to find your team ID is directly from the Slack URL when you open your workspace in a web browser:
- Go to slack.com and sign in to your workspace
- The URL will be in this format:
https://app.slack.com/client/TXXXXXXX/ - The string of characters after
/client/and before the slash is your unique team ID
So for example, if your Slack URL was https://app.slack.com/client/T02R5FC3F/, your team ID would be T02R5FC3F.
Use the Slack Desktop App
You can also find the team ID through the Slack desktop app:
- Click on the workspace name in the sidebar
- A menu will pop up – the team ID is shown below the workspace name
Check via the Slack API
For developers, you can retrieve the team ID programmatically using the team.info method of the Slack API:
import slack
client = slack.WebClient(token="YOUR_TOKEN_HERE")
response = client.team_info()
team_id = response["team"]["id"]
print(team_id)
The team_id field in the response contains your unique team ID string.
Find the Channel ID
Along with the team ID, you may also need to find the ID of a specific Slack channel for app integrations.
Here is how to get the channel ID:
- Open your Slack team in a browser and navigate to the channel
- The channel ID will be the sequence of letters and numbers after
/client/TXXXXXXX/in the URL
Channel IDs always start with a C, D or G.
So if your URL was https://app.slack.com/client/T02R5FC3F/C02TT9PQR, the channel ID would be C02TT9PQR.
Use Cases for the Team and Channel IDs
Here are some examples of when you may need the Slack team and channel IDs:
- Setting up Slack integrations and bots
- Creating deep links into Slack channels/teams
- Referencing channels via the Slack API
- Debugging issues where you need to provide your workspace details
So in summary, every Slack workspace has a unique team ID, and every channel has an ID. These IDs allow Slack apps and integrations to connect and refer to the correct team and channel.
The IDs can be easily found from the Slack URL, desktop app, or by using the Slack API. Keeping a note of these IDs can help when managing apps, bots, or coding integrations.
Experiences with Finding Slack IDs
In my experience developing Slack apps and integrations for marketing teams, accessing the team and channel IDs is crucial.
For example, when creating a Slack bot that posts updates to various channels, I need to specify the target channel ID when configuring the bot.
And when writing code to retrieve analytics for a Slack workspace, I need to pass in the team ID to pull the correct metrics.
So having easy access to the team and channel IDs saves a lot of time and headaches when integrating third-party apps. The hardest part is usually organizing and keeping track of IDs across multiple workspaces and channels.
Some tips I’ve learned:
- Store IDs in code/config files for reuse
- Maintain a spreadsheet mapping team names to IDs
- Document IDs within Slack itself (in a pinned message or channel topic)
Overall, every Slack developer should know how to quickly find the team and channel information. So bookmark this article as a handy reference!
Let me know in the comments if you have any other questions.

