Slack URL to open a channel from browser
Solution 1
The URI to open a specific channel in Slack app is:
slack://channel?id=<CHANNEL-ID>&team=<TEAM-ID>
You will probably need these resources of the Slack API to get IDs of your team and channel:
Here's the full documentation from Slack
Solution 2
Referencing a channel within a conversation
To create a clickable reference to a channel in a Slack conversation, just type #
followed by the channel name. For example: #general
.
To grab a link to a channel through the Slack UI
To share the channel URL externally, you can grab its link by control-clicking (Mac) or right-clicking (Windows) on the channel name:
The link would look like this:
https://yourteam.slack.com/messages/C69S1L3SS
Note that this link doesn't change even if you change the name of the channel. So, it is better to use this link rather than the one based on channel's name.
To compose a URL for a channel based on channel name
https://yourteam.slack.com/channels/<channel_name>
Opening the above URL from a browser would launch the Slack client (if available) or open the slack channel on the browser itself.
To compose a URL for a direct message (DM) channel to a user
https://yourteam.slack.com/channels/<username>
Solution 3
Sure you can:
https://<organization>.slack.com/messages/<channel>/
for example: https://tikal.slack.com/messages/general/ (of course that for accessing it, you must be part of the team)
Solution 4
This link opens the channel in the browser
https://<org-name>.slack.com/messages/<channel-name>
This link opens up the slack channel in the App
https://<org-name>.slack.com/archives/<channel-name>
Solution 5
You can use
slack://
in order to open the Slack desktop application. For example, on mac, I've run:
open slack://
from the terminal and it opens the Mac desktop Slack application. Still, I didn't figure out the URL that should be used for opening a certain team, channel or message.
Related videos on Youtube
MattDiamant
Updated on June 30, 2021Comments
-
MattDiamant almost 3 years
This iTunes URL will open The Hitchhiker's Guide to the Galaxy in your iTunes:
itmss://itunes.apple.com/us/audiobook/hitchhikers-guide-to-galaxy/id315596797
This Spotify URL will open ALL by the Descendents in Spotify:
spotify:track:22feF2sbtGydtvx1OeLSih
Does Slack have a URL scheme to open a #channel in the Slack app from a link?
I want to put a link on my team's site that can link to the Slack #channel we use, for use by other people in the company.
-
MattDiamant over 8 yearsMaybe I should have been more specific, but I want to open the Slack app from a link. I've edited the question.
-
yorammi over 8 yearsAre you sure that everyone installed the desktop app and that everyone has the same OS (Windows? Mac?) Also activating an application from within a browser is a security risk.
-
MattDiamant over 8 yearsThe OS shouldn't matter if this is enabled, as the browser is launching the application. It's also not a security risk to do this, lots of apps have this capability. It's a link for people with the Slack app, so they'll only click it if they have Slack.
-
yorammi over 8 yearsSlack app activation is different on different OS - you don't activate the Mac app with the same command as the Windows app
-
MattDiamant over 8 yearsThe OS will prompt you if it doesn't recognize the custom protocol handler, but if Slack has this enabled, then it wouldn't be a problem.
-
Oded Breiner about 8 yearsIt's a pretty common thing called Deep Links, or URI schemes, iTunes has had it for years.
-
MattDiamant about 8 yearsRight, I'm aware of the URL for slack messages. My only goal is to have it open in the app.
-
MattDiamant almost 8 yearsVery promising. I don't have the API token of my organization, but that's doing something from Firefox and Safari (not Chrome?).
-
Phill Healey almost 8 yearsJust as a side-note, these links only allow access to those that are already a member of the relevant organisation. For example, in the demo link given above, you need to have the rights to access Tikal.slack.com. Otherwise it will tell you that your account details are incorrect.
-
mikegertrudes over 7 yearsYou can get your team id and each channel's id from doing a View Source on the web version of Slack fyi.
-
Mike N over 7 yearsThis doesn't seem to work for me. slack:// opens the app but the channel/team are ignored.
-
Jeff Evans over 7 yearsCorrection to the first link above (do not include the hash): https://<organization>.slack.com/messages/<channel>/
-
Ryan Burney over 7 yearsMore on deep linking here: api.slack.com/docs/deep-linking#open_a_direct_message
-
Orangutech about 7 yearsAnd more on getting your team and channel IDs here: stackoverflow.com/a/41653047/433223
-
Dima Korobskiy almost 6 yearsI like
/channels
links: very convenient and straightforward. I checked that they also work for people DM channels: use yourteam.slack.com/channels/person to open @person DM. -
Varun Garg over 5 yearsThis requires the user to be already signed in the specific workspace on the device that we are using the URI on.