# Integrating Amplitude

{% hint style="info" %}
Note: To integrate Amplitude, the **Amplitude project you're using must be on a paid plan**.
{% endhint %}

You can perform various tasks in FlareLane that target Amplitude cohorts.

Once the integration with Amplitude is complete, devices that match the user\_id within the Amplitude cohort will be grouped into a separate segment.

## How to Start

Step 1. In the Amplitude console, go to **Data > Catalog > Destinations > Webhook**.

<figure><img src="/files/Cm7coUI2rEHrsSe9ERFS" alt=""><figcaption><p>Image by FlareLane</p></figcaption></figure>

Step 2. In the **Destinations**, enter the following values in the **Webhook URL** and **Headers** fields, respectively. Select the other options appropriately as needed.

<figure><img src="/files/022P2Sp7KjBoxfUkl0xE" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="285">Category</th><th>Input</th></tr></thead><tbody><tr><td>Webhook URL</td><td>http://api.flarelane.com/v1/cohort-sync/amplitude</td></tr><tr><td>Headers (x-flarelane-project-id)</td><td>The ID of the FlareLane project you want to integrate</td></tr><tr><td>Headers (x-flarelane-api-key)</td><td>The API key of the integrated FlareLane project</td></tr></tbody></table>

***

## Integrating Cohorts

Once the integration is complete, you can link the Amplitude cohort to FlareLane following the steps below:

Step 1. In the Amplitude console, click **Audiences > Syncs > Create Sync**

<figure><img src="/files/Ox5VRZuuyZ3l2a87rjT9" alt=""><figcaption><p><em>Image by FlareLane</em></p></figcaption></figure>

Step 2. Select the cohort to link, then click **Next**.

<figure><img src="/files/ewPeVMKKeK5uGaSuUiE4" alt=""><figcaption><p><em>Image by FlareLane</em></p></figcaption></figure>

Step 3. Select **All Traffic > Webhook** as the Destination.

<figure><img src="/files/EbOSeeT85hDXzWvNcQmS" alt=""><figcaption><p><em>Image by FlareLane</em></p></figcaption></figure>

Step 4. Select the **FlareLane integration** that was created earlier.

<figure><img src="/files/9RiWe33loRff90XarnJJ" alt=""><figcaption><p><em>Image by FlareLane</em></p></figcaption></figure>

Step 5. Select the **sync type**. For Scheduled Sync, the following conditions apply depending on the type:

{% hint style="info" %}

* **Hourly Sync** can sync up to 1 million users.
* **Daily Sync** can sync up to 10 million users.
  {% endhint %}

<figure><img src="/files/KkE9egP94ZUsoQHBxA8v" alt=""><figcaption><p><em>Image by FlareLane</em></p></figcaption></figure>

Step 6. Once the sync begins, a separate segment with an Amplitude badge will be automatically created in **FlareLane segments** as follows:

<figure><img src="/files/J3gKSoO6XQ1bQ2njeTvp" alt=""><figcaption><p><em>Image by FlareLane</em></p></figcaption></figure>

***

## Troubleshooting

### Manually Re-Syncing Cohorts

If the Amplitude cohort doesn't seem to be properly synced with FlareLane, you can attempt a manual re-sync. Here's how:

Step 1. In the Amplitude console, hover over the cohort in **Audiences > Syncs** and click **History**.

<figure><img src="/files/GLYlnL1VpqMAj0GZS5Kq" alt=""><figcaption><p>Image by FlareLane</p></figcaption></figure>

Step 2. Click the **Sync** button on the cohort details page.

<figure><img src="/files/ozJR4oncHvwCHht6nl3e" alt=""><figcaption><p><em>Image by FlareLane</em></p></figcaption></figure>

Step 3. In the pop-up, click **Sync Now** to start the re-sync process.

<figure><img src="/files/PqoB7I6W5NT2jmMRUMOm" alt=""><figcaption><p>Image by FlareLane</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.flarelane.com/data-integration/integrating-amplitude.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
