{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/gainsight/main/json-schema/gainsight-form-submit-events-page-schema.json",
  "title": "FormSubmitEventsPage",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gainsight-formsubmitevent-api-openapi.yml#/components/schemas/FormSubmitEventsPage",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "description": "Array of result records",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/FormSubmitEvent"
      }
    },
    "totalHits": {
      "type": "integer",
      "format": "int64",
      "description": "Total number of records matching filters",
      "readOnly": true
    },
    "scrollId": {
      "type": "string",
      "description": "If passed on subsequent requests as the scrollId parameter, will fetch the next page",
      "readOnly": true
    }
  },
  "$defs": {
    "FormSubmitEvent": {
      "type": "object",
      "required": [
        "identifyId",
        "propertyKey",
        "userType"
      ],
      "properties": {
        "eventId": {
          "type": "string"
        },
        "identifyId": {
          "type": "string"
        },
        "propertyKey": {
          "type": "string"
        },
        "date": {
          "type": "integer",
          "format": "int64"
        },
        "eventType": {
          "type": "string"
        },
        "sessionId": {
          "type": "string"
        },
        "userType": {
          "type": "string",
          "enum": [
            "LEAD",
            "USER",
            "VISITOR",
            "EMPTY_USER_TYPE"
          ]
        },
        "accountId": {
          "type": "string"
        },
        "globalContext": {
          "type": "object"
        },
        "scheme": {
          "type": "string"
        },
        "host": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "queryString": {
          "type": "string"
        },
        "hash": {
          "type": "string"
        },
        "queryParams": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "remoteHost": {
          "type": "string"
        },
        "referrer": {
          "type": "string"
        },
        "screenHeight": {
          "type": "integer",
          "format": "int32"
        },
        "screenWidth": {
          "type": "integer",
          "format": "int32"
        },
        "languages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "pageTitle": {
          "type": "string"
        },
        "formData": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "title": "FormSubmitEvent",
      "description": "Form Submit Event object"
    }
  }
}