Slack URL to open a channel from browser

UrlSlack ApiSlack

Url Problem Overview


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.

Url Solutions


Solution 1 - Url

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 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>

Solution 2 - Url

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 3 - Url

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 4 - Url

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.

Solution 5 - Url

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 6 - Url

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMattDiamantView Question on Stackoverflow
Solution 1 - UrlcodeforesterView Answer on Stackoverflow
Solution 2 - UrlyorammiView Answer on Stackoverflow
Solution 3 - UrlmislavView Answer on Stackoverflow
Solution 4 - UrlyorammiView Answer on Stackoverflow
Solution 5 - UrlJoviano DiasView Answer on Stackoverflow
Solution 6 - UrlVentorView Answer on Stackoverflow