> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Slack connector

- Connector: `appmixer.slack`
- Version: 6.0.7
- Components: 24 (5 triggers, 19 actions)

Slack is a platform for team communication: everything in one place, instantly searchable, available wherever you go. Offering instant messaging, document sharing and knowledge search for modern teams.

- Connector page: <https://connectors.appmixer.com/connector/appmixer.slack/6.0.7>
- Documentation: <https://docs.appmixer.com/connector-configuration/slack>
- Source code: <https://github.com/clientIO/appmixer-connectors/tree/dev/src/appmixer/slack>
- Download package: <https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/download>

## Authentication

**Type:** OAuth 2

This connector is globally authenticated and verified by Appmixer (Authentication Hub) and is ready to use without registering your own OAuth application with the provider. You can still use your own OAuth credentials (clientId and clientSecret) - see the Connector Configuration section of the documentation. The Authentication Hub is enabled for all hosted Appmixer tenants; on self-managed installations it has to be explicitly set.

## Triggers (5)

- [New Channel Message - Legacy](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.list.NewChannelMessage.md) (`appmixer.slack.list.NewChannelMessage`): DEPRECATED - use New Channel Message instead. Additional scopes: `channels:read`, `channels:history`.
- [New Channel Message](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.list.NewChannelMessageRT.md) (`appmixer.slack.list.NewChannelMessageRT`): This trigger fires every time a message is posted to a public or private channel. Additional scopes: `channels:read`, `groups:read`, `channels:history`.
- [New User - Legacy](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.list.NewUser.md) (`appmixer.slack.list.NewUser`): DEPRECATED - Use New User instead. Additional scopes: `users:read`.
- [New Private Channel Message - Legacy](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.list.NewPrivateChannelMessage.md) (`appmixer.slack.list.NewPrivateChannelMessage`): DEPRECATED - use New Channel Message instead. Additional scopes: `channels:read`, `channels:history`.
- [New User](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.list.NewUserWebhook.md) (`appmixer.slack.list.NewUserWebhook`): This trigger fires every time a new user is created in or joins your team. Additional scopes: `users:read`.

## Actions (19)

- [Make Api Call](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.core.MakeApiCall.md) (`appmixer.slack.core.MakeApiCall`): Performs an arbitrary authorized API call to the Slack API. Additional scopes: `channels:read`, `chat:write`.
- [Delete File](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.files.DeleteFile.md) (`appmixer.slack.files.DeleteFile`): Delete a file. Additional scopes: `files:write`.
- [Get File Metadata](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.files.GetFileMetadata.md) (`appmixer.slack.files.GetFileMetadata`): Gets information about a file. Additional scopes: `files:read`.
- [Upload File To Channel](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.files.UploadFileToChannel.md) (`appmixer.slack.files.UploadFileToChannel`): Upload a new file to public or private channel. Additional scopes: `files:write`.
- [Upload File To User](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.files.UploadFileToUser.md) (`appmixer.slack.files.UploadFileToUser`): Upload a new file to a direct message or multi-person direct message. Additional scopes: `files:write`.
- [Create Channel](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.list.CreateChannel.md) (`appmixer.slack.list.CreateChannel`): Create a new public channel. Additional scopes: `channels:write`.
- [Create Private Channel](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.list.CreatePrivateChannel.md) (`appmixer.slack.list.CreatePrivateChannel`): Create a new private channel. Additional scopes: `groups:write`.
- [List Channels](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.list.ListChannels.md) (`appmixer.slack.list.ListChannels`): Returns all public and private channels of the workspace (paginated internally, archived channels are excluded). Additional scopes: `channels:read`, `groups:read`.
- [List Users](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.list.ListUsers.md) (`appmixer.slack.list.ListUsers`): Returns all users of the workspace (paginated internally). Additional scopes: `users:read`.
- [Send Channel Message](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.list.SendChannelMessage.md) (`appmixer.slack.list.SendChannelMessage`): Post a message to a specific public channel. Additional scopes: `channels:read`, `chat:write`.
- [Send Private Channel Message](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.list.SendPrivateChannelMessage.md) (`appmixer.slack.list.SendPrivateChannelMessage`): Post a message to a specific private channel. Additional scopes: `channels:read`, `chat:write`.
- [Delete Message](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.messages.DeleteMessage.md) (`appmixer.slack.messages.DeleteMessage`): Delete an existing message. Additional scopes: `channels:read`, `chat:write`.
- [Send Direct Message](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.messages.SendDirectMessage.md) (`appmixer.slack.messages.SendDirectMessage`): Send a direct message or multi-person direct message. Additional scopes: `users:read`, `im:write`, `mpim:write`, `chat:write`.
- [Update Message](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.messages.UpdateMessage.md) (`appmixer.slack.messages.UpdateMessage`): Update the contents of an existing message. Additional scopes: `channels:read`, `chat:write`.
- [Add Reaction](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.reactions.AddReaction.md) (`appmixer.slack.reactions.AddReaction`): Add a reaction to an item. Additional scopes: `reactions:write`, `im:read`, `mpim:read`, `channels:read`, `groups:read`.
- [Delete Reaction](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.reactions.DeleteReaction.md) (`appmixer.slack.reactions.DeleteReaction`): Remove a reaction from an item. Additional scopes: `reactions:write`, `im:read`, `mpim:read`, `channels:read`, `groups:read`.
- [Get Message Reactions](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.reactions.GetMessageReactions.md) (`appmixer.slack.reactions.GetMessageReactions`): Return a list of all reactions for a single message (channel message, group message, or direct message). Additional scopes: `reactions:read`.
- [List Reactions](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.reactions.ListReactions.md) (`appmixer.slack.reactions.ListReactions`): List all items (file, file comment, channel message, group message, or direct message) with reactions made by the user (paginated internally). Additional scopes: `reactions:read`.
- [Request Approval](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.tasks.RequestApproval.md) (`appmixer.slack.tasks.RequestApproval`): Slack Task allows human approval inside workflows, with Slack user selection. Additional scopes: `channels:read`, `chat:write`.

## Changelog

### 6.0.7

- Fix: flows with Slack components failed to start after 6.0.5 (ENOENT axios/node_modules/form-data). The service version is now 1.0.1, so the engine loads the connector from a new directory instead of reusing paths resolved for the old dependency layout.

### 6.0.6

- Security: upgraded lodash to 4.18.1 (prototype pollution in _.unset/_.omit, code injection in _.template).

### 6.0.5

- Security: upgraded form-data to 4.0.6 (predictable multipart boundary, CRLF injection in field names and filenames).

### 6.0.4

- Security: package-lock.json moves axios (used by @slack/web-api) to 1.21.0 (SSRF, credential leak, prototype pollution and DoS advisories).

### 6.0.3

- Security: package-lock.json moves qs, follow-redirects and @smithy/config-resolver to patched versions (medium/low advisories).

### 6.0.2

- AddReaction: await context.sendJson when listing channels for the Inspector. Only a failed channel listing falls back to an empty list; a failed output send now propagates instead of being swallowed.

### 6.0.1

- New User: a team_join event is delivered only to New User triggers of the workspace it came from, using the same authorization check as message triggers.

### 6.0.0

- BREAKING: SendDirectMessage now requests the chat:write scope; without it the component failed with missing_scope (needed chat:write:bot) when the account was authorized from this component alone. Existing accounts used by SendDirectMessage that do not have chat:write yet must be re-authenticated.

### 5.5.3

- MakeApiCall: Request Headers and Query Parameters set in the Designer are now sent. They were silently dropped: the key-value field stores its rows as a JSON object string, which the component did not parse.

### 5.5.2

- RequestApproval: a task whose flow or component no longer exists (webhook answers 404/410) is removed instead of being resubmitted every 10 minutes forever.
- RequestApproval: other failed webhook deliveries (e.g. a stopped flow) are retried with an exponential backoff, at most 6 hours apart (configurable via failedWebhooksBackoffBaseMs and failedWebhooksBackoffMaxMs), so the decision is delivered once the flow runs again.
- RequestApproval: a resubmitted webhook delivers the original decision (approved / rejected / due) instead of pending; the resubmit job reports delivered, failed and removed tasks correctly.
- RequestApproval: the cleanup of tasks older than 60 days never removed anything (it filtered by a property the tasks do not have); it works now.

### 5.5.1

- ListChannels, ListUsers, ListReactions: the Limit input is gone; all pages are fetched internally. Array output now also carries count.
- FindRequestApprovals: Limit input removed (up to 1000 approvals per call), new notFound port for an empty result.
- ListChannels, ListUsers, ListReactions, FindRequestApprovals: output contract exported as ITEM_SCHEMA with examples; variable picker works without a connected account.
- GetMessageReactions: static output schema (was borrowed from ListReactions), full reaction details.
- DeleteFile, DeleteMessage, DeleteReaction: return an empty object on success.
- SendChannelMessage, SendPrivateChannelMessage: thread inputs renamed to threadTs and replyBroadcast (flows saved with the old names keep working); required inputs are validated.
- Channel, user, requester and approver pickers are typeahead text fields so a value can still be entered when the list fails to load.
- Required-input validation in AddReaction, DeleteReaction, DeleteMessage, DeleteFile, GetMessageReactions and ListReactions.
- Fixed the OAuth consent failing with "Invalid permissions requested" when a component needs channels:write (CreateChannel): the bot scope now asks for channels:manage instead.
- SendChannelMessage, SendPrivateChannelMessage: output schema declares subtype, username, bot_id, app_id and team; ts, type, text and bot_id are marked required, user and team are optional because Slack omits them for messages sent as bot (subtype bot_message).

### 5.4.3

- Fixed output fields that never resolved: UploadFileToUser, UploadFileToChannel and GetFileMetadata expose mimetype / filetype (were mimeType / fileType), NewUser and NewUserWebhook expose updated (was update), UpdateMessage exposes message.user (was user); CreateChannel and CreatePrivateChannel no longer declare members, which Slack does not return; RequestApproval's created port now carries id like its other ports. Required-input checks and typeahead channel pickers; output examples.

### 5.4.2

- NewChannelMessageRT: the channel picker is now a typeahead text field, so a value can still be entered when the list fails to load; added missing output examples.

### 5.4.1

- Added missing output examples to SendDirectMessage.

### 5.4.0

- Added MakeApiCall component for performing arbitrary authorized API calls to the Slack API.

### 5.3.0

- Added test() (Flow Test Mode) to all triggers: NewChannelMessage, NewPrivateChannelMessage, NewChannelMessageRT, NewUser, NewUserWebhook — emit one realistic item via a read-only call, same shape as production output.

### 5.2.0

- ListChannels: make component public; add output port schema for channels.

### 5.1.4

- Added output examples to component schemas.

### 5.1.3

- Added new component: `Request Approval` - Slack Task allows human approval inside workflows, with Slack user selection.
- Added new component: `Find Request Approvals` - List and filter Slack Workflow Approvals. Only available with ACL enabled for private components.

### 5.0.2

- Fixed an issue with invalid user selection in UploadFileToUser and SendDirectMessage components.

### 5.0.1

- Fixed an issue with the `botToken` not being set correctly in the auth profile info. Requires re-authentication of the following components: SendChannelMessage, SendPrivateChannelMessage.

### 4.2.0

- Added 'Thread message ID' to SendChannelMessage and SendPrivateChannelMessage components.

### 4.1.5

- Improve `botToken` handling in SendChannelMessage and SendPrivateChannelMessage components when using the default configuration.
- `signingSecret` existence is now checked only when not using the default configuration.

### 4.1.3

- (breaking change) Added payload authentication for triggers. Will require setting `signingSecret` in the connector configuration.
- Added options to SendChannelMessage and SendPrivateChannelMessage to send messages as a bot user.
- Fixed and issue when NewChannelMessageRT trigger did not register messages containing some special UTF characters.

### 3.2.0

- NewChannelMessageRT: added more output variables such as: channel, channel_type, team, event_ts, blocks, bot_profile.

### 3.1.0

- (breaking change) SendChannelMessage, SendPrivateChannelMessage: Channel field now accepts values from other components.
- SendChannelMessage, SendPrivateChannelMessage: Migration to v3 - The Channel field needs to be filled again.
- (breaking change) New Channel Message trigger: added scope groups:read. Will require removal of account from `connected accounts` and re-authentication of Slack account.
- (breaking change) New User trigger now uses webhooks. The old version is now called 'NewUser - Legacy' and will be deprecated. It requiers additional configuration in your Slack account, please see the documentation.
- Existing triggers NewChannelMessage and NewPrivateChannelMessage are now deprecated.
- Updated labels to make them better to read in some components.

### 2.4.2

- Fixed an issue with NewUser trigger throwing error when triggered.

### 2.4.1

- Add new components: SendDirectMessage and ListUsers.
- Add new components: AddReaction, DeleteReaction, ListReactions and GetMessageReactions.

### 2.2.3

- Add new components: UpdateMessage, DeleteMessage, UploadFileToChannel, UploadFileToUser, DeleteFile and GetFileMetadata.

### 2.0.0

- NewChannelMessageRT uses Appmixer listeners.

### 1.0.2

- Add 'groups:read' to the listChannels component to fix 'missing_scope' error.

### 1.0.1

- Initial version
