Create and regenerate API tokens

Note: This article mentions legacy components, an older method of adding integrations to your workspace. For the newest platform features, such as message buttons and the events API, see Building Slack apps.

API tokens can be created for both members and bot users. For added security, it’s a good idea to rotate these tokens every now and again.

Create a new legacy token

  1. From your desktop, visit the Legacy tokens page at api.slack.com/custom-integrations/legacy-tokens.
  2. Scroll to find the workspace and member that you want to create a token for.
  3. Click Create token. (You might see Request token if the approved apps feature is turned on for your workspace.)

Test tokens are just for you, so make sure you treat them as you would a password. Never share test tokens with other users or applications.


Re-issue a token

  1. From your desktop, visit the Legacy tokens page at api.slack.com/custom-integrations/legacy-tokens.
  2. Scroll to find the workspace and user that you want to reissue a token for.
  3. Click Reissue token. (You might see Request token if your workspace has the approved apps feature enabled.)

Note: You can only create and regenerate tokens for yourself. You’re unable to create tokens for other members. 


Regenerate the token of a bot user

Custom integration bot users

  1. Visit the Legacy custom integrations page from your desktop at my.slack.com/apps/manage/custom-integrations.
  2. Click   Edit configuration next to the bot user you want to change. 
  3. On the configuration page, click Regenerate below the current token. This is the new token you can use anywhere you need.


Hubot or Lita integration bot tokens

  1. Visit the App Directory at my.slack.com/apps/manage on your desktop.
  2. Click   Edit configuration next to the integration. 
  3. On the configuration page, click Regenerate below the current token. This is the new token you can use anywhere you need.

Note: Only the person who set up the bot can regenerate the token.

 

Reissue an internal app token

  1. Visit Your apps at api.slack.com/apps.
  2. Click on an app. 
  3. In the Install app section, click Reinstall app. Your new tokens will appear at the top of the page. 

Note: Only the app creator or collaborators can reinstall it to their workspace.

 

Reissue an external app token

  1. Visit an app’s page in the Slack App Directory.
  2. Click Remove app at the bottom of the page.
  3. Complete the steps to reinstall the app.  

Note: If the approved apps feature is turned on, only a workspace owner or a member who can manage apps can reinstall an external app.

Who can use this feature?
  • All members except for guests can use this feature by default.
  • Available on free and paid subscriptions.

Related articles

Recently viewed articles