{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aurinko/json-schema/aurinko-email-tracking-event-schema.json",
  "title": "EmailTrackingEvent",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aurinko-emailtracking-api-openapi.yml#/components/schemas/EmailTrackingEvent",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "eventType": {
      "type": "string",
      "enum": [
        "open",
        "click",
        "initial",
        "reply",
        "replyBounce"
      ]
    },
    "location": {
      "type": "string"
    },
    "userAgent": {
      "type": "string"
    },
    "referrer": {
      "type": "string"
    },
    "remoteAddr": {
      "type": "string"
    },
    "threadId": {
      "type": "string"
    },
    "messageId": {
      "type": "string"
    },
    "internetMessageId": {
      "type": "string"
    },
    "trackingId": {
      "type": "integer",
      "format": "int64"
    },
    "trackingThreadId": {
      "type": "string",
      "description": "Thread id where tracking begins"
    },
    "trackingMessageId": {
      "type": "string",
      "description": "Message id where tracking begins"
    },
    "trackingInternetMessageId": {
      "type": "string",
      "description": "Rfc822 message id where tracking begins"
    },
    "context": {
      "type": "string"
    },
    "trackingCode": {
      "type": "string"
    }
  }
}