{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/casaintelligence-com-au/json-schema/casaintelligence-com-au-website-event-request-schema.json",
  "title": "WebsiteEventRequest",
  "description": "A single funnel event from the public website (no API key).\n\nevent_type must be on the server-side allow-list (see\napp/api/v1/events.py WEBSITE_EVENT_CATEGORIES) — this is analytics\ningestion, not a general write endpoint. ga_client_id is the canonical\nfunnel join key (DATA-CLARITY-AUDIT.md §5); free_check_id links the event\nto its originating ci_free_checks row.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/casaintelligence-com-au-events-api-openapi.yml#/components/schemas/WebsiteEventRequest",
  "properties": {
    "event_type": {
      "type": "string",
      "maxLength": 64,
      "title": "Event Type"
    },
    "free_check_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Free Check Id"
    },
    "ga_client_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Ga Client Id"
    },
    "session_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Session Id"
    },
    "address": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "title": "Address"
    },
    "variant": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32
        },
        {
          "type": "null"
        }
      ],
      "title": "Variant"
    },
    "dev_type": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32
        },
        {
          "type": "null"
        }
      ],
      "title": "Dev Type"
    },
    "page": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "title": "Page"
    },
    "metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metadata",
      "description": "Extra event-specific data (size-capped server-side)"
    }
  },
  "type": "object",
  "required": [
    "event_type"
  ]
}