Slack URL to open a channel from browser

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.


Solution 1:

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

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:

  • GET https://slack.com/api/team.info
  • GET https://slack.com/api/channels.list?exclude_archived=1

Here's the full documentation from Slack