> For the complete documentation index, see [llms.txt](https://imbrace.gitbook.io/imbrace-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://imbrace.gitbook.io/imbrace-documentation/integrations/slack.md).

# Slack

[Slack](https://slack.com/) is a business communication platform offering many IRC-style features, including persistent chat rooms (channels), private groups, and direct messaging.

## Account integration using OAuth

To begin, you will need:

* An [Slack](https://slack.com/) account.

**STEP 1:** Go to the [Slack API page](https://api.slack.com/), then in the top-right corner, go to **\[Your apps]**.

<figure><img src="/files/OQLLGggBUN0LMPlGmwng" alt=""><figcaption><p>Slack API homepage</p></figcaption></figure>

**STEP 2:** Go to **\[Create New App] > \[From scratch]**.

![](/files/svscIm7l9B6V2YddOadR)

![](/files/Uueb5rT0k3kJyLCwEGfj)

**STEP 3:** Enter an **App Name** and select the **workspace** the credential will be associated with, then click **\[Create App]**.

![](/files/cbh9amKVjM9mAtXf72uU)

**STEP 4:** Under the **Basic Information > App credentials** section, identify and copy the **client ID** and client secret.

![](/files/53759YkKPm2AF1Luxqcl)

**STEP 5:** In iMBrace, create a new credential of type **Slack OAuth2 API**, and paste the client ID and client secret into the corresponding fields. Then, identify the **OAuth Redirect URL**.

<figure><img src="/files/mjR3oSC1zbH6PT58eq8n" alt=""><figcaption></figcaption></figure>

**STEP 6:** On the Slack API page, navigate to **Basic Information > Building Apps for Slack > Add features and functionality > \[Permissions]**.

![](/files/yKwNB3ohFxIEA9qLACG6)

**STEP 7:** In the **Redirect URLs** section, click on **\[Add New Redirect URL]**, then paste the OAuth redirect URL copied from iMBrace.

![](/files/P8fCOYCUObwtA6xqrtvF)

![](/files/260F0X6rbyFXCGyOv8W8)

**STEP 8:** Click on the **\[Save URLs]** button.

![](/files/yfLftu9oQApgGJAVmJY9)

**STEP 9:** Scroll down to the **Scopes** section.

![](/files/cPX2gkmexDAOCvoR92WO)

**STEP 10:** Add the required scopes under the **Bot Token Scopes** section. You can refer to the list of scopes on the [Scopes and permissions](https://api.slack.com/scopes) documentation on Slack.

![](/files/AK6rXzeLICQIgqKzy9zZ)

![](/files/NmJhi3auZRxD4IpnGWXp)

**STEP 11:** In iMBrace, click the **\[Connect]** button.

![](/files/mjR3oSC1zbH6PT58eq8n)

**STEP 12:** Click **\[Allow]** in the pop-up to connect your Slack account to iMBrace.

![](/files/Z9flDxjp0VGnd5TsJ7gd)

**STEP 13:** On the Slack API page, go to **\[OAuth & Permissions]** in the left side-bar. In the **OAuth Tokens for Your Workspace** section, click **\[Install to Workspace]**.

![](/files/9xP7gPEvHRxt9oUGBFVc)

**STEP 14:** Click on the **\[Allow]** button.

![](/files/Yqkf21Pj2bihfDIp7k3v)

**DONE:** The credential can then be used for Slack nodes.

## Account integration using Access Token

To begin, you will need:

* An [Slack](https://slack.com/) account.

**STEP 1:** Go to the [Slack API page](https://api.slack.com/), then in the top-right corner, go to **\[Your apps]**.

<figure><img src="/files/OQLLGggBUN0LMPlGmwng" alt=""><figcaption></figcaption></figure>

**STEP 2:** Go to **\[Create New App] > \[From scratch]**.

<figure><img src="/files/svscIm7l9B6V2YddOadR" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Uueb5rT0k3kJyLCwEGfj" alt=""><figcaption></figcaption></figure>

**STEP 3:** Enter an **App Name** and select the **workspace** the credential will be associated with, then click **\[Create App]**.

<figure><img src="/files/cbh9amKVjM9mAtXf72uU" alt=""><figcaption></figcaption></figure>

**STEP 4:** Under the **Basic Information > Add features and functionality** section, select **\[Permissions]**.

<figure><img src="/files/IuHpzFRSrJVIdtKMFeI4" alt=""><figcaption></figcaption></figure>

**STEP 5:** Scroll down to the **Scopes** section and:

* If you want your app to act on behalf of users that authorize the app, add the required scopes under the **User Token Scopes** section.
* If you're building a bot, add the required scopes under the **Bot Token Scopes** section.

<figure><img src="/files/v6I2trGsOinoQpoof2an" alt=""><figcaption></figcaption></figure>

**STEP 6:** From the **OAuth Tokens for Your Workspace** section click on the **Install to Workspace** button.

<figure><img src="/files/YqfUMRk4GvmrpYLkD1hI" alt=""><figcaption></figcaption></figure>

**STEP 7:** Click on the **\[Allow]** button.

<figure><img src="/files/Yqkf21Pj2bihfDIp7k3v" alt=""><figcaption></figcaption></figure>

**STEP 8:** In the left side-bar, go to **OAuth & Permissions > OAuth Tokens for Your Workspace**, and copy the relevant token for your use.

<figure><img src="/files/uMShJIgyXQ6pOSW0VEts" alt=""><figcaption></figcaption></figure>

**STEP 9:** In iMBrace, create a credential of type **Slack API**, paste the copied token from Slack into the **Access Token** field, then click the **\[Create]** button.

<figure><img src="/files/jVdaGcxBNt3MmoDfjDPk" alt=""><figcaption></figcaption></figure>

**DONE:** The credential can then be used for Slack nodes.
