Slack URL to open a channel from browser

139,236

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.

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

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.

Share:
139,236

Related videos on Youtube

MattDiamant
Author by

MattDiamant

Updated on June 30, 2021

Comments

  • MattDiamant
    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
    MattDiamant over 8 years
    Maybe I should have been more specific, but I want to open the Slack app from a link. I've edited the question.
  • yorammi
    yorammi over 8 years
    Are 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
    MattDiamant over 8 years
    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.
  • yorammi
    yorammi over 8 years
    Slack app activation is different on different OS - you don't activate the Mac app with the same command as the Windows app
  • MattDiamant
    MattDiamant over 8 years
    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.
  • Oded Breiner
    Oded Breiner about 8 years
    It's a pretty common thing called Deep Links, or URI schemes, iTunes has had it for years.
  • MattDiamant
    MattDiamant about 8 years
    Right, I'm aware of the URL for slack messages. My only goal is to have it open in the app.
  • MattDiamant
    MattDiamant almost 8 years
    Very promising. I don't have the API token of my organization, but that's doing something from Firefox and Safari (not Chrome?).
  • Phill Healey
    Phill Healey almost 8 years
    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.
  • mikegertrudes
    mikegertrudes over 7 years
    You can get your team id and each channel's id from doing a View Source on the web version of Slack fyi.
  • Mike N
    Mike N over 7 years
    This doesn't seem to work for me. slack:// opens the app but the channel/team are ignored.
  • Jeff Evans
    Jeff Evans over 7 years
    Correction to the first link above (do not include the hash): https://<organization>.slack.com/messages/<channel>/
  • Ryan Burney
    Ryan Burney over 7 years
  • Orangutech
    Orangutech about 7 years
    And more on getting your team and channel IDs here: stackoverflow.com/a/41653047/433223
  • Dima Korobskiy
    Dima Korobskiy almost 6 years
    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.
  • Varun Garg
    Varun Garg over 5 years
    This requires the user to be already signed in the specific workspace on the device that we are using the URI on.