Join a workspaceEnter your email address (we suggest using your work email address). Then click Continue. Check your email for a confirmation code from Slack and enter it. Below Accept an invitation, click Join next to the workspace you'd like to join.
While in the present day you'd probably get by just fine assuming IDs are unique across different teams, we strongly recommend scoping all of your storage and retrieval by team ID. Essentially, we recommend considering IDs as only unique within teams, regardless of if experientially they are globally unique.
Here is the easiest way to manually find the slack IDs
Open the slack webpage (http://yourteam.slack.com) and then simply open the channel. The channel ID is displayed in the browser URL:
To find a user ID you need to open your browser dev-tools console and inspect the user-link in the sidebar. The user ID can be found in the HTML attribute "data-member-id":
Or in slack: (1) Click on the users name and choose (2) "Show Profile". Then open the "..." menu and you see the option (3) "Copy Member-ID ..." - to get your own user ID via the UI, you have to click the Team-Logo in top-left corner and then choose "Profile & Account" (this is not included in the screenshot)
Simply open the dev-tools of your browser, switch to the "Console" tab and enter the text boot_data.team_id
into the console. This will display your team ID:
Slightly different answer to the existing ones.
Whenever I wanted to just find out quickly what the relevant ids are for a specific team, I just opened the Slack web client and inspected the relevant elements. (Using Chrome Dev Tools)
https://my.slack.com/messages
The <a>
tag that links to a user tends to include a data-member-id
attribute, the content of which is the user id.
The same holds true for channels. If you inspect any of the channels in the sidebar, you can see they are ordered as <li>
list elements each containing the channel id in the class name.
For the team id, you can open the entire source of the slack web client and CTRL-F for your team_domain
(e.g. myslack55
for myslack55.slack.com
) and that should find you the team id.
Basically, it's all hidden in plain sight. You just need to know where to look ;)
As of July 2019, it seems like the team id and the channel id is already being shown via the web.
As you can see in the screenshot, the 2nd to the last node is the team id (prefixed with "T") and the last node is the channel id (prefixed with "C"). All you have to do is open slack via the web, go to the specific channel, and you can see the url change to something close to the screenshot above.
The answer marked correct here does not work for me, but I may have found an even easier way with test tokens.
Create a test token: https://api.slack.com/docs/oauth-test-tokens
Scroll down to the "try it now!" button. You land on auth.test
: https://api.slack.com/methods/auth.test/test
Choose the team you want to test and click Test Method. You can find your team_id
(and user_id
) there.
Do the same for channels.list
. You can click "View Another Method" and search or go to: https://api.slack.com/methods/channels.list/test
Choose the team again and Test Method. Cmd+F through the channels
object looking for whatever channel_id
s you need.
As of 2017, it looks like slack made it easier to find.
Here is the easiest way to manually find the Team IDs.
Visit your slack room via a web browser. Right Click > "View Source"
And search for Team_id:
The easiest way to get the team and channel id and is to add slack developer tool app to your slack, you can can it here.
After adding it all you simply need to do is go to any channel and choose this command
/sdt whoami
It will output a snippet like this one.
There are much more commands and other things you can perform with this slack app, I would highly recommend it if you're building any integrations for slack.
You can also simply right-click on the slack channel (or direct message) in the desktop App and select the 'Copy Link' option.
This will give you a URL of the form: https://org.slack.com/messages/[channel-ID]
I attest this works on High Sierra Mac OSX - Slack 3.1.1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With