Packages

A Slack Web & Real Time Messaging API client.

Current section

Files

Jump to
slack_kit priv docs methods oauth.v2.exchange.json
Raw

priv/docs/methods/oauth.v2.exchange.json

{
"args": {
"client_id": {
"desc": "Issued when you created your application.",
"example": "4123121235.9872358710",
"required": true,
"type": "string"
},
"client_secret": {
"desc": "Issued when you created your application.",
"example": "e1b9e11dfcd19c1982d5de12921e17e8c",
"required": true,
"type": "string"
}
},
"desc": "Exchanges a legacy access token for a new expiring access token and refresh token",
"errors": {
"authorization_not_found": "The underlying authorization for this token was revoked or is invalid.",
"bad_client_secret": "Value passed for `client_secret` was invalid.",
"invalid_client_id": "Value passed for `client_id` was invalid.",
"invalid_token": "The legacy token provided cannot be exchanged for a new pair of token credentials.",
"token_already_exchanged": "This token has already been exchanged for a pair of token credentials.",
"token_rotation_not_enabled": "The app does not have token rotation enabled."
},
"rate_limit": {
"label": "Tier 3: 50+ per minute",
"url": "https://docs.slack.dev/apis/web-api/rate-limits"
},
"scopes": {}
}