202

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.

0

7 Answers 7

189

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.

# mention of a channel

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:

grabbing a channel's URL

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>
2
  • 1
    I 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. Jul 12, 2018 at 15:45
  • It is possible to add some text query string to redirect with a message?
    – Lianel
    Nov 18, 2022 at 17:18
118

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)

7
  • 4
    Maybe I should have been more specific, but I want to open the Slack app from a link. I've edited the question. Dec 14, 2015 at 20:47
  • 2
    The 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. Dec 15, 2015 at 19:44
  • 2
    The 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. Dec 15, 2015 at 23:03
  • 2
    It's a pretty common thing called Deep Links, or URI schemes, iTunes has had it for years. Mar 19, 2016 at 8:34
  • 1
    Just 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. May 22, 2016 at 18:20
112

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

6
20

This link opens the channel in the browser

https://<org-name>.slack.com/channels/<channel-name>

This link opens up the slack channel in the App

https://<org-name>.slack.com/archives/<channel-name>
0
8

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.

5

When I tried yorammi's solution I was taken to Slack, but not the channel I specified.

I had better luck with:

https://<organization>.slack.com/messages/#<channel>/

and

https://<organization>.slack.com/messages/<channel>/details/

Although, they were both still displayed in a browser window and not the app.

2
  • Right, I'm aware of the URL for slack messages. My only goal is to have it open in the app. Apr 18, 2016 at 23:37
  • 2
    Correction to the first link above (do not include the hash): https://<organization>.slack.com/messages/<channel>/
    – Jeff Evans
    Oct 20, 2016 at 21:09
0

What you need is this:

slack://channel?team=your workspace id&id=channel id

This will tell the browser to open the Slack App and take you to the given channel in the given workspace.

The problem I see is that Slack does not give you an easy way to copy this URL. Instead, it gives you the option to copy the https://your workspace name.slack.com/archives/channel id of a channel, which will also work, if your browser supports it, but it will leave behind an ugly empty new browser tab opened.

Not the answer you're looking for? Browse other questions tagged or ask your own question.