Bots
Replace a Slack bot token
Verify a new Bot User OAuth Token for a custom Slack app against Slack, require the same app and workspace, then store it in place of the current token. The bot's other credentials are kept. Integrations revoked with the previous token are restored with their ids, conversation settings and schedule targets, and every serving daemon receives the new token. Built-in apps reconnect by reinstalling instead.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
orgId*string
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/orgs/string/bots/string/slack/token" \ -H "Content-Type: application/json" \ -d '{ "botToken": "string" }'{ "id": "string", "name": "string", "platform": "string", "prebuilt": true, "slackAppId": "string", "discordAppId": "string", "feishuAppId": "string", "feishuRegion": "feishu", "createdBy": "string", "shareable": true, "joinPublicChannels": true, "transport": "socket", "inUseByAgentId": "string", "agentIds": [ "string" ], "releasedWhenFreed": true, "lastUsedAt": "string", "freedFromAgent": "string", "teamId": "string", "workspaceId": "string", "workspaceName": "string", "revokedAt": "string", "revokedReason": "app_uninstalled", "revokedEvidence": "event", "revokedCode": "string", "credentialRejectedAt": "string", "credentialRejectedCode": "string", "externalAppId": "string", "platformConfig": { "property1": "string", "property2": "string" }, "createdAt": "string"}