auth.revoke
method
We're still building and not all features are available quite yet. Enjoy this peek into the future!
Not ready for the future? Return to the past at api.slack.com.
Usage info
This method revokes an access token. Use it when you no longer need a token. For example, call this to log a user out of a Sign In With Slack app.
Response
The response indicates whether the token was actually revoked, using a boolean revoked
field.
Revoking a bot user token will not uninstall the bot user or the app. It will, however, deactivate the bot user and remove its channel memberships.
Use this method if you'd like to reset the token value — you can obtain a token again with another jaunt through the OAuth process. Single workspace appsand apps installed only on your team offer the new bot user token in your app management console.
If your app uses a workspace token, consider using a bot token instead! To uninstall a workspace app, use the apps.uninstall
method.
If you have an org wide app, an org admin must remove your app in the admin console to completely remove it from a workspace or org.