get-asset
Retrieve detailed information about a specific file (asset) in Cloudinary, including metadata, tags, and contextual data, by specifying its asset ID, public ID, and resource type.
Instructions
Get the details of a specific file (asset)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
assetId | No | The Cloudinary asset ID | |
context | No | Whether to include contextual metadata. Default: false | |
metadata | No | Whether to include structured metadata. Default: false | |
publicId | No | The public ID of the asset | |
resourceType | No | Type of asset. Default: image | |
tags | No | Whether to include the list of tag names. Default: false | |
type | No | Delivery type. Default: upload |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"assetId": {
"description": "The Cloudinary asset ID",
"type": "string"
},
"context": {
"description": "Whether to include contextual metadata. Default: false",
"type": "boolean"
},
"metadata": {
"description": "Whether to include structured metadata. Default: false",
"type": "boolean"
},
"publicId": {
"description": "The public ID of the asset",
"type": "string"
},
"resourceType": {
"description": "Type of asset. Default: image",
"enum": [
"image",
"raw",
"video"
],
"type": "string"
},
"tags": {
"description": "Whether to include the list of tag names. Default: false",
"type": "boolean"
},
"type": {
"description": "Delivery type. Default: upload",
"enum": [
"upload",
"private",
"authenticated",
"fetch",
"facebook",
"twitter",
"gravatar",
"youtube",
"hulu",
"vimeo",
"animoto",
"worldstarhiphop",
"dailymotion",
"list"
],
"type": "string"
}
},
"type": "object"
}