---
title: "How to set up Slack webhooks using event subscriptions"
img: https://s3.us-east-2.amazonaws.com/unified-article-images/how_to_set_up_slack_webhooks_using_event_subscriptions-icon.png
date: 2024-11-14T00:00:00.000Z
tag: Guides
description: "This guide explains how to configure your Slack app's event subscriptions to work with Unified.to webhooks. This is a required step before you can create..."
url: "https://docs.unified.to/guides/how_to_set_up_slack_webhooks_using_event_subscriptions"
---

# How to set up Slack webhooks using event subscriptions
------
_November 14, 2024_

This guide explains how to configure your Slack app's event subscriptions to work with Unified.to webhooks. This is a required step before you can create webhooks that listen for Slack events. Once configured, your webhooks will receive real-time notifications when specific events occur in your Slack workspace, such as when users send messages.


## Before you begin


Ensure you have:

- A Slack app created in your workspace
- Access to your Slack app's configuration settings
- Your [Unified.to](https://unified.to/) workspace ID
- An understanding of [how webhooks work in Unified.to](https://docs.unified.to/concepts/webhooks)
- Create a webhook in your

## Enable event subscriptions in Slack

1. Go to the Slack API dashboard at [https://api.slack.com/apps](https://api.slack.com/apps)
2. Select your app from the list of available apps
3. In the left sidebar, under **Features**, click **Event Subscriptions**
4. Toggle the **Enable Events** switch to **On**
5. In the **Request URL** field, enter (depending on your data center —- replace ID with your workspace ID —- replace `slack` with `slackbot` if using that integration):
    1. (US data center) `https://api.unified.to/webhook/workspace/slack?workspace_id={ID}`
    2. (EU data center) `https://api-eu.unified.to/webhook/workspace/slack?workspace_id={ID}`
6. Wait for Slack to verify the URL. You should see a green checkmark indicating successful verification.

    ![Screenshot_2024-11-14_at_5.10.40_PM.png](https://s3.us-east-2.amazonaws.com/unified-article-images/how_to_set_up_slack_webhooks_using_event_subscriptions-0.png)

7. Click **Save Changes** at the bottom of the page

## Subscribe to events from Slack


After you've enabled events and verified the request URL works, you need to subscribe to the events that you are interested in.

1. The minimum event you should subscribe to is`message.groups` (under user)
2. The other events you can subscribe to are the ones that fall under the following scopes under **Subscribe to events on behalf of users**:
    1. `channels:history`
    2. `groups:history`
    3. `im:history`
    4. `mpim:history`

        ![Screenshot_2025-01-09_at_4.25.30_PM.png](https://s3.us-east-2.amazonaws.com/unified-article-images/how_to_set_up_slack_webhooks_using_event_subscriptions-1.png)


        _Example of Slack events that you can subscribe to for webhook events_

3. Click **Save Changes** at the bottom of the page

Once completed, you can create webhooks in Unified.to that will receive these Slack events in real-time.


Happy building!


## See also

- [How to create and configure webhooks](https://docs.unified.to/guides/how_to_create_and_configure_webhooks)
- [How to troubleshoot unhealthy webhooks](https://docs.unified.to/guides/how_to_troubleshoot_unhealthy_webhooks)