{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codeqr-io/json-schema/codeqr-io-analytics-top-links-schema.json",
  "title": "AnalyticsTopLinks",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codeqr-io-analytics-api-openapi.yml#/components/schemas/AnalyticsTopLinks",
  "type": "object",
  "properties": {
    "link": {
      "type": "string",
      "description": "The unique ID of the short link",
      "deprecated": true
    },
    "id": {
      "type": "string",
      "description": "The unique ID of the short link"
    },
    "domain": {
      "type": "string",
      "description": "The domain of the short link"
    },
    "key": {
      "type": "string",
      "description": "The key of the short link"
    },
    "shortLink": {
      "type": "string",
      "description": "The short link URL"
    },
    "url": {
      "type": "string",
      "description": "The destination URL of the short link"
    },
    "createdAt": {
      "type": "string",
      "description": "The creation timestamp of the short link"
    },
    "clicks": {
      "type": "number",
      "description": "The number of clicks from this link",
      "default": 0
    },
    "leads": {
      "type": "number",
      "description": "The number of leads from this link",
      "default": 0
    }
  },
  "required": [
    "link",
    "id",
    "domain",
    "key",
    "shortLink",
    "url",
    "createdAt",
    "clicks",
    "leads"
  ]
}