{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudinary/json-schema/cloudinary-upload-response-schema.json",
  "title": "upload_response",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudinary-platform-openapi.yml#/components/schemas/upload_response",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "The URL of the uploaded file."
    },
    "secure_url": {
      "type": "string",
      "format": "uri",
      "description": "The secure URL of the uploaded file."
    },
    "public_id": {
      "type": "string",
      "description": "The public ID of the uploaded file."
    },
    "version": {
      "type": "integer",
      "description": "The version of the uploaded file."
    },
    "version_id": {
      "$ref": "#/$defs/version_id"
    },
    "signature": {
      "type": "string",
      "description": "The signature of the uploaded file."
    },
    "width": {
      "type": "integer",
      "description": "The width of the uploaded file."
    },
    "height": {
      "type": "integer",
      "description": "The height of the uploaded file."
    },
    "asset_id": {
      "$ref": "#/$defs/asset_id"
    },
    "format": {
      "type": "string",
      "description": "The format of the uploaded file."
    },
    "resource_type": {
      "type": "string",
      "description": "The type of resource that was uploaded."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the file was uploaded."
    },
    "tags": {
      "$ref": "#/$defs/tags_response",
      "description": "The tags of the uploaded file."
    },
    "context": {
      "$ref": "#/$defs/context_full_response"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true,
      "description": "Structured metadata associated with the uploaded file."
    },
    "pages": {
      "type": "integer",
      "description": "The number of pages in the uploaded file."
    },
    "bytes": {
      "type": "integer",
      "description": "The size of the uploaded file in bytes."
    },
    "type": {
      "type": "string",
      "description": "The type of the uploaded file."
    },
    "etag": {
      "type": "string",
      "description": "The ETag of the uploaded file."
    },
    "placeholder": {
      "type": "boolean",
      "description": "Whether the uploaded file is a placeholder."
    },
    "original_filename": {
      "type": "string",
      "description": "The original filename of the uploaded file."
    },
    "image_metadata": {
      "type": "object",
      "description": "The image metadata of the uploaded file."
    },
    "illustration_score": {
      "type": "number",
      "description": "The illustration score of the uploaded file."
    },
    "semi_transparent": {
      "type": "boolean",
      "description": "Whether the uploaded file is semi-transparent."
    },
    "grayscale": {
      "type": "boolean",
      "description": "Whether the uploaded file is grayscale."
    },
    "faces": {
      "$ref": "#/$defs/faces_response"
    },
    "coordinates": {
      "$ref": "#/$defs/coordinates_response"
    },
    "eager": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "transformation": {
            "type": "string"
          },
          "width": {
            "type": "integer"
          },
          "height": {
            "type": "integer"
          },
          "bytes": {
            "type": "integer"
          },
          "format": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "secure_url": {
            "type": "string"
          }
        }
      }
    },
    "asset_folder": {
      "type": [
        "string",
        "null"
      ],
      "description": "The asset folder where the file is stored."
    },
    "display_name": {
      "type": "string",
      "description": "The display name of the uploaded file."
    },
    "api_key": {
      "type": "string",
      "description": "The API key used to upload the file."
    }
  },
  "$defs": {
    "asset_id": {
      "type": "string",
      "pattern": "^[0-9a-f]{32}$",
      "description": "A 32-character hexadecimal asset ID."
    },
    "context_full_response": {
      "type": [
        "object",
        "null"
      ],
      "description": "Contextual metadata grouped by kind. Custom user context appears under the 'custom' key. Other context kinds may also appear as additional keys.",
      "properties": {
        "custom": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "User-defined contextual metadata as key-value pairs."
        }
      },
      "additionalProperties": {
        "type": "object",
        "additionalProperties": {
          "type": "string"
        }
      }
    },
    "coordinates_response": {
      "type": [
        "object",
        "null"
      ],
      "description": "Coordinate data for faces and custom regions.",
      "properties": {
        "faces": {
          "type": "array",
          "description": "Detected face coordinate rectangles [x, y, width, height].",
          "items": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          }
        },
        "custom": {
          "type": "array",
          "description": "Custom coordinate rectangles [x, y, width, height].",
          "items": {
            "type": "array",
            "items": {
              "type": "number"
            }
          }
        }
      }
    },
    "faces_response": {
      "type": [
        "array",
        "null"
      ],
      "description": "Detected face coordinate rectangles [x, y, width, height].",
      "items": {
        "type": "array",
        "items": {
          "type": "integer"
        }
      }
    },
    "tags_response": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "Tag names assigned to the asset."
    },
    "version_id": {
      "type": "string",
      "pattern": "^([0-9a-f]{32})+$",
      "description": "Hexadecimal version ID; length is a positive multiple of 32 (typically 32 or 64)."
    }
  }
}