{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kawaa-com/json-schema/kawaa-com-activity-data-schema.json",
  "title": "ActivityData",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kawaa-com-activity-api-openapi.yml#/components/schemas/ActivityData",
  "type": "object",
  "properties": {
    "level": {
      "type": "string",
      "enum": [
        "active",
        "inactive",
        "dormant",
        "unknown"
      ],
      "description": "How recently this address was seen active. `inactive` sits between the active and dormant windows; `unknown` means there was nothing to judge from, not that the address is inactive."
    },
    "score": {
      "type": "number"
    },
    "last_activity_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "engagement": {
      "type": "object",
      "properties": {
        "open_count": {
          "type": "integer"
        },
        "click_count": {
          "type": "integer"
        },
        "reply_count": {
          "type": "integer",
          "description": "Counts replies recorded by Kawaa email warmup campaigns only. It is not a measurement of replies to your own mail, which Kawaa cannot see. Warmup is switched off, so no new replies are recorded, and new opens and clicks come only from your own tracking pixels and links."
        }
      },
      "required": [
        "open_count",
        "click_count",
        "reply_count"
      ]
    },
    "deliverability": {
      "type": "object",
      "properties": {
        "bounce_count": {
          "type": [
            "integer",
            "null"
          ]
        },
        "complaint_count": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "bounce_count",
        "complaint_count"
      ]
    },
    "confidence": {
      "type": "number",
      "description": "0 means your account has recorded no activity for this address, not that it is inactive."
    },
    "data_points": {
      "type": "integer"
    },
    "message": {
      "type": "string",
      "description": "Present only when no activity data is available for a single-address lookup."
    }
  },
  "required": [
    "level",
    "score",
    "last_activity_at",
    "engagement",
    "deliverability",
    "confidence",
    "data_points"
  ]
}