For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sign inTry it free
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
  • Integrations
    • Collaboration tools
      • Microsoft Teams
      • Slack app
        • Setting up Slack accounts and permissions
        • Subscribing to notifications
        • Managing approvals in Slack
        • Toggling flag targeting on and off
        • Slack incoming webhooks
      • Confluence
    • Data Export
    • Edge tools
    • Environments as a service
    • Experimentation and metric integrations
    • Internal developer platforms
    • Monitoring tools
    • Segments integrations
    • Workflow management tools
    • More integrations
    • Managing integrations
    • Using the LaunchDarkly integration framework
    • Building partner integrations
Sign inTry it free
LogoLogo
On this page
  • Overview
  • Create a Slack incoming hook
  • Add a policy filter
  • Disable a Slack incoming webhook
IntegrationsCollaboration toolsSlack app

Slack incoming webhooks

Was this page helpful?
Previous

Confluence

Next
Built with

Overview

This topic explains how to use the Slack webhook integration to set up Slack incoming 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 page in Slack.
  2. Select a Slack channel.
  3. Click Add Incoming WebHooks integration:

The Incoming Webhooks page.

The Incoming Webhooks page.
  1. 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 sidenav 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.

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:

Policy
1[
2 {
3 "effect": "allow",
4 "actions": ["*"],
5 "resources": ["proj/*:env/production:flag/*"]
6 }
7]

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.

The expand arrow for an integration.

The expand arrow for an integration.
  1. Click the pencil icon next to the webhook you want to disable. The “Edit Slack incoming webhook” panel appears.
  2. Toggle the switch Off.