oauth_v2_access
Exchange a temporary OAuth verifier code for an access token (V2) to authenticate Slack API requests.
Instructions
Exchange a temporary OAuth verifier code for an access token (V2).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"client_id": "<client_id>",
"client_secret": "<client_secret>",
"code": "<code>"
},
"name": "oauth_v2_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The OAuth callback code (omit when refreshing). | |
| client_id | Yes | Your app's client ID. | |
| grant_type | No | ``authorization_code`` (default) or ``refresh_token``. | |
| redirect_uri | No | Must match the value used to request the code. | |
| client_secret | Yes | Your app's client secret. | |
| code_verifier | No | The PKCE code verifier, when the authorization request used PKCE. | |
| refresh_token | No | The refresh token, when ``grant_type=refresh_token``. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||