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.

oauthAccess
GET/oauth.access
Exchanges a temporary OAuth verifier code for an access token.

Issued when you created your application.

Issued when you created your application.

The `code` param returned via the OAuth callback.

This must match the originally submitted URI (if one was sent).

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).

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import slack from '@utdk/slack';

await slack.oauthAccess()