Search code examples
urlslack-apislack

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

  • 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