Send events to every destination
The recommended way to send conversions. Sends conversion events once and forwards them to every ad platform destination saved for the profile (see POST /v1/events/destinations), or to the destinations given in the request. Requires the Ads add-on.
Authentication
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Body
application/jsonWhat every request needs
Profile the events belong to. Its saved destinations receive the events.
Standard event name (Purchase, Lead, CompleteRegistration, AddToCart, InitiateCheckout, AddPaymentInfo, Subscribe, StartTrial, ViewContent, Search, Contact, SubmitApplication, Schedule) or a custom string. Custom strings work only on platforms that accept custom events: Meta, OpenAI Ads and Reddit.
Per-platform behavior:
- Meta: free-form; standard names match Meta's built-ins.
- Google: ignored. The conversion action's category determines the type.
- LinkedIn: ignored. The conversion rule's
typeis locked to the destination. - OpenAI Ads: a fixed subset (Purchase, Lead, AddToCart, ViewContent, InitiateCheckout, CompleteRegistration, Subscribe, StartTrial, Schedule) maps 1:1 onto OpenAI's own event-type enum. Anything else is sent as a custom event with the name preserved.
- Reddit: Purchase, Lead, CompleteRegistration (SIGN_UP), AddToCart, AddToWishlist, ViewContent, Search and PageView (PAGE_VISIT) map onto Reddit's tracking types. Anything else is sent as a CUSTOM event with the name preserved.
When the conversion happened, in unix seconds.
Unique dedup key. Use the same eventId on pixel + CAPI to prevent double-counting. Mapped to:
- Meta: event_id.
- Google: transactionId.
- LinkedIn: eventId. LinkedIn deduplicates against Insight Tag events with the same eventId; the Insight Tag event wins when both arrive.
- Reddit:
metadata.conversion_id(Reddit's dedup key against Reddit Pixel events).
User identity fields. More signals mean higher match rates.
Optional parameters12 fields
Send to these destinations instead of the saved ones (every event goes to each).
Connected ads account ID (metaads, googleads, linkedinads, tiktokads, openaiads, pinterestads or redditads).
Platform destination, as listed by GET /v1/ads/conversions/destinations.
Batch-level user consent, forwarded to every destination (see POST /v1/ads/conversions).
Forwarded as each platform test code (see POST /v1/ads/conversions). A root-level test_event_code is accepted as an alias. Test events are not stored.
syncOne of sync | asyncsync sends to every destination before answering (200, per-destination results). async stores and queues the sends, then answers 202 at once; each send is retried while the platform fails for now, and its outcome shows on GET /v1/events/{eventId}. Requests with testCode always send now.
Conversion value in the specified currency.
ISO 4217 currency code.
Item-level detail for ecommerce events.
URL where the conversion originated (used by Meta).
The ad campaign behind the event, when you know it. Read only by POST /v1/events, which ties the event to the campaign named by campaign.id, then by the utm_campaign of sourceUrl, then by campaign.name. See its Storage notes for how the event then counts.
web | app | offline | crm | phone_call | system_generated | business_messagingWhere the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting. business_messaging (Meta) marks an event from a WhatsApp, Messenger or Instagram Direct conversation and needs messaging.
Meta only, read when actionSource is business_messaging (Conversions API for Business Messaging).
channelis sent as the event'smessaging_channel(instagram_directgoes out asinstagram).- Each id lands in Meta's
user_dataunhashed. An id that does not belong tochannelis ignored.
Meta accepts only its business messaging event names here: LeadSubmitted, QualifiedLead, Purchase, AddToCart, InitiateCheckout, ViewContent, OrderCreated, OrderShipped, OrderDelivered, OrderCanceled, OrderReturned, CartAbandoned, RatingProvided, ReviewProvided. eventName is forwarded unchanged.
Escape hatch for platform-specific fields we haven't normalized.
On Meta, keys are shallow-merged into custom_data only: fields
Zernio already builds (value, currency, contents,
num_items) always win on collision, and user_data (hashed
match keys) is never touched. Use first-class fields (e.g.
user.leadId) for anything that must reach user_data.
Headers
OptionalOptional client-generated unique key (e.g. a UUID) that makes retries safe.
- Same key + same body: replays the original response.
- Same key + different body: 422.
- Key still processing: 409.
A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.
On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.
Responses
Success· the request worked
Errors· the request failed
How it behaves
Forwarding
- Each destination receives the events exactly as
POST /v1/ads/conversionswould send them, so the per-platform notes there (hashing, batching,eventNamesemantics, dedup oneventId) apply here too. - A destination saved with
eventNamesonly receives events with those names. - One destination failing never blocks the others: each one reports its own result.
Storage
Zernio also stores each event for the profile's reporting.
- Email, phone and
externalIdare stored only as SHA-256 hashes. sourceUrlkeeps only its origin, path and attribution parameters (utm_*,gclid,fbclid,ttclid,li_fat_id,epik,rdt_cid,gbraid,wbraid).- Events sent with
testCodeare forwarded but not stored. - Sending an event again with the same
eventIdreplaces the stored one. - A stored
Purchase,LeadorQualifiedLeadtied to one of your campaigns (seecampaignon each event) counts inGET /v1/ads/campaign-resultsand in ad rules assalesandrevenue,leadsorqualified_leads.
Send conversion events to one destination (legacy)
Legacy: use [`POST /v1/events`](/conversions/send-events) instead. It sends each event once to every saved destination, retries failures, stores the event and reports what each platform answered. This endpoint keeps working and is not being removed. Sends conversion events, such as purchases or leads, from your server to one ad platform destination so it can attribute and optimize ads. Relays one or more events to the target ad platform's native Conversions API. The platform is inferred from the provided `accountId`. Requires the Ads add-on. ### Supported platforms - Meta (`metaads`) via Graph API - Google Ads (`googleads`) via Data Manager API `ingestEvents` - LinkedIn (`linkedinads`) via `/rest/conversionEvents` - TikTok (`tiktokads`) via the Offline Events API `/offline/batch/` (OFFLINE conversions only) - OpenAI Ads (`openaiads`) via its Conversions API (a separate host, `bzr.openai.com`) - Pinterest (`pinterestads`) via `POST /v5/ad_accounts/{id}/events` - Reddit (`redditads`) via the Reddit Conversions API (`POST /api/v3/pixels/{pixelId}/conversion_events`) ### `destinationId` per platform - Meta: pixel (dataset) ID, e.g. `123456789012345` - Google: conversion action resource name, e.g. `customers/1234567890/conversionActions/987654321` - LinkedIn: conversion rule ID or URN, e.g. `104012` or `urn:lla:llaPartnerConversion:104012` - TikTok: Offline Event Set ID, e.g. `7057103914977558530` - OpenAI Ads: pixel wire id (numeric `pixel_id`, distinct from the internal pixel id), as returned by `GET /v1/ads/conversions/destinations` - Pinterest: numeric ad account id, e.g. `549755885175` (Pinterest attributes to the ad account, not to a tag) - Reddit: pixel id, e.g. `a2_abc123`, as returned by `GET /v1/ads/conversions/destinations` (any other shape returns 400) Callers can list valid destinations via `GET /v1/ads/conversions/destinations`. ### Pinterest notes - Each event needs an `email`, or `ipAddress` plus `userAgent`. Others are listed in `failures` with code `INVALID_EVENT` and the rest are still sent. - `clickIds.epik` (the `_epik` cookie) is sent as `click_id`. - `actionSource` `web` stays `web`, offline sources become `offline`, and app events need `platformData.action_source` `app_android` or `app_ios`. - Pinterest answers per event, so one bad event does not fail its chunk (failures carry code `PINTEREST_EVENT_FAILED`). - `consent.adUserData: DENIED` sets `opt_out`. - The connected user needs a Business Access role on the ad account (403 otherwise). ### Reddit notes - Each event needs a match key: `clickIds.rdt_cid`, `clickIds.rdt_uuid`, `email`, `phone`, `externalId`, or `ipAddress` plus `userAgent`. - Reddit accepts events up to 7 days old. `eventTime` is unix SECONDS (a value more than an hour in the future is refused as milliseconds). - Events failing these checks are listed in `failures` with code `INVALID_EVENT` and the rest are still sent. - Email (lowercased, dots and `+tags` stripped from the local part), phone (E.164 with the leading `+`) and `externalId` are SHA-256 hashed. IP and user agent go plaintext. - `consent.adUserData: DENIED` sends no user fields. - `actionSource` maps to WEBSITE (`web`), APP (`app`) or OTHER, overridable with `platformData.action_source`. `platformData.order_id` is forwarded. - `testCode` is sent as Reddit's `test_id`. Reddit errors: - 403 `reconnect_required`: the connection was authorized without the `adsconversions` permission (reconnect via GET /v1/connect/redditads/ads). - 403 `insufficient_permissions`: the Reddit user has no role on the ad account that owns the pixel. - `REDDIT_REJECTED`: Reddit throttling and other rejections, reported per chunk in `failures`. ### TikTok notes This path sends OFFLINE conversions (in-store / CRM / call-center), not web-pixel events. Each event must carry an email or phone (TikTok requires at least one). The connected TikTok ads account must have granted the Offline Events permission; older grants must reconnect. ### OpenAI Ads notes Requires a tracking tag (pixel) to already exist on the account. Returns 422 with code `TRACKING_TAG_REQUIRED` if `POST /v1/accounts/{accountId}/tracking-tags` hasn't been called yet. ### Hashing All PII (email, phone, names, external IDs) is hashed with SHA-256 server-side per each platform's normalization spec, including Google's Gmail-specific dot/plus-suffix stripping. Send plaintext. LinkedIn `externalIds` are passed through as plaintext per LinkedIn's spec; only emails and phones are hashed. For LinkedIn, the connected account must have been authorized after the Conversions API rollout (the OAuth grant must include `rw_conversions`). Older accounts must reconnect. ### Batching Batching is handled automatically. Per-platform caps: - Meta: 1000 events per request; rejects the entire batch if any event is malformed. - Google: 2000. - LinkedIn: 5000, all-or-nothing per chunk. - OpenAI Ads: 1000 per request. Larger submissions are split into 1000-event chunks, each all-or-nothing (a malformed event fails every event in that chunk, not the whole request). - Reddit: works the same way as OpenAI Ads, in chunks of 1000. ### Dedup Pass a stable `eventId` on every event: - Meta and LinkedIn use it to dedupe against browser-side pixel/Insight Tag events. - Google maps it to `transactionId`. - Reddit receives it as `conversion_id`, its dedup key against Reddit Pixel events. ### `eventName` per platform - Meta: free-form. Standard names (Purchase, Lead, ...) match Meta's built-in events; custom strings are accepted. - Google: ignored. The conversion action's category determines the event type. Send the standard name closest to your action for documentation, but the platform will not branch on it. - LinkedIn: ignored. The conversion rule's `type` (LEAD, PURCHASE, etc.) is locked to the destination at rule-creation time. Send the standard name for documentation; LinkedIn does not branch on it. - OpenAI Ads: a fixed subset of standard names maps 1:1 onto OpenAI's own event-type enum: Purchase, Lead, AddToCart, ViewContent, InitiateCheckout, CompleteRegistration, Subscribe, StartTrial, Schedule. Any other standard name or custom string is sent as `type: custom` with the name preserved. - Pinterest: standard names map onto Pinterest's (see below). Any other string is sent as is, so it matches an advertiser defined event of that name. Pinterest name mapping: - Purchase = `checkout` - AddToCart = `add_to_cart` - InitiateCheckout = `initiate_checkout` - AddPaymentInfo = `add_payment_info` - Lead = `lead` - CompleteRegistration = `signup` - Subscribe = `subscribe` - ViewContent = `view_content` - Search = `search` - PageView = `page_visit`
List your result metrics
The metric keys your team has sent, with their label and kind, then the formulas: your own and the built-in ones (`cac_percent`, `cost_per_sale`, `cost_per_qualified_lead`, `lead_to_sale`, `qualified_rate`). A new key appears as a `count` labelled from the key; name it, or define a formula, with `PUT /v1/ads/campaign-results/metrics/{key}`.