Home / Servers / Slack API / oauth_token

Exchanges a temporary OAuth verifier code for a workspace token.

An MCP tool from the Slack API server, hosted on mcp.hjlabs.in.

Exchanges a temporary OAuth verifier code for a workspace token. [GET /oauth.token]

Name on the gateway: slack_api__oauth_token · read-only.

Parameters

NameTypeDescription
client_idstringIssued when you created your application.
client_secretstringIssued when you created your application.
codestringThe code param returned via the OAuth callback.
redirect_uristringThis must match the originally submitted URI (if one was sent).
single_channelbooleanRequest the user to add your app only to a single channel.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "slack_api__oauth_token",
  "arguments": {}
}

Or connect the Slack API server directly, which lists 174 tools including this one:

Run in your terminal
claude mcp add --transport http hj-slack-api https://mcp.hjlabs.in/mcp/slack-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the exchanges a temporary oauth verifier code for a workspace token. tool with client_id set to ….

More from Slack API