/oauth.v2.access
GET
/oauth.v2.accessExchanges a temporary OAuth verifier code for an access token.
Request
Query Params
client_id
string
optional
Issued when you created your application.
client_secret
string
optional
Issued when you created your application.
code
string
required
The code
param returned via the OAuth callback.
redirect_uri
string
optional
This must match the originally submitted URI (if one was sent).
Request samples
Responses
Successful token request with scopes for both a bot user and a user token(200)
Typical error response(500)
Successful token request with scopes for both a bot user and a user token
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
ok
#/definitions/700149required
Additional properties
integer | number | string | boolean
optional
Exampleresponse
{
"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"
}
Last modified: a year ago