{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/customer-io/json-schema/customer-io-link-metrics-schema.json",
  "title": "linkMetrics",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/customer-io-broadcasts-api-openapi.yml#/components/schemas/linkMetrics",
  "x-scalar-ignore": true,
  "type": "object",
  "properties": {
    "link": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "The ID of the link."
        },
        "href": {
          "type": "string",
          "description": "The link destination—a URL, mailto, etc."
        }
      }
    },
    "metric": {
      "type": "object",
      "description": "Contains metrics for the link.",
      "properties": {
        "series": {
          "type": "object",
          "properties": {
            "clicked": {
              "type": "array",
              "description": "An array of results from oldest to newest, where each result indicates a period.",
              "items": {
                "type": "integer"
              }
            },
            "human_clicked": {
              "type": "array",
              "description": "An array of human click counts (clicks excluding machine clicks) from oldest to newest, where each result indicates a period. This metric is reliable starting April 20, 2025. [Learn more](/messaging/metrics/analytics/#delivery-metrics).",
              "items": {
                "type": "integer"
              }
            },
            "machine_clicked": {
              "type": "array",
              "description": "An array of machine click counts (clicks attributed to bots or prefetching) from oldest to newest, where each result indicates a period. This metric is reliable starting April 20, 2025. [Learn more](/messaging/metrics/analytics/#delivery-metrics).",
              "items": {
                "type": "integer"
              }
            }
          }
        }
      }
    }
  }
}