---
title: c Slack
description: Available connectors
documentId: ipaas-slack
locale: en-US
---

The [**Slack**](https://camel.apache.org/components/4.10.x/slack-component.html) component allows you to send messages, notifications, and alerts to Slack channels or users directly from your integration flows.

**URI Syntax**: `slack:channel`

## Main fields

*Path parameters*

| **Name** | **Description** | **Default** | **Type** |
|----------|---------------|------------|----------|
|`channel` (common)| (required) The channel name (#name syntax) or slack user (userName syntax) to send a message directly to a user.| — | String |

*Query parameters*

| **Name** | **Description** | **Default** | **Type** |
|----------|---------------|------------|----------|
| `token` (common) | The token to access Slack. This app needs to have the permissions channels:history, groups:history, im:history, mpim:history, channels:read, groups:read, im:read and mpim:read. The type of token needed is the User OAuth Token. | —  | String |

## Example

<Callout type="note" title="NOTE">
It is necessary to register an app on Slack with the appropriate permissions, as described in the component [documentation](https://docs.slack.dev/app-management/quickstart-app-settings).
In addition, the bot must be added to the desired channels so that messages are sent correctly.
</Callout>

The flow below sends a message to a private Slack channel with bot-type authentication.

<Steps>
<Step>
The flow starts with a GET request to the `/slack` endpoint.
</Step>
<Step>
Then, it sets the message body to "POC Slack" (using `setBody` with constant value).
</Step>
<Step>
Finally, it sends to Slack channel:
- Channel: `#notifications-hubspot-sync` (private channel name)
- Conversation type: `PRIVATE_CHANNEL` (private channel, not public)
- Authentication: bot token (`xoxb-547812-7840-JdgvOgeCWG`)
- Uses `toD` (to dynamic) to build the URI dynamically.
</Step>
</Steps>

```yaml
- from:
          uri: rest:get:/slack
          steps:
          - setBody:
              constant: "POC Slack"
          - toD:
              uri: "slack:#notifications-hubspot-sync"
              parameters:
                conversationType: PRIVATE_CHANNEL
                token: xoxb-547812-7840-JdgvOgeCWG
```
<Callout type="important" title="IMPORTANT">
- The bot needs to have appropriate permissions.
- The bot must be added to the `#notifications-hubspot-sync` channel.
- Use the channel name (not the ID) to avoid errors.
</Callout>


![](https://creative-ball-51b3fc85c0.media.strapiapp.com/slack_connector_3a89d25245.png)
