{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/quanti-io/json-schema/quanti-io-post-pixel-id-events-request-schema.json",
  "title": "PostPixelIdEventsRequest",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/quanti-io-openapi-generated.yml#/components/schemas/PostPixelIdEventsRequest",
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string",
      "description": "Unique event identifier (primary key). Used as the deduplication key with the client-side Pixel event — send the same value on both sides."
    },
    "event_time": {
      "type": "string",
      "description": "UTC timestamp of the event, sent to Meta as a Unix epoch. Must be within 7 days of the upload time."
    },
    "action_source": {
      "type": "string",
      "description": "Origin of the event: website, app, physical_store, phone_call, chat, email, system_generated or other. Defaults to website when the column is empty."
    },
    "event_source_url": {
      "type": "string",
      "description": "URL of the page where the event occurred. Improves matching quality when action_source is website."
    },
    "email": {
      "type": "string",
      "description": "User email. QUANTI normalizes it (lowercase, all whitespace removed) then hashes it with SHA-256."
    },
    "phone": {
      "type": "string",
      "description": "User phone. QUANTI normalizes it to E.164 (default region FR) then hashes it with SHA-256."
    },
    "first_name": {
      "type": "string",
      "description": "User first name. Lowercased (accents kept) and hashed with SHA-256."
    },
    "last_name": {
      "type": "string",
      "description": "User last name. Lowercased (accents kept) and hashed with SHA-256."
    },
    "city": {
      "type": "string",
      "description": "User city. Meta expects it without spaces or punctuation; QUANTI lowercases and hashes it, but does not remove spaces."
    },
    "state": {
      "type": "string",
      "description": "Two-letter state or region code. Lowercased and hashed."
    },
    "postal_code": {
      "type": "string",
      "description": "Postal code — first 5 digits only for the US. Hashed, case preserved."
    },
    "country_code": {
      "type": "string",
      "description": "Two-letter ISO 3166-1 country code. Lowercased and hashed."
    },
    "date_of_birth": {
      "type": "string",
      "description": "Date of birth in YYYYMMDD format. Hashed."
    },
    "gender": {
      "type": "string",
      "description": "Single letter: f or m. Hashed."
    },
    "external_id": {
      "type": "string",
      "description": "Your own stable user identifier (CRM ID, customer number…). Hashed."
    },
    "client_ip_address": {
      "type": "string",
      "description": "IP address of the browser that triggered the event. Sent unhashed."
    },
    "client_user_agent": {
      "type": "string",
      "description": "User agent of the browser that triggered the event. Sent unhashed."
    },
    "fbc": {
      "type": "string",
      "description": "Facebook click identifier captured at landing time (cookie _fbc)."
    },
    "fbp": {
      "type": "string",
      "description": "Facebook browser identifier (cookie _fbp)."
    }
  },
  "required": [
    "event_id",
    "event_time",
    "action_source"
  ]
}