Snapchat Conversions API: Setup, Tokens and Deduplication With the Snap Pixel
A setup guide to Snap's Conversions API v3 for marketers: the prerequisites, where the access token lives, direct versus partner integration, and the pixel and API field pairs that have to match for deduplication to work.
In short
The Snapchat Conversions API sends conversions from your server to Snap, alongside the Snap Pixel. You need a Pixel ID, a Business Manager and a token that an Organization Admin generates under Business Details in Ads Manager. To avoid double counting, the pixel's client_dedup_id must equal the API's event_id, with the same event name, within 48 hours.
Snapchat's Conversions API (often shortened to CAPI) lets your server send conversions such as purchases and sign-ups straight to Snap, instead of relying only on the Snap Pixel in the visitor's browser. If the idea is new, start with what a conversions API is. Snap recommends that web advertisers run the API alongside the pixel, which means every conversion can arrive twice and has to be deduplicated. The setup is short: a Pixel ID, a Business Manager, and an access token that only an Organization Admin can generate. The part that goes wrong is deduplication, because Snap uses a different field name on each side.
What you need before you start
Snap's Get Started page lists three prerequisites.
- A Pixel ID or a Snap App ID. Website events use the Pixel ID of the Snap Pixel already on your site. Mobile app events use the Snap App ID. Offline events, such as in-store or phone sales, also use the Pixel ID.
- A Business Manager account with Snap.
- A Conversions API access token, generated inside that business.
Use the same Pixel ID for server events as the one in your browser pixel. Snap's reason is specific: events sent with that Pixel ID enter the same pipeline for deduplication. Send server events to a second pixel and Snap cannot tell that the browser event and the server event describe the same sale. If you are not sure whether a page carries a Snap pixel at all, the free pixel inspector lists the tags found in a page's initial HTML. It cannot see a pixel that a tag manager injects later.
Where to generate the access token
- 1Log in to Snapchat Ads Manager at ads.snapchat.com.
- 2Click the menu in the top corner and select Business Details.
- 3Find the Conversions API Tokens section, which sits under OAuth Apps, and click Generate Token.
- 4Copy the token and keep it where your server or integration partner can read it, never in the code of a web page.
Four details from Snap's documentation are worth knowing. Only an Organization Admin can see that section, so if it is missing from your Business Details page, your role is the reason. The token does not expire and never needs refreshing. You can generate several tokens, for example one per integration, and deleting a token invalidates it, which is how you revoke access when an agency or tool is replaced. And a token only works for pixels and apps that belong to the organisation where it was generated.
Direct integration or partner integration
| Route | Who does the work | Good fit when |
|---|---|---|
| Direct integration | A developer sends events from your server to Snap's endpoint. Snap offers a Java Business SDK to shorten the work. | You run your own backend or checkout and want control over exactly what is sent. |
| Partner integration | A platform you already use sends the events once you connect your Snap account or paste in the Pixel ID and token. Often no developer is needed. | Your store platform, tag manager or customer data platform already has a Snap connector. |
Snap itself recommends a direct integration because it gives the most control. On the partner side, customer data platforms such as Segment and Tealium publish Snap connectors, and server-side Google Tag Manager has Snapchat Conversions API tag templates. Check which API version a connector sends to before you rely on it.
Either way you are using version 3, the current version. A direct integration sends a POST request to https://tr.snapchat.com/v3/{PIXEL_ID}/events with the token in the access_token parameter, and the events travel in a data array, so one request can carry several of them. Version 2 used a different endpoint and field names, and Snap's documentation said it would be deprecated in early 2025, so treat any guide that shows a flat payload with hashed_email or event_type as out of date. For how Snap's API sits next to the others, see conversions APIs compared.
What each server event must contain
Whoever builds the integration, these are the fields to check in a sample payload.
- event_name: one of Snap's standard names in capitals, such as PURCHASE, SIGN_UP, ADD_CART, START_CHECKOUT or PAGE_VIEW. There are also five custom slots, CUSTOM_EVENT_1 to CUSTOM_EVENT_5.
- event_time: when the conversion happened, as a Unix timestamp.
- action_source: WEB, MOBILE_APP or OFFLINE.
- event_source_url: the page where the event took place, including the http or https protocol.
- user_data: at least one of a hashed email (em), a hashed phone number (ph), or the visitor's IP address together with the browser user agent. The IP address and user agent are sent unhashed.
- For PURCHASE: value and currency inside custom_data.
- event_id: the deduplication ID, covered in the next section.
Two more fields are optional but recommended. sc_click_id is the value of the ScCid parameter in the landing page URL after someone clicks a Snap ad. sc_cookie1 is the value of the _scid cookie for your domain, available when the Snap Pixel runs there. Both are sent unhashed, and Snap says including one of them can significantly improve matching. Emails and phone numbers must be normalised and hashed with SHA-256 before sending, and the hashing rules per platform cover the formatting.
Send events as they happen. Snap's pages disagree on how late an event can be: the Parameters page says event_time cannot be more than 7 days in the past, while the introduction says events up to 37 days old are eligible for reporting. Plan around the shorter limit.
Deduplication: the field pairs that must match
When the pixel and the API both report the same conversion, Snap treats them as one, but only if it can see they are the same event. On Meta the browser pixel sends eventID and the server sends event_id with the same value, as described in Meta CAPI event deduplication. Snap uses entirely different names in the pixel and in the API, which is where most setups break.
| What it is | Snap Pixel field | Conversions API v3 field | Matching window |
|---|---|---|---|
| Deduplication ID, for any event | client_dedup_id | event_id, at the top level of the event | 48 hours |
| Order reference, for PURCHASE only | transaction_id | order_id, inside custom_data | Up to 30 days |
Three things have to be true for a pair to match:
- The Pixel ID in the API endpoint URL is the Pixel ID of the pixel that fired the browser event.
- The event name is identical on both sides. SIGN_UP and SIGNUP are different events to Snap.
- The two ID values are identical strings, with the same capitals and no extra spaces.
Snap does not document a simple rule such as keeping the first copy to arrive. It says it evaluates signal quality to choose the strongest representation of the event, so the practical job is only to make the IDs match.
The client_dedup_id trap
If your pixel call does not set client_dedup_id, the Snap Pixel generates one itself, prefixed with @-. That ID is known only to the visitor's browser, so nothing your server sends can match it, and the browser copy and the server copy are both counted. The fix is to create the ID once, when the conversion happens, and hand the same value to both sides. In Google Tag Manager, Snap's own example pushes the ID into the data layer, reads it with a Data Layer Variable and passes it as client_dedup_id in the snaptr('track', ...) call.
Snap's order of preference for the ID is an existing order or transaction ID, then a lead ID for form conversions, then a freshly generated UUID (a random unique string). It must be unique to one conversion, not to a session or a visitor. Reusing one ID across several real conversions can collapse them into one in reporting.
Purchases: send both pairs
For a purchase, send the deduplication ID and the order reference. Take order 48213. The pixel call is snaptr('track', 'PURCHASE', ...) with client_dedup_id and transaction_id both set to 48213, plus price and currency. The server event is PURCHASE with event_id 48213 at the top level and order_id 48213 inside custom_data, plus value and currency. When both pairs are present, the deduplication ID pair takes precedence with its 48-hour window. The order pair is the fallback for up to 30 days, which covers a payment confirmation that reaches your server late.
Two mistakes are common here. One is sending transaction_id at the top level of a version 3 payload, where Snap expects order_id inside custom_data. The other is sending an unfilled template placeholder, or a value such as null or undefined, instead of a real order number; Snap says such values may not be honoured. For the same problem on other platforms, see duplicate conversions: causes and fixes.
How to verify the setup
- 1Validate the payload before going live. Snap's Verify Set Up page has a Request Check Tool where you paste the request JSON and click Test Request, and a test endpoint at https://tr.snapchat.com/v3/{PIXEL_ID}/events/validate that confirms in near real time whether a request is valid, without counting it as a production event.
- 2Fix the usual causes of an INVALID response: a missing required field, a purchase without price or currency, an invalid IP address, a timestamp out of range, or personal data that is unhashed or too thin to match on.
- 3Place a real test conversion that fires both the pixel and the server event, and note the ID you expect to see on each side.
- 4Allow up to 24 hours for traffic to flow through and for the diagnostics to update.
- 5In Events Manager, open your pixel, go to the event you tested, such as PURCHASE, and open Diagnostics. Confirm the deduplication IDs are present on both integrations.
- 6Compare a few days of Snap's purchase count with the orders in your own system. A count close to double your real orders means the pairs are not matching.
Where EndFrame fits
EndFrame does not have a Snapchat destination. Its server-side destinations are the Meta Conversions API, the GA4 Measurement Protocol, the TikTok Events API and custom webhooks. If you record conversions in EndFrame, a webhook can pass each one to a system of your own that calls Snap's endpoint. That sender, and the matching client_dedup_id on the pixel, are yours to build and maintain.
Frequently asked questions
Can an agency use one Snapchat Conversions API token for several clients?
Only if the pixels sit in the same Snap organisation. A token can send events only for the pixel and app IDs that belong to the organisation where it was generated, and a request to another organisation's pixel fails. For clients with their own Business Manager, an Organization Admin in each one has to generate a token and share it with you.
What changed between Snapchat Conversions API v2 and v3?
Version 3 puts the Pixel ID in the endpoint URL and wraps events in a data array, with user_data and custom_data as nested objects. Several fields were renamed: hashed_email became em inside user_data, event_type became event_name, timestamp became event_time, page_url became event_source_url and event_conversion_type became action_source. Snap publishes a migration guide for integrations still built on version 2.
Can the Snapchat Conversions API send offline conversions?
Yes. Snap accepts conversions such as in-store purchases and phone orders. They are sent with the action source OFFLINE and use the Pixel ID rather than a Snap App ID. Snap covers the supported sources and batch uploads in a separate Offline Events guide within the Conversions API documentation.
Do I still need the Snap Pixel if I use the Conversions API?
Snap recommends running both on a website: the Conversions API alongside a pixel integration, with deduplication merging the two copies of each event. The pixel also makes the _scid cookie value available, which the API can pass back as sc_cookie1. For mobile apps, Snap recommends the Conversions API alongside a mobile measurement partner integration instead.
Sources
Try EndFrame
Add a server-side path for your conversions.
EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.
No credit card required