Slack Connector > Connections for Slack > Connect to Slack
  

Connect to Slack

Let's configure the Slack connection properties to connect to Slack.

Before you begin

Before you get started, you'll need to get information from your Slack account.
Check out Prepare for authentication to learn more about the authentication prerequisites.

Connection details

The following table describes the basic connection properties:
Property
Description
Connection Name
Name of the connection.
Each connection name must be unique within the organization. Connection names can contain alphanumeric characters, spaces, and the following special characters: _ . + -,
Maximum length is 255 characters.
Description
Description of the connection. Maximum length is 4000 characters.
Type
Slack
Runtime Environment
The name of the runtime environment where you want to run tasks.
You can specify a Secure Agent or Hosted Agent.
Base URL
The base URL to connect to the Slack APIs.
For example, https://slack.com/api/

Authentication types

You can configure bearer token and OAuth 2.0 authentication types to access Slack.
Select the required authentication method and then configure the authentication-specific parameters.

OAuth 2.0 authentication

The OAuth 2.0 authentication requires the client ID, client secret, and access token of your Slack application to connect to Slack.
The following table describes the basic connection properties for OAuth 2.0 authentication:
Property
Description
Client ID
Client ID of your Slack application.
Client Secret
Client secret of your Slack application.
Scope
The permissions for the Slack application to perform specific operations in your Slack workspace.
Separate multiple values with a comma. Do not add spaces between the values.
For operations that require chat:write or files:write scopes, ensure that you use chat:write:user, chat:write:bot, or files:write:user based on whether you created the application for a user or a bot.
Access Token
Access token of your Slack application.
Generate the access token for a user or a bot for which you created the application.
When you generate the access token, specify the workspace name in the following format:
your-workspace.slack.com
To use administration operations, enter the URL of your enterprise organization.
For example, your-workspace.enterprise.slack.com
Access Token Parameters
Additional parameters to be included in the access token URL to get the access token.
Define the parameters in key-value pairs in JSON format. Separate multiple key-value pairs with a comma.
For example, client_id=1234567890,client_secret=abcd1234
Authorization Code Parameters
Additional parameters to be included in the authorization code URL to get the authorization code.
Define the parameters in key-value pairs in JSON format. Separate multiple key-value pairs with a comma.
For example, client_id=1234567890,scope=channels:read+groups:read+im:read+mpim:read,redirect_uri=https://iics-icinq1.informaticacloud.com/ma/proxy/oauthcallback

Bearer token authentication

The bearer token authentication requires the token of your Slack application to connect to Slack.
The following table describes the basic connection properties for bearer token authentication:
Property
Description
Token
Token of your Slack application.
Specify the token for a user or a bot for which you created the Slack application.