Skip to main content

Get channel id by name

Find a channel's id from its name, e.g. #ops-alerts.

Command in the Slack toolkit · id ooa.slack/get_channel_id_by_name · 5 inputs (2 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Bot tokenCredentialYesSlack bot token from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token.
NameStringYesChannel name, with or without the leading #.
Include privateBooleanNotrueAlso look in private channels the agent belongs to.
Include archivedBooleanNofalseAlso look in archived channels.
Endpoint addressStringNohttps://slack.com/apiAPI endpoint; change only for testing.

Outputs​

OutputTypeWhat it is
channel_idStringChannel id, e.g. C0123456789.