{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canva/json-schema/canva-get-design-analytics-links-response-schema.json",
  "title": "GetDesignAnalyticsLinksResponse",
  "description": "Successful response from a `getDesignAnalyticsLinks` request.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canva-analytics-api-openapi.yml#/components/schemas/GetDesignAnalyticsLinksResponse",
  "properties": {
    "items": {
      "description": "The list of trackable links.",
      "items": {
        "$ref": "#/$defs/TrackableLink"
      },
      "type": "array"
    },
    "continuation": {
      "description": "If the success response contains a continuation token, there are more links you can list. You can use this token as a query parameter and retrieve more links from the list, for example `/v1/designs/{designId}/analytics/links?continuation={continuation}`.\n\nTo retrieve all links, you might need to make multiple requests.",
      "type": "string"
    }
  },
  "required": [
    "items"
  ],
  "type": "object",
  "$defs": {
    "TrackableLink": {
      "description": "Metrics for a trackable link.",
      "properties": {
        "link_id": {
          "description": "The ID of the trackable link.",
          "type": "string"
        },
        "name": {
          "description": "The user-visible name of the trackable link.",
          "type": "string"
        },
        "total_view_count": {
          "description": "The total number of views for this link.",
          "format": "int64",
          "type": "integer"
        },
        "unique_view_count": {
          "description": "The number of unique viewers for this link.",
          "format": "int64",
          "type": "integer"
        },
        "total_view_duration_seconds": {
          "description": "The total time this link has been viewed, in seconds.",
          "format": "int64",
          "type": "integer"
        },
        "average_view_duration_seconds": {
          "description": "The average time this link has been viewed, in seconds.",
          "format": "int64",
          "type": "integer"
        },
        "last_viewed_at": {
          "description": "When this link was most recently viewed, as a Unix timestamp (in seconds since the Unix Epoch).",
          "format": "int64",
          "type": "integer"
        }
      },
      "required": [
        "link_id"
      ],
      "type": "object"
    }
  }
}