provider oauth GET
/oauth.access @utdk/slack
/oauth.access oauth_access
Exchanges a temporary OAuth verifier code for an access token.
- client_id query
- Issued when you created your application.
- string
- client_secret query
- Issued when you created your application.
- string
- code query
- The `code` param returned via the OAuth callback.
- string
- redirect_uri query
- This must match the originally submitted URI (if one was sent).
- string
- single_channel query
- Request the user to add your app only to a single channel. Only valid with a [legacy workspace app](https://api.slack.com/legacy-workspace-apps).
- boolean
Try it
Authentication
Configure credentials for Slack Web API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import slack from '@utdk/slack';
await slack.oauthAccess()