Skip to content

Commit 1e7c3ba

Browse files
committed
docs: reference creating an app with scopes to gather a token for installation
1 parent a98fd9e commit 1e7c3ba

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

docs/content/installation.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ It's also good to try on the Python REPL.
4242

4343
## Access Tokens {#handling-tokens}
4444

45+
Making calls to the Slack API often requires a [token](https://docs.slack.dev/authentication/tokens) with associated scopes that grant access to resources.
46+
47+
Collecting a token can be done from app settings or with an OAuth installation depending on your app's requirements:
48+
49+
- [Single Workspace Install](#single-workspace-install)
50+
- [Multiple Workspace Install](#multiple-workspace-install)
51+
4552
**Always keep your access tokens safe.**
4653

4754
The OAuth token you use to call the Slack API has access to the data on
@@ -84,13 +91,11 @@ Credentials](https://api.slack.com/authentication/best-practices) page within th
8491

8592
### Single Workspace Install
8693

87-
If you're building an application for a single Slack workspace,
88-
there's no need to build out the entire OAuth flow.
94+
If you're building an application for a single Slack workspace, there's no need to build out the entire OAuth flow.
95+
96+
After [creating an app](https://api.slack.com/apps?new_app=1) and adding [scopes](http://docs.slack.dev/reference/scopes) on the **OAuth & Permissions** page, go to the **Install App** page and click the **Install to Team** button to authorize the app and generate a token.
8997

90-
Once you've setup your features, click on the **Install App to Team**
91-
button found on the **Install App** page. If you add new permission
92-
scopes or Slack app features after an app has been installed, you must
93-
reinstall the app to your workspace for changes to take effect.
98+
If you add new permission scopes or Slack app features after an app has been installed, you must reinstall the app to your workspace for changes to take effect.
9499

95100
## Multiple Workspace Install
96101

@@ -108,7 +113,7 @@ token once it is granted. The client ID and client secret are available
108113
from your [app's configuration page](https://api.slack.com/apps). The
109114
scopes are determined by the functionality of the app — every method
110115
you wish to access has a corresponding scope and your app will need to
111-
request that scope in order to be able to access the method. Review the [full list of Slack OAuth scopes](https://api.slack.com/scopes).
116+
request that scope in order to be able to access the method. Review the [full list of Slack OAuth scopes](http://docs.slack.dev/reference/scopes).
112117

113118
```python
114119
import os

0 commit comments

Comments
 (0)