> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeotap.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LaunchDarkly Real Time Integration

## Overview

LaunchDarkly is a feature management platform that empowers development teams to safely deliver, control and measure their software through feature flags. With LaunchDarkly, you can run experiments on any feature flag. Integrated with Zeotap CDP, this Destination allows you to send the segments created in Zeotap CDP to be used in LaunchDarkly feature flags.

## Prerequisites

Ensure that you obtain the following prerequisites from LauchDarkly before proceeding with this integration:

* Access Token
* Client-side ID

### Access Token

An Access token in LaunchDarkly is a unique identifier that allows you to authenticate and control access to your LaunchDarkly feature flags and experiments. Perform the following steps to obtain the API Access token:

<Steps>
  <Step>
    Log into the LaunchDarkly console and navigate to **Account settings** **>** **Authorization**.
  </Step>

  <Step>
    Under **Access tokens**, click **Create token**.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly/Dark_access_token_1.png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=e03f830172d42ddd2e51980c69260db1" width="3022" height="1728" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly/Dark_access_token_1.png" />
    </Frame>
  </Step>

  <Step>
    In the **Create access token** window that appears, provide the following details:

    a. Enter a **Name** for your access token.

    b. Choose the **Role** as **Writer** for your access token from the drop-down menu.

    c. Choose the **API version** for your token from the drop-down menu. By default, the API requests you send using this token will use this API version. For more information about how the API versioning works in LaunchDarkly, refer [here](https://apidocs.launchdarkly.com/#section/Overview/Versioning).

    d. If you are Enterprise customer, you can click **This is a service token** checkbox if you wish to create a service token.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly/dark_access_token_2.png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=41a2fd425960c4d57a591ebc34ff68f3" width="1506" height="1256" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly/dark_access_token_2.png" />
    </Frame>
  </Step>

  <Step>
    Review the entered details and click **Save Token**. The newly created Access token gets listed on the **Authorization** page as shown in the image below. Ensure to copy and save the token securely as it is hidden once you leave the page.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly/dark_launchly_access_token_3_(1).png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=e643cfaed57d2abe61630b51e6049653" width="2436" height="996" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly/dark_launchly_access_token_3_(1).png" />
    </Frame>
  </Step>
</Steps>

### Client-side ID

This is the Client-side ID of your LaunchDarkly account. Perform the following steps to obtain the Client-side ID:

<Steps>
  <Step>
    Log into LaunchDarkly account and navigate to **Account Settings**.
  </Step>

  <Step>
    Click **Projects** tab and select the project you want to link to Zeotap CDP.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly/launch_darkly_client_side_id_1.png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=77bbc95dca3c2a47bd49875b5a9cfee5" width="3010" height="1348" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly/launch_darkly_client_side_id_1.png" />
    </Frame>
  </Step>

  <Step>
    In the new screen that appears, under the **Environments** tab, copy the **Client-side ID** next to the environment that you wish to link with Zeotap CDP. You can use this information while creating a Destination in Zeotap CDP.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly/darklaunchly_client_id_2_(1).png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=06467d555f18bf53da89c72ed2e74886" width="3020" height="1416" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly/darklaunchly_client_id_2_(1).png" />
    </Frame>
  </Step>
</Steps>

## Destination Setup

After you have applied filters or added conditions for your users in Journeys, you can activate them in Emarsys under **Send to Destinations.** A new window appears, where you can set up your destination. You can use an already existing destination from the list of available Destinations or create a new one by clicking **+ Add New Destination**.

<Frame>
  <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly-real-time-integration/launchdarkly-real-time-integration-2024-08-07.png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=c5387fee1e12ab9535afa12919e48cf0" width="1858" height="1070" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly-real-time-integration/launchdarkly-real-time-integration-2024-08-07.png" />
</Frame>

### Add New Destination

Perform the following steps to add a new destination:

<Steps>
  <Step>
    Click **Add New Destination.**
  </Step>

  <Step>
    Search for **launchDarkly.**
  </Step>

  <Step>
    Click **launchDarkly** and enter a name for the Destination.
  </Step>

  <Step>
    Enter the **Access Token** and **Client Side ID** obtained from your LauchDarkly account and click **Next**.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly-real-time-integration/launchdarkly-real-time-integration-2024-08-07-1.png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=7ace7b0e8530dd02a746374e6fdf07a4" width="1086" height="1070" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly-real-time-integration/launchdarkly-real-time-integration-2024-08-07-1.png" />
    </Frame>
  </Step>

  <Step>
    In the mapping screen that appears, under **Choose your Action**, select **Send Identifiers to LaunchDarkly in realtime** as the action for sending data to the workflow created in Journeys. Under **Map the Fields**, map the appropriate Catalogue fields to the Destination fields to send to Destination.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly-real-time-integration/launchdarkly-real-time-integration-2024-08-07-2.png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=93a85ae8fd4210707183e99984b8725f" width="1938" height="1752" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly-real-time-integration/launchdarkly-real-time-integration-2024-08-07-2.png" />
    </Frame>
  </Step>

  <Step>
    Once the mapping is complete, click **Create Destination**. The destination is created and made available for activation on Journeys.
  </Step>
</Steps>

## Activate the Destination on Journeys

After creating a destination, next, you need to link it in the **Send to Destination** node within the workflow, as explained below.

<Steps>
  <Step>
    In the workflow, click **+** and choose **Send to Destinations**.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly-real-time-integration/launchdarkly-real-time-integration-2024-08-07-3.png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=9984676da5699bd2585c5dcacc481ea5" width="1032" height="542" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly-real-time-integration/launchdarkly-real-time-integration-2024-08-07-3.png" />
    </Frame>
  </Step>

  <Step>
    Choose the destination from the list of available destinations by using the search feature.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly-real-time-integration/launchdarkly-real-time-integration-2024-08-07-4.png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=74c091bcce232ad84e7b373e333ed957" width="1896" height="1056" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly-real-time-integration/launchdarkly-real-time-integration-2024-08-07-4.png" />
    </Frame>
  </Step>

  <Step>
    Under the **Destination Details** tab, the **Access Token** and **Client Side ID** fields are automatically populated based on the value that you had entered while creating the destination. However, in the **Segment Name** and **Segment Id** fields, enter a name and Id to categorise your users.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly-real-time-integration/launchdarkly-real-time-integration-2024-08-07-5.png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=a5009ffa0827927f860d700d2e36cfde" width="1916" height="1558" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly-real-time-integration/launchdarkly-real-time-integration-2024-08-07-5.png" />
    </Frame>
  </Step>

  <Step>
    Under the **Destination Settings** tab, choose the Action and mapping as per your requirement.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly-real-time-integration/launchdarkly-real-time-integration-2024-08-07-6.png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=fe8eb9da7b1c6683b64c9c85f590c5a3" width="1882" height="1272" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly-real-time-integration/launchdarkly-real-time-integration-2024-08-07-6.png" />
    </Frame>
  </Step>

  <Step>
    Upon clicking **Save Destination**. The destination is attached as shown in the image below.

    <Frame>
      <img src="https://mintcdn.com/zeotap/N2x6le2iGwMeelJt/articles/integrate-customer/Storage/integrate-customer/launchdarkly-real-time-integration/launchdarkly-real-time-integration-2024-08-07-7.png?fit=max&auto=format&n=N2x6le2iGwMeelJt&q=85&s=4e139cac76c3a01e3e3da4dca9d665c9" width="1898" height="1106" data-path="articles/integrate-customer/Storage/integrate-customer/launchdarkly-real-time-integration/launchdarkly-real-time-integration-2024-08-07-7.png" />
    </Frame>
  </Step>
</Steps>
