Zernio · Schema

ConversionEvent

A single conversion event to relay to the ad platform. All PII fields (email, phone, names) are hashed with SHA-256 server-side using each platform's normalization rules before they leave Zernio. Callers send plaintext.

Marketing InfrastructureSocial Media APIAdvertising APICommunication APICreator ToolsAgent Platforms

Properties

Name Type Description
eventName string Standard event name (Purchase, Lead, CompleteRegistration, AddToCart, InitiateCheckout, AddPaymentInfo, Subscribe, StartTrial, ViewContent, Search, Contact, SubmitApplication, Schedule) or a custom st
eventTime integer When the conversion happened, in unix seconds.
eventId string 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
value number Conversion value in the specified currency.
currency string ISO 4217 currency code.
user object User identity fields. More signals mean higher match rates.
items array Item-level detail for ecommerce events.
sourceUrl string URL where the conversion originated (used by Meta).
campaign object 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 `cam
consent object This event's consent. Each signal given here wins over the request's `consent`.
actionSource string Where 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 object Meta only, read when `actionSource` is `business_messaging` (Conversions API for Business Messaging). - `channel` is sent as the event's `messaging_channel` (`instagram_direct` goes out as `instagram`
platformData object 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`) a
View JSON Schema on GitHub

JSON Schema

zernio-com-conversion-event-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zernio-com/json-schema/zernio-com-conversion-event-schema.json",
  "title": "ConversionEvent",
  "description": "A single conversion event to relay to the ad platform. All PII fields\n(email, phone, names) are hashed with SHA-256 server-side using each\nplatform's normalization rules before they leave Zernio. Callers send\nplaintext.\n",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zernio-com-openapi.json#/components/schemas/ConversionEvent",
  "type": "object",
  "required": [
    "eventName",
    "eventTime",
    "eventId",
    "user"
  ],
  "properties": {
    "eventName": {
      "type": "string",
      "description": "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.\n\nPer-platform behavior:\n\n- Meta: free-form; standard names match Meta's built-ins.\n- Google: ignored. The conversion action's category determines the type.\n- LinkedIn: ignored. The conversion rule's `type` is locked to the destination.\n- 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.\n- 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.\n"
    },
    "eventTime": {
      "type": "integer",
      "description": "When the conversion happened, in unix seconds."
    },
    "eventId": {
      "type": "string",
      "description": "Unique dedup key. Use the same eventId on pixel + CAPI to prevent double-counting. Mapped to:\n\n- Meta: event_id.\n- Google: transactionId.\n- LinkedIn: eventId. LinkedIn deduplicates against Insight Tag events with the same eventId; the Insight Tag event wins when both arrive.\n- Reddit: `metadata.conversion_id` (Reddit's dedup key against Reddit Pixel events).\n"
    },
    "value": {
      "type": "number",
      "description": "Conversion value in the specified currency."
    },
    "currency": {
      "type": "string",
      "description": "ISO 4217 currency code."
    },
    "user": {
      "type": "object",
      "description": "User identity fields. More signals mean higher match rates.",
      "properties": {
        "email": {
          "type": "string",
          "description": "Plaintext email. Hashed server-side."
        },
        "phone": {
          "type": "string",
          "description": "Phone number, ideally E.164. Hashed server-side."
        },
        "firstName": {
          "type": "string",
          "description": "Plaintext first name. Hashed server-side."
        },
        "lastName": {
          "type": "string",
          "description": "Plaintext last name. Hashed server-side."
        },
        "externalId": {
          "type": "string",
          "description": "Stable customer identifier (e.g. CRM user ID). Hashed\nserver-side for Meta and Google. Sent as plaintext to LinkedIn\n(LinkedIn's Conversions API spec requires the raw value).\nMaximum effective list size on LinkedIn is 1.\n"
        },
        "ipAddress": {
          "type": "string",
          "description": "Client IP address. Sent plaintext (Meta, Pinterest, Reddit, OpenAI, Google Ads)."
        },
        "userAgent": {
          "type": "string",
          "description": "Client user-agent string. Sent plaintext (Meta, Pinterest, Reddit, OpenAI, Google Ads)."
        },
        "country": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 country code, e.g. 'us'."
        },
        "city": {
          "type": "string",
          "description": "Meta advanced matching (ct). Plaintext city; normalized + SHA-256 hashed server-side. Meta only."
        },
        "state": {
          "type": "string",
          "description": "Meta advanced matching (st). 2-letter ANSI for US; hashed server-side. Meta only."
        },
        "zip": {
          "type": "string",
          "description": "Postal code. Meta advanced matching (zp; US uses first 5 digits; hashed server-side). Google Ads sends it plain in an address identifier with firstName, lastName and country, only when all four are present."
        },
        "dob": {
          "type": "string",
          "description": "Meta advanced matching (db). YYYYMMDD; hashed server-side. Meta only."
        },
        "gender": {
          "type": "string",
          "description": "Meta advanced matching (ge). 'f' or 'm'; hashed server-side. Meta only."
        },
        "leadId": {
          "type": "string",
          "description": "Meta lead ID from a Lead Ad submission, as a string. Required\nfor Conversion Leads CRM events: send it with\n`actionSource: 'crm'` and\n`platformData: { event_source: 'crm', lead_event_source: '<CRM name>' }`.\nForwarded unhashed to Meta's `user_data.lead_id`. Meta only.\n"
        },
        "visitorId": {
          "type": "string",
          "maxLength": 64,
          "description": "The Zernio tag's visitor id, from the `_zid` cookie the tag sets on your site. Zernio adds the click ids\nand browser ids of that visit that the event lacks, before storing and forwarding it.\n\nWithout it, Zernio finds the visit by the `email`, `phone` or `externalId` the tag saw. Ids you send\nalways win. Never sent to a platform. Read only by `POST /v1/events`, for a profile with a tracking site.\n"
        },
        "clickIds": {
          "type": "object",
          "description": "Platform click identifiers captured from the originating ad click.",
          "properties": {
            "fbc": {
              "type": "string",
              "description": "Meta click ID (from fbclid URL param)."
            },
            "fbp": {
              "type": "string",
              "description": "Meta browser ID (_fbp cookie)."
            },
            "gclid": {
              "type": "string",
              "description": "Google click ID (from gclid URL param)."
            },
            "gbraid": {
              "type": "string",
              "description": "Google iOS 14.5+ app attribution ID."
            },
            "wbraid": {
              "type": "string",
              "description": "Google iOS 14.5+ web-to-app attribution ID."
            },
            "li_fat_id": {
              "type": "string",
              "description": "LinkedIn first-party ad tracking click ID. Captured by\nparsing `li_fat_id` from landing-page URLs after the\nadvertiser enables enhanced conversion tracking on the\nLinkedIn Insight Tag. Sent to LinkedIn as the\nLINKEDIN_FIRST_PARTY_ADS_TRACKING_UUID userId. Opaque\ntoken, not hashed.\n"
            },
            "ttclid": {
              "type": "string",
              "description": "TikTok click ID (the `ttclid` URL param TikTok adds to ad clicks). Sent to TikTok pixel destinations as `user.ttclid`, not hashed."
            },
            "ttp": {
              "type": "string",
              "description": "TikTok Pixel browser id (the `_ttp` cookie). Sent to TikTok pixel destinations as `user.ttp`, not hashed. Offline Event Sets match on email and phone only."
            },
            "epik": {
              "type": "string",
              "description": "Pinterest click ID (the `epik` URL param or `_epik` cookie). Sent to Pinterest as `click_id`, not hashed."
            },
            "rdt_cid": {
              "type": "string",
              "description": "Reddit click ID (the `rdt_cid` URL param Reddit adds to ad clicks). Sent to Reddit as `click_id`, not hashed."
            },
            "rdt_uuid": {
              "type": "string",
              "description": "Reddit Pixel browser id (the `_rdt_uuid` first-party cookie). Sent to Reddit as `user.uuid`, not hashed."
            },
            "aleid": {
              "type": "string",
              "description": "Axon (AppLovin) click id (the `aleid` URL param Axon adds to ad clicks, kept by its pixel in the `_axeid` cookie). Sent to Axon as `user_data.aleid`, not hashed."
            },
            "alart": {
              "type": "string",
              "description": "Axon (AppLovin) attribution token (the `alart` URL param, `_axart` cookie). Sent to Axon as `user_data.alart`, not hashed."
            },
            "axwrt": {
              "type": "string",
              "description": "Axon Pixel browser id (the `_axwrt` cookie). Sent to Axon as `user_data.axwrt`, not hashed."
            },
            "twclid": {
              "type": "string",
              "description": "X click ID (the `twclid` URL param X adds to ad clicks). Sent to X as a `twclid` identifier, not hashed."
            },
            "msclkid": {
              "type": "string",
              "description": "Microsoft Advertising click ID (the `msclkid` URL param Microsoft adds to ad clicks). Sent to Microsoft as `MicrosoftClickId` (offline goals) or `userData.msclkid` (UET tags), not hashed."
            },
            "sccid": {
              "type": "string",
              "description": "Snapchat click ID (the `ScCid` URL param Snap adds to ad clicks). Sent to Snapchat as `sc_click_id`, not hashed."
            },
            "scid": {
              "type": "string",
              "description": "Snap Pixel browser id (the `_scid` cookie). Sent to Snapchat as `sc_cookie1`, not hashed."
            },
            "tblci": {
              "type": "string",
              "description": "Taboola click ID (the `tblci` URL param Taboola adds to ad clicks with its `{click_id}` macro). Sent to Taboola as `click-id`, not hashed."
            },
            "ob_click_id": {
              "type": "string",
              "description": "Outbrain click ID (the `ob_click_id` URL param, filled by the `{{ob_click_id}}` macro you add to the campaign's Track box). Sent to Outbrain as `ob_click_id`, not hashed."
            },
            "irclickid": {
              "type": "string",
              "description": "Impact partner click id (the `irclickid` URL param Impact adds to partner links). Sent to Impact as `ClickId`."
            },
            "awc": {
              "type": "string",
              "description": "Awin click id (the `awc` URL param Awin adds to publisher links). Sent to Awin as the order's `awc`."
            },
            "dclid": {
              "type": "string",
              "description": "Campaign Manager 360 / Display & Video 360 click ID (the `dclid` URL param). Sent to Floodlight as is."
            },
            "tdid": {
              "type": "string",
              "description": "The Trade Desk browser id (TDID) from a TTD cookie sync. Sent to The Trade Desk as `adid` of type `TDID`."
            },
            "uid2": {
              "type": "string",
              "description": "A raw UID2 for the person, from your UID2 integration. Sent to The Trade Desk as `adid` of type `UID2`."
            },
            "uid2Token": {
              "type": "string",
              "description": "A UID2 token (encrypted, from the UID2 SDK on your site). Sent to The Trade Desk as `uid2_token`."
            }
          }
        }
      }
    },
    "items": {
      "type": "array",
      "description": "Item-level detail for ecommerce events.",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "quantity": {
            "type": "integer"
          },
          "category": {
            "type": "string"
          }
        }
      }
    },
    "sourceUrl": {
      "type": "string",
      "format": "uri",
      "description": "URL where the conversion originated (used by Meta)."
    },
    "campaign": {
      "type": "object",
      "additionalProperties": false,
      "description": "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.",
      "properties": {
        "id": {
          "type": "string",
          "maxLength": 64,
          "description": "Platform campaign ID."
        },
        "name": {
          "type": "string",
          "maxLength": 300,
          "description": "Campaign name as it appears on the ad platform (case-insensitive)."
        }
      }
    },
    "consent": {
      "allOf": [
        {
          "$ref": "#/$defs/EventConsent"
        }
      ],
      "description": "This event's consent. Each signal given here wins over the request's `consent`."
    },
    "actionSource": {
      "type": "string",
      "enum": [
        "web",
        "app",
        "offline",
        "crm",
        "phone_call",
        "system_generated",
        "business_messaging"
      ],
      "description": "Where 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`."
    },
    "messaging": {
      "type": "object",
      "description": "Meta only, read when `actionSource` is `business_messaging` (Conversions API for Business Messaging).\n\n- `channel` is sent as the event's `messaging_channel` (`instagram_direct` goes out as `instagram`).\n- Each id lands in Meta's `user_data` unhashed. An id that does not belong to `channel` is ignored.\n\nMeta 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.\n",
      "required": [
        "channel"
      ],
      "properties": {
        "channel": {
          "type": "string",
          "enum": [
            "whatsapp",
            "messenger",
            "instagram_direct"
          ]
        },
        "wabaId": {
          "type": "string",
          "description": "WhatsApp only. WhatsApp Business Account id, sent as `whatsapp_business_account_id`."
        },
        "ctwaClid": {
          "type": "string",
          "description": "WhatsApp only. Click-to-WhatsApp click id from the first inbound message referral, sent as `ctwa_clid`."
        },
        "pageId": {
          "type": "string",
          "description": "WhatsApp: sent as `page_id` next to `whatsapp_business_account_id` only when `ctwaClid` is absent, which Meta then needs together with at least one hashed identifier in `user`.\n\nMessenger: Facebook Page id, sent as `page_id`. Instagram Direct: when `instagramBusinessAccountId` is absent, Zernio reads the Instagram professional account linked to this Page and sends its id as `ig_account_id`; if none is linked or the lookup fails, `page_id` is sent instead.\n"
        },
        "instagramBusinessAccountId": {
          "type": "string",
          "description": "Instagram Direct only. Instagram professional account id (`instagram_business_account` on the Page), sent as `ig_account_id` next to `ig_sid`."
        },
        "pageScopedUserId": {
          "type": "string",
          "description": "Messenger only. The page-scoped user id (PSID) your Messenger webhook gives for the person, sent as `page_scoped_user_id` next to `page_id`."
        },
        "instagramScopedUserId": {
          "type": "string",
          "description": "Instagram Direct only. The Instagram-scoped user id (IGSID) your Instagram messaging webhook gives for the person, sent as `ig_sid`."
        }
      }
    },
    "platformData": {
      "type": "object",
      "additionalProperties": true,
      "description": "Escape hatch for platform-specific fields we haven't normalized.\nOn Meta, keys are shallow-merged into `custom_data` only: fields\nZernio already builds (`value`, `currency`, `contents`,\n`num_items`) always win on collision, and `user_data` (hashed\nmatch keys) is never touched. Use first-class fields (e.g.\n`user.leadId`) for anything that must reach `user_data`.\n"
    }
  },
  "$defs": {
    "EventConsent": {
      "type": "object",
      "description": "Google Consent Mode's four signals as the visitor gave them. Leave a signal out when the visitor was never asked or never answered.\n\nFor a visitor in the EEA, the UK or Switzerland (from `user.country`), a signal left out counts as `DENIED`. See \"Consent\" on `POST /v1/events`.\n",
      "properties": {
        "adStorage": {
          "type": "string",
          "enum": [
            "GRANTED",
            "DENIED"
          ],
          "description": "Ad cookies and click ids (`ad_storage`)."
        },
        "adUserData": {
          "type": "string",
          "enum": [
            "GRANTED",
            "DENIED"
          ],
          "description": "Sending personal data to ad platforms (`ad_user_data`)."
        },
        "adPersonalization": {
          "type": "string",
          "enum": [
            "GRANTED",
            "DENIED"
          ],
          "description": "Personalized advertising and remarketing (`ad_personalization`)."
        },
        "analyticsStorage": {
          "type": "string",
          "enum": [
            "GRANTED",
            "DENIED"
          ],
          "description": "Analytics cookies (`analytics_storage`): Google Analytics only."
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/zernio-com-conversion-event"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.