Is a Slack channel/group/im/mpim id unique across different teams? In other words, can two teams have channels with the same id?
I read the docs, searched on Google and here on SO, but could not get confirmation if channel IDs are unique or not.
While in the present day you'd probably get by just fine assuming IDs are unique across different teams, we strongly recommend scoping all of your storage and retrieval by team ID. Essentially, we recommend considering IDs as only unique within teams, regardless of if experientially they are globally unique.
A channel_id_changed event is sent when a user initiates sharing a private channel externally with Slack Connect. When a private channel is shared, the existing private channel's unique channel ID changes to a new identifier permanently.
For the team id, you can open the entire source of the slack web client and CTRL-F for your team_domain (e.g. myslack55 for myslack55.slack.com ) and that should find you the team id.
The “spaces” inside Slack Most companies put everyone at the company on a single workspace, while our Enterprise Grid version supports multiple workspaces inside an organization. Within a workspace, the Slack app has lists of channels and direct messages. Channels are how you organize conversations.
Slack plans to clarify this in documentation soon. While in the present day you'd probably get by just fine assuming IDs are unique across different teams, we strongly recommend scoping all of your storage and retrieval by team ID.
Essentially, we recommend considering IDs as only unique within teams, regardless of if experientially they are globally unique.
This is the best way to protect yourself for the future.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With