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

# How to Generate my Facebook Conversion API Key?

> Generate a Facebook (Meta) Conversion API access token in Meta Events Manager and paste it into Upstack Data to enable server-side conversion forwarding via CAPI.

> [!TIP]
>
> * Sign in to [Meta Events Manager](https://business.facebook.com/events_manager) and open your pixel.
> * Open the **Settings** tab and scroll to the **Conversions API** section.
> * Click **Generate access token** and copy the token immediately — it is shown only once.
> * Paste the **CAPI token** (starts with `EAA`) into your Upstack Meta destination.

> [!NOTE]
>
> **What is a CAPI token?**
>
> A **Conversions API (CAPI) token** is a Meta access token that lets Upstack Data send conversions from your server to Meta, improving accuracy for iOS users and ad-blocked traffic.

## Prerequisites

Before you start, you need:

* **Admin access** (or full access) to a **Meta Business Manager** account
* A pixel already created in [Meta Events Manager](https://business.facebook.com/events_manager) — see [How to find your Meta Pixel ID](https://docs.upstackdata.com/destinations/catalog/meta-capi/how-do-i-find-my-facebook-ads-pixel-dataset-id.md)
* An Upstack Data account ready to receive the token ([sign in](https://app.upstackdata.com))

## Steps to generate your CAPI token

**1. Sign in to Meta Events Manager**

Sign in to Meta Events Manager at [business.facebook.com/events\_manager](https://business.facebook.com/events_manager).

**2. Find or create your pixel**

**If you already have a pixel**, you'll see it listed in the **Data Sources** panel — proceed to the next step.

**If you need to create one:**

* Click the green **Connect Data Sources** button
* Select **Web**
* Click **Next** or **Get Started**
* Follow the instructions to create a new Meta Pixel

  ![Meta Events Manager with Connect Data Sources button](https://mintcdn.com/upstackdata-afbed50d/a7q81tQDxtvowAUn/images/intercom/0c28ebaaba8b6720.png?fit=max\&auto=format\&n=a7q81tQDxtvowAUn\&q=85\&s=5f0fcc25a6f67248dc66e511a7d10d41)

  ![Select Web as data source type in Meta Events Manager](https://mintcdn.com/upstackdata-afbed50d/a7q81tQDxtvowAUn/images/intercom/362d04cbb4a2439c.png?fit=max\&auto=format\&n=a7q81tQDxtvowAUn\&q=85\&s=e87a11525f24a7a1376e5ddb1c4e335f)

**3. Open the pixel overview**

In the **Data Sources** list, click your pixel's name. You'll land on the pixel's **Overview** page.

**4. Navigate to the Settings tab**

On the pixel **Overview** page, click the **Settings** tab in the left-hand menu.

![Meta Pixel Settings tab in left-hand navigation](https://mintcdn.com/upstackdata-afbed50d/a7q81tQDxtvowAUn/images/intercom/06c06faaf7c25695.png?fit=max\&auto=format\&n=a7q81tQDxtvowAUn\&q=85\&s=290dc1f6d6dce66cdf4ae0c311f22db3)

**5. Generate the access token**

On the **Settings** tab, scroll down to the **Conversions API** section and click **Generate access token**.

![Conversions API section with Generate access token button](https://mintcdn.com/upstackdata-afbed50d/a7q81tQDxtvowAUn/images/intercom/1fedf95a0dc762b9.png?fit=max\&auto=format\&n=a7q81tQDxtvowAUn\&q=85\&s=70ae2dcd0cc4641a4cb9e44fba419c89)

**6. Copy your CAPI token**

Copy the value of the access token shown in the dialog. This is your **CAPI token**.

> [!WARNING]
>
> The token is shown **only once** — copy it immediately to a secure location. If you close the dialog without copying, you'll need to generate a new one.

![Generated CAPI access token dialog with copy option](https://mintcdn.com/upstackdata-afbed50d/a7q81tQDxtvowAUn/images/intercom/46dc1facbf38d3d8.png?fit=max\&auto=format\&n=a7q81tQDxtvowAUn\&q=85\&s=36d904fe3b2c0cd5132ce748b120e349)

**Token format:** starts with `EAA`, approximately 190 characters long (e.g., `EAAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...`).

**7. Add the token to Upstack Data**

Sign in to Upstack Data at [app.upstackdata.com](https://app.upstackdata.com/destinations) and open your **Meta** destination under **Destinations**. Paste the token into the **Conversions API token** field.

![Upstack Meta destination with Conversions API token field](https://mintcdn.com/upstackdata-afbed50d/40dgTTn1PLjePhJa/images/intercom/e73d4174f90f39b9.png?fit=max\&auto=format\&n=40dgTTn1PLjePhJa\&q=85\&s=6d4b3bcd11d38dae5feaf2b0f0dbdb54)

> [!WARNING]
>
> The CAPI token is sensitive — store it securely. The token is tied to a single Meta ad account and cannot be reused across accounts.

**8. Verify the destination is healthy**

In the Upstack dashboard, the Meta destination card should show **Healthy** with a green status indicator.

If the status shows **Unhealthy**:

* Confirm the token starts with `EAA` and was pasted in full (no truncation, no whitespace).
* Confirm the Pixel ID matches the pixel you generated the token for.

> [!NOTE]
>
> **Need help with the Pixel ID?** See [How to find your Meta Pixel ID](https://docs.upstackdata.com/destinations/catalog/meta-capi/how-do-i-find-my-facebook-ads-pixel-dataset-id.md).

## Related Articles

> [card] [Find your Meta Pixel ID](https://docs.upstackdata.com/destinations/catalog/meta-capi/how-do-i-find-my-facebook-ads-pixel-dataset-id.md)

> [card] [Configure Meta Pixel destination](https://docs.upstackdata.com/destinations/catalog/meta-capi/how-to-configure-facebook-meta-ads-pixel-destination-in-upstack-data.md)

> [card] [Update Facebook CAPI key](https://docs.upstackdata.com/destinations/catalog/meta-capi/how-to-update-facebook-meta-conversion-api-key.md)

> [card] [Connection errors and disconnections](https://docs.upstackdata.com/troubleshooting/integration-connection-errors-and-disconnections.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.