provider oauth GET
/oauth.token @utdk/slack
/oauth.token oauth_token
Exchanges a temporary OAuth verifier code for a workspace 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.
- 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.oauthToken()