Back to Blog
Guide

How to Find a Slack Channel ID (and Your Workspace ID)

Click the channel name and read the last line of the About tab: Channel ID, with a copy button. We also ran the API calls that fail when you pass a channel name instead of the ID, and the fix.

Slack Green Team
September 29, 2026
November 8, 2026
4 min read
Share:
slack tips
slack api
channels

To find a Slack channel ID, open the channel, click its name at the top, and look at the last line of the About tab. It reads "Channel ID: C0B7GGE8Q1Y" with a copy button next to it. Click the button and Slack shows "Copied!". The ID is also the last part of the channel's address in Slack in a browser: app.slack.com/client/T0B7JBCDKC1/C0B7GGE8Q1Y. Your workspace URL and workspace ID are below too: the URL is the something.slack.com address you sign in with, and the ID starts with T.

We checked every step below in the Slack web app on 29 September 2026, in a one-person test workspace, and ran the API calls with a real token. The IDs on this page are real ones from that workspace.

The About tab of the #social channel in Slack, with "Channel ID: C0B7GGE8Q1Y" and a copy button at the bottom, and the "Copied!" label after a click

Find the channel ID in the Slack app

  • Open the channel.
  • Click the channel name in the header, next to the # or the lock.
  • Stay on the About tab and scroll to the bottom.
  • Click the copy icon after "Channel ID".
  • Private channels show the ID in the same place. The same About tab holds the channel's topic and description, which show in different places; see Slack channel topic vs description. Our private test channel had the ID C0C5ARWS936.

    The browser address is the second place to look. In Slack on the web, every channel URL has the form https://app.slack.com/client/<workspace ID>/<channel ID>. The part after the last slash is the channel ID, and the part before it is the workspace ID.

    What a Slack channel ID looks like

    Every ID we read in two workspaces had 11 characters: one capital letter that names the type, then 10 capital letters and digits.

    KindExample from our testFirst letterLength
    Public channelC0B7GGE8Q1YC11
    Private channel, created 29 SeptemberC0C5ARWS936C11
    Direct messageD0B7D4VDCUDD11
    Workspace (team)T0B7JBCDKC1T11
    Member (user)U0B7L4YK420U11

    We also listed every conversation in our company workspace with conversations.list, counting prefixes only. It held 14 public channels, all C and 11 characters, and 12 direct messages, all D and 11 characters.

    Older guides say private channels start with G. Our new private channel started with C, and the API marked it "is_private": true. Slack's docs say older private channels and group DMs can still carry a G ID; we had none to check. To tell public from private, read is_private, not the first letter.

    Find your Slack workspace ID (team ID)

    The workspace ID starts with T. You can read it in two places:

  • • In Slack on the web, it is the part of the URL after /client/: app.slack.com/client/T0B7JBCDKC1/....
  • • With the API, auth.test returns it as team_id. This is the response we got:
  • {
      "ok": true,
      "url": "https://slack-0yr1948.slack.com/",
      "team": "Slack",
      "user": "sieun",
      "team_id": "T0B7JBCDKC1",
      "user_id": "U0B7L4YK420",
      "is_enterprise_install": false
    }

    A member ID starts with U. Open someone's profile, click the three dots, and choose Copy member ID. You need it for mentions in bot messages, as in how to mention a user in a Slack webhook.

    A Slack profile with the three-dot menu open, showing Copy display name, View preferences, Account settings, View your files, Set yourself away, Copy member ID and Copy link to profile

Never appear "away" on Slack again

Cloud-based. No downloads. Works 24/7 even when your laptop is off.

Find your Slack workspace URL

The workspace URL is the address people use to sign in, such as https://slack-0yr1948.slack.com/ for our test workspace. Two ways to read it:

  • • In the Slack app, click the workspace name at the top left. The menu shows the workspace with its .slack.com address under the name; the screenshot below is from Slack for web on 9 October 2026.
  • • With the API, auth.test returns it as url, in the response above.
  • The workspace menu in Slack for web: the workspace name Slack with slack-0yr1948.slack.com under it, then Upgrade, Invite people, Preferences, Tools and settings, and Sign out

    The URL and the workspace ID name the same workspace. A link built from the ID also works: on 9 October app.slack.com/client/T0B7JBCDKC1 opened our workspace in the browser and went straight to a channel. The same two IDs build a slack://channel link that opens the desktop app; Slack deep links lists every command the app accepts.

    The API error you get with a channel name

    Most read methods want the ID and refuse a name. We sent the same channel four ways to conversations.info. The name, the name with #, the ID in lowercase and the full browser URL all got the same answer:

    {
      "ok": false,
      "error": "channel_not_found"
    }

    conversations.history with #social and conversations.join with social returned the same channel_not_found. Only the exact ID, C0B7GGE8Q1Y, worked. A message link also contains the channel ID, right after /archives/; the rest of that link is decoded in Slack message permalink, tested.

    chat.postMessage is the exception. It accepted both #social and social, posted the message, and returned "channel": "C0B7GGE8Q1Y" in the response. So a script that posts by name works, and the same script breaks the moment it reads history or adds a reaction. Some wrappers break even on posts: the #channel shortcut in node-red-contrib-slack failed with a modern bot token in our Node-RED Slack test, so give such tools the ID. The ID in the chat.postMessage response is a free way to learn it. To post one message to several channels, our multi-channel script loops over channel IDs like these.

    Get a channel ID from its name in code

    To go from name to ID, list the channels and match the name. This is the function we ran, using Slack's Node SDK (@slack/web-api):

    async function channelId(client, name) {
      name = name.replace(/^#/, "");
      let cursor;
      do {
        const res = await client.conversations.list({
          types: "public_channel,private_channel",
          exclude_archived: true,
          limit: 1000,
          cursor,
        });
        const hit = res.channels.find((c) => c.name === name);
        if (hit) return hit.id;
        cursor = res.response_metadata?.next_cursor;
      } while (cursor);
      return null;
    }

    Output in our workspace:

    channelId(client, "#social")             -> C0B7GGE8Q1Y
    channelId(client, "sg-huddle-test-0929") -> C0C5ARWS936
    channelId(client, "no-such-channel")     -> null

    conversations.list returns a private channel only when the token's user or bot is a member; our conversations.list test shows a bot token missing a private channel it was not added to. The reverse, ID to name, is one call: conversations.info with the ID returned "name": "social". Store the ID, not the name. We renamed our private test channel to sg-renamed-0929 with conversations.rename, and the response still carried C0C5ARWS936. Workflows that need the ID include sending a Slack message from GitHub Actions and reacting to a message with the API.

    Always Active

    Stop Jiggling Your Mouse.

    Join hundreds of remote workers who never worry about their Slack status. Set it up once, stay green forever.

    Related Articles

    Guide

    Slack API: Get Users in a Channel With conversations.members, Tested

    conversations.members returns the user IDs in a channel, bots included. We ran it on public and private channels with the bot inside and outside each, joined the IDs to names and emails, and hit a cursor that pointed at an empty page.

    Slack Green Team
    Guide

    Slack API: Add a User to a Channel (conversations.invite), Tested

    We added people and bots to public and private channels with conversations.invite and conversations.join, using a bot token and a user token. Every response we got, including already_in_channel, cant_invite_self, cant_invite and the force flag.

    Slack Green Team
    Guide

    Slack Text Color: You Cannot Color Text, but 3 Things Show Color

    Slack has no text color option in messages or canvases, and the API rejects a color style. We tested every route on 29 September 2026. A hex code gets a color swatch, inline code is red, and app messages can carry a colored bar.

    Slack Green Team