> ## Documentation Index
> Fetch the complete documentation index at: https://launchdarkly.com/docs/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](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.

<View title="Developer">
  <Note>
    **New Slack app is now available**

    LaunchDarkly has developed a [new Slack app](/docs/integrations/slack) which is more powerful and easier to use than the Slack webhooks integration.
  </Note>
</View>

<View title="Federal docs" />

<View title="EU docs" />

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.">
  <img src="https://mintcdn.com/launchdarkly/6toei-i72Mf97ImT/images/__third_party/slack-webhooks-add.png?fit=max&auto=format&n=6toei-i72Mf97ImT&q=85&s=1e9b1a442fb79d6a5096c371e35ffc26" alt="The Incoming Webhooks page." width="998" height="393" data-path="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:

1. In LaunchDarkly, click the **gear** icon in the left sidebar to view Organization settings.
2. Click **Integrations** and find the "Slack incoming webhooks" integration.
3. Click **Add integration**.
4. Enter a **Name** for the webhook.
5. In the **URL** field, enter the webhook URL you saved from step 4 in the previous procedure.
6. (Optional) Click **+ Add statement** to add a policy filter, or click **Advanced editor**.
7. 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](/docs/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" lines wrap 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.">
  <img src="https://mintcdn.com/launchdarkly/A4UXoRTW8ATNw4yq/images/auto/manage-integrations-expand-arrow-callout.auto.png?fit=max&auto=format&n=A4UXoRTW8ATNw4yq&q=85&s=d39dfae62d0a32ca2c1637967b7ee244" alt="The expand arrow for an integration." width="680" height="100" data-path="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**.
