/oauth.v2.access
GET
/oauth.v2.access
oauth.v2oauth
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://slack.com/api/oauth.v2.access?code='
Response Response Example
200 - response
{
"access_token": "xoxb-17653672481-19874698323-pdFZKVeTuE8sk7oOcBrzbqgy",
"app_id": "A0KRD7HC3",
"authed_user": {
"access_token": "xoxp-1234",
"id": "U1234",
"scope": "chat:write",
"token_type": "user"
},
"bot_user_id": "U0KRQLJ9H",
"enterprise": {
"id": "E12345678",
"name": "slack-sports"
},
"ok": true,
"scope": "commands,incoming-webhook",
"team": {
"id": "T9TK3CUKW",
"name": "Slack Softball Team"
},
"token_type": "bot"
}
Request
Query Params
client_id
stringÂ
optional
client_secret
stringÂ
optional
code
stringÂ
required
code
param returned via the OAuth callback.redirect_uri
stringÂ
optional
Responses
Modified at 2023-08-15 05:39:46