--- tags: English --- # How to Prepare a Slack Token and Channel ## Step 1. Create a Workspace ![](https://i.imgur.com/Yjw2D6j.png) ## Step 2. Get the Workspace `Channel ID` The last node in the URL that is prefixed with "C" is your channel ID. ![](https://i.imgur.com/gwFnK6U.png) ## Step 3. Get the OAuth Token for your Team 1. From your channel, click on **Add an App** and click [Create an App](https://api.slack.com/apps) ![](https://i.imgur.com/pzfEW9z.png) 2. Click **your app** -> **OAuth & Permissions** on the navigation menu. Scroll down to **Scopes**, under **Bot Token Scopes**, add the scope of `chat:write` and `file:write`. Under **User Token Scopes**, add the scope of `chat:write` and `file:write` too. ![](https://i.imgur.com/xIElLLg.png) 3. Click **Install App to Workspace**. ![](https://i.imgur.com/kRgp898.png) 4. Note that there will be two tokens, **OAuth Access Token** and **Bot User OAuth Access Token**, please copy the **Bot User OAuth Access Token** as your Slack token. ![](https://i.imgur.com/FvDfauC.png) 5. Add the app you just created into your workspace. ![](https://i.imgur.com/r1mbVuS.png)