{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/metricool/json-schema/metricool-json-ok-list-response-affiliate-link-dto-schema.json",
  "title": "JsonOkListResponseAffiliateLinkDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/metricool-affiliations-api-openapi.yml#/components/schemas/JsonOkListResponseAffiliateLinkDto",
  "type": "object",
  "properties": {
    "metadata": {
      "type": "object"
    },
    "page": {
      "$ref": "#/$defs/JsonPaging"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AffiliateLinkDto"
      }
    }
  },
  "$defs": {
    "AffiliateLinkDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Unique identifier of the link",
          "format": "int64"
        },
        "name": {
          "type": "string",
          "description": "Display name of the link"
        },
        "slug": {
          "type": "string",
          "description": "Slug used to build the public short link"
        },
        "landingPath": {
          "type": "string",
          "description": "Landing path on metricool.com the link points to"
        },
        "createdAt": {
          "$ref": "#/$defs/DateTimeInfo"
        },
        "deleted": {
          "type": "boolean",
          "description": "Whether the link has been deleted (kept for statistics)"
        }
      },
      "description": "Affiliate link information"
    },
    "DateTimeInfo": {
      "required": [
        "dateTime"
      ],
      "type": "object",
      "properties": {
        "dateTime": {
          "type": "string",
          "description": "Local Date-time represented with a certain timezone "
        },
        "timezone": {
          "type": "string",
          "description": "Timezone applied to the datetime"
        }
      }
    },
    "JsonPaging": {
      "type": "object",
      "properties": {
        "next": {
          "type": "string"
        }
      }
    }
  }
}