How can we help?

Custom Action: Slack - Create channel

Andrew Bartel
Andrew Bartel
  • Updated

A new channel can be created in Slack with a custom action from a Torii workflow.

Requirements

  1. Create an app using Slack's Quickstart guide: https://api.slack.com/start/quickstart
  2. Navigate to https://api.slack.com/apps > Your App Name > OAuth & Permissions. Add the field Bot User OAuth Token as a secret in Torii.
    • Install your app to the workspace.
    • Under Scopes add channels:managed, groups:write, im:write, mpim:write

Custom Action Configuration

Method: POST

URL: https://slack.com/api/conversations.create

Query Parameters

Parameter Variable Mapping
name My-Channel

Headers

Header Value
Accept */*
Authorization Bearer [SecretsVault.SlackAPIToken]

Store your Slack API token in Torii using our Secrets Vault.

Body

Not required.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request