diff --git a/apps/sim/app/api/tools/slack/read-messages/route.ts b/apps/sim/app/api/tools/slack/read-messages/route.ts index 5960b6f20db..712ccbc7f0f 100644 --- a/apps/sim/app/api/tools/slack/read-messages/route.ts +++ b/apps/sim/app/api/tools/slack/read-messages/route.ts @@ -105,7 +105,7 @@ export const POST = withRouteHandler(async (request: NextRequest) => { { success: false, error: - 'Missing required permissions. Please reconnect your Slack account with the necessary scopes (channels:history, groups:history, im:history).', + 'Missing required permissions. Reconnect your Slack account to grant channel history access (channels:history, groups:history). Reading direct message history is not supported with the Sim bot.', }, { status: 400 } ) diff --git a/apps/sim/lib/oauth/oauth.ts b/apps/sim/lib/oauth/oauth.ts index 8ecad136124..4f22fb05b1d 100644 --- a/apps/sim/lib/oauth/oauth.ts +++ b/apps/sim/lib/oauth/oauth.ts @@ -703,7 +703,6 @@ export const OAUTH_PROVIDERS: Record = { 'chat:write', 'chat:write.public', 'im:write', - 'im:history', 'im:read', 'users:read', // TODO: Add 'users:read.email' once Slack app review is approved @@ -712,6 +711,7 @@ export const OAUTH_PROVIDERS: Record = { 'canvases:read', 'canvases:write', 'reactions:write', + 'reactions:read', ], }, },