> ## Documentation Index
> Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Slack incoming webhooks

> This topic explains how to use the Slack webhook integration to set up Slack incoming webhooks to receive any activities in LaunchDarkly.

> For the complete documentation index, see [llms.txt](/llms.txt). For the full documentation snapshot, see [llms-full.txt](/llms-full.txt).

## Overview

This topic explains how to use the Slack webhook integration to set up [Slack incoming webhooks](https://api.slack.com/messaging/webhooks) to receive any activities in LaunchDarkly. When you change something in LaunchDarkly, for example, when you update a feature flag, update a segment, or invite a new account member, LaunchDarkly sends an incoming webhook to Slack.

The content below describes the older webhook-based integration.

## Create a Slack incoming hook

First, create an incoming hook in Slack. To do this:

1. Navigate to the [Incoming Webhooks](https://my.slack.com/services/new/incoming-webhook/) page in Slack.
2. Select a Slack channel.
3. Click **Add Incoming WebHooks integration**:

<Frame caption="The Incoming Webhooks page.">
  ![The Incoming Webhooks page.](https://files.buildwithfern.com/https://launchdarkly.docs.buildwithfern.com/docs/0a83b0a40413c03609b17781d1538372d5379a99e25c2a0a652aec8e4f453b25/assets/images/__third_party/slack-webhooks-add.png)
</Frame>

4. Copy and save the Webhook URL.Then, set up the integration in LaunchDarkly. To do this:

5. In LaunchDarkly, click the **gear** icon in the left sidenav to view Organization settings.

6. Click **Integrations** and find the "Slack incoming webhooks" integration.

7. Click **Add integration**.

8. Enter a **Name** for the webhook.

9. In the **URL** field, enter the webhook URL you saved from step 4 in the previous procedure.

10. (Optional) Click **+ Add statement** to add a policy filter, or click **Advanced editor**.

11. Click **Save incoming webhook**.

### Add a policy filter

LaunchDarkly sends all flag change events in the production environment to a webhook by default. To customize the events LaunchDarkly sends to your Slack channel, use the policy editor in the webhook creation panel. To learn more about creating a policy, read [Example roles and policies](/home/account/roles/example-roles).

For example, if you want to receive an event only when a change is made to one of your production feature flags, you can add the following policy to the webhook integration:

<CodeGroup>
  ```json title="Policy" theme={null}
      [
        {
          "effect": "allow",
          "actions": ["*"],
          "resources": ["proj/*:env/production:flag/*"]
        }
      ]
  ```
</CodeGroup>

## Disable a Slack incoming webhook

To temporarily disable a Slack incoming webhook:

1. Navigate to the **Integrations** page and find "Slack incoming webhooks."
2. Click the **expand arrow** to display all of the configured webhooks.

<Frame caption="The expand arrow for an integration.">
  ![The expand arrow for an integration.](https://files.buildwithfern.com/https://launchdarkly.docs.buildwithfern.com/docs/d04c1f7f89e64fc2f3cc661950c6c8a4aa7cf3d5d9543b752b0b3ff96ebb93ab/assets/images/auto/manage-integrations-expand-arrow-callout.auto.png)
</Frame>

3. Click the **pencil** icon next to the webhook you want to disable. The "Edit Slack incoming webhook" panel appears.
4. Toggle the switch **Off**.
