Skip to main content

oauth.v2.access method

Welcome to the new home of Slack developer docs!

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

Keep your tokens secure.

Do not share tokens with users or anyone else.

This is a step in the V2 OAuth authentication flow. Check out our guide to new Slack apps for more information.

If at all possible, avoid sending client_id and client_secret as parameters in your request. We strongly recommend supplying the Client ID and Client Secret using the HTTP Basic authentication scheme, as discussed in RFC 6749.

A potential gotcha: while redirect_uri is optional, it is required if your app passed it as a parameter to oauth/authorization in the first step of the OAuth flow.

Look for the is_enterprise_install boolean if your app is an org-ready app and you need to determine whether it has been installed on an entire organization or a single workspace.

If you're developing a GovSlack app for use by public sector customers, make your API calls to the slack-gov.com domain instead of the slack.com domain.

Rate limits

The rate limit for this method is 600 per minute.

Refresh tokens

When you use grant_type=refresh_token and pass your refresh_token as an argument, this method refreshes an access token, whether bot or user. Read our guide to token rotation for more information.

Response