Oauth

OAuth Token

GET
/oauth.token

Exchanges a temporary OAuth verifier code for a workspace token.

Authorization

slackAuth none
AuthorizationBearer <token>

In: header

Scope: none

Query Parameters

client_id?string

Issued when you created your application.

client_secret?string

Issued when you created your application.

code?string

The code param returned via the OAuth callback.

redirect_uri?string

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

single_channel?boolean

Request the user to add your app only to a single channel.

Header Parameters

Content-Type*"application/x-www-form-urlencoded"

Value in

  • "application/x-www-form-urlencoded"

Response Body

application/json

application/json

curl -X GET "https://example.com/oauth.token" \  -H "Content-Type: application/x-www-form-urlencoded"
{  "ok": "True"}