{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/json-schema/analytics-events-api-event-instance-schema.json",
  "title": "EventInstance",
  "description": "Represents a single event instance that occurred in the system",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the event instance",
      "example": "500123"
    },
    "eventType": {
      "type": "string",
      "description": "The type of event that occurred",
      "example": "standard"
    },
    "objectId": {
      "type": "string",
      "description": "The ID of the CRM object associated with this event",
      "example": "500123"
    },
    "objectType": {
      "type": "string",
      "description": "The type of CRM object (e.g., contact, company, deal)",
      "example": "standard"
    },
    "occurredAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp when the event occurred",
      "example": "2025-03-15T14:30:00Z"
    },
    "properties": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Additional properties associated with the event",
      "example": {
        "key": "value"
      }
    }
  },
  "required": [
    "id",
    "eventType",
    "occurredAt"
  ]
}