A new channel can be created in Slack with a custom action from a Torii workflow.
Requirements
- Create an app using Slack's Quickstart guide: https://api.slack.com/start/quickstart
- 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.