> ## 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.
</Tip>

<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.
</Note>

## 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](/guides/facebook-ads/how-do-i-find-my-facebook-ads-pixel-dataset-id)
* An Upstack Data account ready to receive the token ([sign in](https://app.upstackdata.com))

## Steps to generate your CAPI token

<Steps>
  <Step title="Sign in to Meta Events Manager">
    Sign in to Meta Events Manager at [business.facebook.com/events\_manager](https://business.facebook.com/events_manager).
  </Step>

  <Step title="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

          <img src="https://mintcdn.com/upstackdata-afbed50d/a7q81tQDxtvowAUn/images/intercom/0c28ebaaba8b6720.png?fit=max&auto=format&n=a7q81tQDxtvowAUn&q=85&s=5f0fcc25a6f67248dc66e511a7d10d41" alt="" width="4332" height="1810" data-path="images/intercom/0c28ebaaba8b6720.png" />

          <img src="https://mintcdn.com/upstackdata-afbed50d/a7q81tQDxtvowAUn/images/intercom/362d04cbb4a2439c.png?fit=max&auto=format&n=a7q81tQDxtvowAUn&q=85&s=e87a11525f24a7a1376e5ddb1c4e335f" alt="" width="4332" height="1810" data-path="images/intercom/362d04cbb4a2439c.png" />
  </Step>

  <Step title="Open the pixel overview">
    In the **Data Sources** list, click your pixel's name. You'll land on the pixel's **Overview** page.
  </Step>

  <Step title="Navigate to the Settings tab">
    On the pixel **Overview** page, click the **Settings** tab in the left-hand menu.

    <img src="https://mintcdn.com/upstackdata-afbed50d/a7q81tQDxtvowAUn/images/intercom/06c06faaf7c25695.png?fit=max&auto=format&n=a7q81tQDxtvowAUn&q=85&s=290dc1f6d6dce66cdf4ae0c311f22db3" alt="" width="3695" height="1810" data-path="images/intercom/06c06faaf7c25695.png" />
  </Step>

  <Step title="Generate the access token">
    On the **Settings** tab, scroll down to the **Conversions API** section and click **Generate access token**.

    <img src="https://mintcdn.com/upstackdata-afbed50d/a7q81tQDxtvowAUn/images/intercom/1fedf95a0dc762b9.png?fit=max&auto=format&n=a7q81tQDxtvowAUn&q=85&s=70ae2dcd0cc4641a4cb9e44fba419c89" alt="" width="3695" height="1810" data-path="images/intercom/1fedf95a0dc762b9.png" />
  </Step>

  <Step title="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.
    </Warning>

    <img src="https://mintcdn.com/upstackdata-afbed50d/a7q81tQDxtvowAUn/images/intercom/46dc1facbf38d3d8.png?fit=max&auto=format&n=a7q81tQDxtvowAUn&q=85&s=36d904fe3b2c0cd5132ce748b120e349" alt="" width="3695" height="1810" data-path="images/intercom/46dc1facbf38d3d8.png" />

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

  <Step title="Add the token to Upstack Data">
    Sign in to Upstack Data at [app.upstackdata.com](https://app.upstackdata.com/pixel/event-destinations) and open your **Meta** destination under **Event Destinations**. Paste the token into the **Conversions API token** field.

    <Note>
      Make sure the **Check to enable sending events via Facebook Conversions API** checkbox is selected.
    </Note>

    <img src="https://mintcdn.com/upstackdata-afbed50d/40dgTTn1PLjePhJa/images/intercom/e73d4174f90f39b9.png?fit=max&auto=format&n=40dgTTn1PLjePhJa&q=85&s=6d4b3bcd11d38dae5feaf2b0f0dbdb54" alt="" width="4025" height="1691" data-path="images/intercom/e73d4174f90f39b9.png" />

    <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.
    </Warning>
  </Step>

  <Step title="Verify the destination is healthy">
    In the Upstack dashboard, the Meta destination card should show **Healthy** with a green status indicator within 5 minutes.

    If the status shows **Unhealthy**:

    * Confirm the token starts with `EAA` and was pasted in full (no truncation, no whitespace).
    * Confirm the **Conversions API** checkbox is selected.
    * Confirm the Pixel ID matches the pixel you generated the token for.
  </Step>
</Steps>

<Note>
  **Need help with the Pixel ID?** See [How to find your Meta Pixel ID](/guides/facebook-ads/how-do-i-find-my-facebook-ads-pixel-dataset-id).
</Note>
