Skip to content

Generate an App to get a Token

Jibé Barth edited this page Nov 22, 2018 · 1 revision

To avoid generating an old legacy token, which is not recommended, we can create an Application and use it's token.

Step 1: Create your app

Got to https://api.slack.com/apps and click on Create New App

Create App

Step 2: Add Permissions

To be able to browse the slack History, you need to set some permissions

Add Permissions

And select theses scopes permissions

  • channels:history - Main permission to browse publics channels
  • groups:history - To browse private channels - optionnal
  • users:read - To get users informations (for gamification and top contributors in generated NewsLetter) - optionnal

Scopes permissions

Step 3: Install the app in your workspace

To generate the token, install the app for your workspace.

Install App in your workspace

Get the token generated, and put it in your .env file

get token