{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudinary/json-schema/cloudinary-contract-list-collection-assets-response-schema.json",
  "title": "Contract.ListCollectionAssetsResponse",
  "description": "Response returned by the **List a collection's assets** endpoint. `data` and `total_count` are always present, so a collection with no assets returns `{\"data\": [], \"total_count\": 0}`. `next_cursor` follows the usual cursor convention and is omitted once there are no further pages.\n",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudinary-collections-openapi.yml#/components/schemas/Contract.ListCollectionAssetsResponse",
  "type": "object",
  "required": [
    "data",
    "total_count"
  ],
  "properties": {
    "data": {
      "type": "array",
      "description": "The page of assets.",
      "items": {
        "$ref": "#/$defs/Entity.CollectionAsset"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Opaque cursor for the next page. Omitted when there are no further pages."
    },
    "total_count": {
      "type": "integer",
      "description": "Total number of assets in the collection that the caller may view."
    }
  },
  "$defs": {
    "Entity.CollectionAsset": {
      "type": "object",
      "description": "An asset in a collection. Every field is always present in a response: an unset value (`display_name`, or `width` / `height` for assets without dimensions) is returned as `null` rather than being omitted, the same as on the public page entity.\n",
      "required": [
        "asset_id",
        "public_id",
        "display_name",
        "resource_type",
        "type",
        "format",
        "bytes",
        "width",
        "height",
        "secure_url",
        "created_at"
      ],
      "properties": {
        "asset_id": {
          "type": "string",
          "description": "The immutable ID of the asset. This is the value the **Add assets to a collection** and **Remove assets from a collection** endpoints accept.\n"
        },
        "public_id": {
          "type": "string",
          "description": "The public ID of the asset."
        },
        "display_name": {
          "type": [
            "string",
            "null"
          ],
          "description": "The asset's display name, or null when it has none."
        },
        "resource_type": {
          "type": "string",
          "description": "The resource type of the asset (`image`, `video`, or `raw`)."
        },
        "type": {
          "type": "string",
          "description": "The delivery type of the asset, e.g. `upload`, `private`, or `authenticated`."
        },
        "format": {
          "type": "string",
          "description": "The asset's file format. Empty for raw assets without an extension."
        },
        "bytes": {
          "type": "integer",
          "format": "int64",
          "description": "The asset's size in bytes."
        },
        "width": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Width in pixels, or null for assets without dimensions (e.g. raw files)."
        },
        "height": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Height in pixels, or null for assets without dimensions (e.g. raw files)."
        },
        "secure_url": {
          "type": "string",
          "description": "The HTTPS delivery URL of the asset."
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "description": "When the asset was created."
        }
      }
    }
  }
}