---
tags: English
---
# How to Prepare a Slack Token and Channel
## Step 1. Create a Workspace

## Step 2. Get the Workspace `Channel ID`
The last node in the URL that is prefixed with "C" is your channel ID.

## 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)

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.

3. Click **Install App to Workspace**.

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.

5. Add the app you just created into your workspace.
