Skip to main content

What this is

Facebook Conversions API (CAPI) is Meta’s server-to-server endpoint for sending web, app, and offline events directly to a Meta Pixel or Dataset — complementing browser-side pixel tracking with data you post from your own backend. This page describes the direct POST /events call to Meta’s Graph API: the URL structure, the required payload fields, and how to confirm Meta received the event. If you want Zeotap CDP to send events on your behalf from an audience or a Journey instead of calling the endpoint yourself, use the Facebook Conversions API destination.

Prerequisites

Before you can post events to the Conversions API, obtain the following:
  • A Meta Business Manager account.
  • A Meta Pixel (or Dataset) linked to your Business Manager.
  • The Pixel ID (or Dataset ID) from Facebook Events Manager.
  • A generated access token with Conversions API permission. The Generate access token link in Events Manager is visible only to users with developer privileges for the business.
Web and app events shared using the Conversions API require specific parameters. By using the Conversions API, you agree that the action_source parameter is accurate to the best of your knowledge. For the full parameter reference, see the Conversions API parameters appendix.

Post an event to the /events edge

To create new server events, send a POST request to the /events edge for your Pixel ID:
Attach your generated access token using the access_token query parameter. Meta creates a new server event for each entry in the data array of your payload. Example cURL request:
You can also POST to /<pixel_id>/events interactively from Meta’s Graph API Explorer while iterating on your payload.

Structure the request body

Each request body carries a data array — one entry per event. Each entry accepts standard event fields, hashed user identifiers, and optional custom data. The example below sends two Purchase events in one call:
Field reference:
  • event_name — a standard Meta event (Purchase, AddToCart, Lead, ViewContent, and so on) or a custom event name. Mapping this field is mandatory; otherwise the call fails.
  • event_time — Unix timestamp in seconds indicating when the event occurred. Mapping this field is mandatory; otherwise the call fails.
  • event_source_url — required for website events. Must begin with http:// or https:// and match a domain verified against the Pixel.
  • action_source — where the event originated (for example, website or app).
  • event_id — optional, and used together with a matching Pixel event_id for deduplication.
  • user_data.client_user_agent — required for website events.
  • user_data.em, user_data.ph, first name, and last name — must be SHA-256 hashed before you send them. client_ip_address, client_user_agent, fbc (Click ID), and fbp (Browser ID) are sent unhashed.
  • custom_data — value and currency are mandatory for Purchase events.
  • opt_out — set to true to exclude the event from ads optimisation and attribution.

Why this happens

The /events endpoint rejects a request when required parameters are missing, credentials are invalid, or identifiers are formatted incorrectly. The conditions below cover the failures documented for the Conversions API integration.

Verify events were received

Meta Events Manager surfaces events posted to the Conversions API against the Pixel or Dataset you targeted. Once your POST returns a success response, the event appears against the Pixel in Events Manager.
To verify from Meta’s side:
  1. Log into Meta Events Manager.
  2. Open the Pixel or Dataset that corresponds to the PIXEL_ID you posted to.
  3. Review the event activity for the event_name values you sent.
For the full Events Manager guide, see Meta’s Conversions API documentation.
If the same events also flow through a Zeotap-managed Facebook Conversions API destination, open the Destinations application in Zeotap CDP and review the destination linked to your Pixel.

Troubleshoot rejected or missing events

Work through these checks when Meta returns an error or when events do not appear against your Pixel:
  1. Confirm your POST target is https://graph.facebook.com/{API_VERSION}/{PIXEL_ID}/events, with a supported API_VERSION and the correct Pixel or Dataset ID.
  2. Confirm the access_token query parameter is present, has Conversions API permission, and has not been revoked. Regenerate the token from Events Manager if in doubt.
  3. Confirm every website event carries both event_source_url and user_data.client_user_agent.
  4. Confirm em, ph, fn, and ln are SHA-256 hashed strings, not plaintext.
  5. Confirm the domain in event_source_url is verified against the Pixel.
  6. For duplicate events across the Pixel and the API, send the same event_name and either a shared event_id or a combination of external_id and fbp on both calls — Meta uses these to deduplicate.

FAQ

Meta recommends a setup that uses both the Pixel and the Conversions API to pass events. Zeotap’s integration covers only the server-to-server Conversions API — implementing the browser Pixel is your responsibility.
Use the same event_name for the Pixel and the server event, and include either a shared event_id or a combination of external_id and fbp on both. Meta uses these values to deduplicate identical events.
Hash em (email), ph (phone), fn (first name), and ln (last name), along with date of birth, gender, city, state, zip, and country. Send client_ip_address, client_user_agent, fbc (Click ID), and fbp (Browser ID) unhashed.
You can send any standard Meta event — Purchase, AddToCart, AddToWishlist, CompleteRegistration, Lead, InitiateCheckout, Search, ViewContent, StartTrial, Subscribe, and others — or a custom event name defined for your business.

Next steps

Last modified on November 17, 2026