/oauth.access
GET
/oauth.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
optional
The code
param returned via the OAuth callback.
redirect_uri
string
optional
This must match the originally submitted URI (if one was sent).
single_channel
string
optional
Request the user to add your app only to a single channel. Only valid with a legacy workspace app.
Request samples
Responses
Successful user token negotiation for a single scope(200)
Typical error response(500)
Successful user token negotiation for a single scope
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
ok
#/definitions/700149required
Additional properties
integer | number | string | boolean
optional
Exampleresponse
{
"access_token": "xoxp-XXXXXXXX-XXXXXXXX-XXXXX",
"enterprise_id": null,
"scope": "groups:write",
"team_id": "TXXXXXXXXX",
"team_name": "Wyld Stallyns LLC"
}
Last modified: a year ago