{"openapi":"3.1.0","info":{"title":"Cloudinary API Proxy","version":"2.2605.113"},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"parameters":{"XCldCloudName":{"name":"X-Cld-Cloud-Name","in":"header","required":false,"schema":{"type":"string"},"description":"Target Cloudinary cloud name. Required when using an account-level token that is not scoped to a cloud. This header, the request subdomain, and the token's own cloud must match wherever more than one is present — no source overrides another, and any disagreement is rejected with 400."}},"schemas":{"AutocompleteAsset":{"type":"object","properties":{"_full_props":{"type":"object","properties":{"external_id":{"type":"string"},"resource_id":{"type":"string"},"public_id":{"type":"string"},"folder":{"type":"string"},"folder_id":{"type":"string"},"filename":{"type":"string"},"format":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"resource_type":{"type":"string"},"resource_subtype":{"type":["string","null"]},"status":{"type":"string"},"substatus":{"type":["string","null"]},"access_mode":{"type":"string"},"created_at":{"type":"string"},"uploaded_at":{"type":"string"},"bytes":{"type":"number"},"backup":{"type":"boolean"},"backup_bytes":{"type":"number"},"created_by":{"type":"object","properties":{"access_key":{"type":"string"},"custom_id":{"type":"string"},"external_id":{"type":"string"}},"required":["access_key","custom_id","external_id"]},"uploaded_by":{"type":"object","properties":{"access_key":{"type":"string"},"custom_id":{"type":"string"},"external_id":{"type":"string"}},"required":["access_key","custom_id","external_id"]},"width":{"type":"number"},"height":{"type":"number"},"url":{"type":"string"},"secure_url":{"type":"string"},"thumbnail_url":{"type":"string"},"duration":{"type":["number","null"]},"context":{"type":"array","items":{}},"metadata":{"type":"object","additionalProperties":{}},"tags":{"type":"array","items":{"type":"string"}},"animated":{"type":"boolean"},"access_control":{},"edited_by_dam":{"type":"boolean"},"related_assets_count":{"type":"number"},"related_assets":{},"derivatives":{}},"required":["external_id","resource_id","public_id","folder","folder_id","filename","format","version","type","resource_type","resource_subtype","status","substatus","access_mode","created_at","uploaded_at","bytes","backup","backup_bytes","created_by","uploaded_by","width","height","url","secure_url","thumbnail_url","duration","context","metadata","tags","animated","edited_by_dam","related_assets_count"]},"external_id":{"type":"string"},"resource_id":{"type":"string"},"public_id":{"type":"string"},"folder_id":{"type":"string"},"filename":{"type":"string"},"format":{"type":"string"},"version":{"type":"number"},"type":{"type":"string"},"resource_type":{"type":"string"},"resource_subtype":{"type":["string","null"]},"status":{"type":"string"},"substatus":{"type":["string","null"]},"access_mode":{"type":"string"},"created_at":{"type":"string"},"uploaded_at":{"type":"string"},"bytes":{"type":"number"},"backup":{"type":"boolean"},"backup_bytes":{"type":"number"},"created_by":{"type":"object","properties":{"access_key":{"type":"string"},"custom_id":{"type":"string"},"external_id":{"type":"string"}},"required":["access_key","custom_id","external_id"]},"uploaded_by":{"type":"object","properties":{"access_key":{"type":"string"},"custom_id":{"type":"string"},"external_id":{"type":"string"}},"required":["access_key","custom_id","external_id"]},"width":{"type":"number"},"height":{"type":"number"},"url":{"type":"string"},"secure_url":{"type":"string"},"thumbnail_url":{"type":"string"},"duration":{"type":["number","null"]},"context":{"type":"array","items":{}},"metadata":{"type":"object","additionalProperties":{}},"tags":{"type":"array","items":{"type":"string"}},"animated":{"type":"boolean"},"access_control":{},"edited_by_dam":{"type":"boolean"},"related_assets_count":{"type":"number"},"related_assets":{},"derivatives":{},"customer":{"type":"object","properties":{"customer":{"type":"object","properties":{"account_id":{"type":"number"},"account_status":{"type":"number"},"addon_callback_url":{"type":["string","null"]},"addon_metadata":{},"allowed_admin_api_ips":{"type":"array","items":{"type":"string"}},"allowed_s3_buckets":{"type":"array","items":{"type":"string"}},"allowed_strict_referral_domains":{"type":"array","items":{"type":"string"}},"authenticated_cdn_distribution_id":{"type":["string","null"]},"authenticated_cdn_dns_name":{"type":["string","null"]},"auto_purge_rejected_after":{"type":"number"},"backup_bucket":{"type":["string","null"]},"bucket_type":{"type":"number"},"cas_prefix_length":{"type":["number","null"]},"cdn_config_attrs":{"type":"object","properties":{"auto_formats":{"type":"array","items":{"type":"string"}},"custom_auto_formats":{"type":"array","items":{"type":"string"}}},"required":["auto_formats","custom_auto_formats"]},"cdn_config_flags":{"type":"number"},"cdn_distribution_id":{"type":["string","null"]},"cdn_layer":{"type":["string","null"]},"cdn_shield":{"type":["string","null"]},"cdn_type":{"type":"number"},"cdn_types":{"type":"number"},"cdn_url_type":{"type":"number"},"cloud_name":{"type":"string"},"cname":{"type":["string","null"]},"concurrent_video_requests":{"type":["number","null"]},"config":{"type":"object","properties":{"extended_signature_expiration":{"type":["number","null"]},"torogen_enabled":{"type":"boolean"},"untrusted_reason":{"type":"number"},"hook_timeouts":{"type":"object","properties":{"eval_timeout":{"type":"number"},"on_success_timeout":{"type":"number"}},"required":["eval_timeout","on_success_timeout"]},"max_metadata_fields":{"type":["number","null"]},"max_metadata_field_options":{"type":["number","null"]},"max_metadata_rules":{"type":["number","null"]},"flag_probabilities":{"type":"object","properties":{"cpu_image_container":{"type":"number"}},"required":["cpu_image_container"]}},"required":["extended_signature_expiration","torogen_enabled","untrusted_reason","hook_timeouts","max_metadata_fields","max_metadata_field_options","max_metadata_rules","flag_probabilities"]},"created_at":{"type":"string"},"customer_cdn_type":{"type":["string","null"]},"default_quality":{"type":"string"},"engine_yard_account_id":{"type":["string","null"]},"error_cache_period":{"type":["number","null"]},"external_id":{"type":"string"},"facebook_expiration":{"type":["number","null"]},"fetch_domains":{"type":"array","items":{"type":"string"}},"fetch_expiration":{"type":["number","null"]},"fetch_lifecycle":{"type":"number"},"fetch_refresh_period":{"type":["number","null"]},"flags":{"type":"number"},"flags2":{"type":"number"},"flags3":{"type":"number"},"flags4":{"type":"number"},"flags5":{"type":"number"},"flags6":{"type":"number"},"id":{"type":"number"},"kind":{"type":"number"},"limits":{"type":"object","properties":{"hourly_api":{"type":"number"},"hourly_api_v2":{"type":"number"},"hourly_sprite":{"type":"number"},"hourly_manual_invalidation":{"type":"number"},"hourly_console_collection_public_link":{"type":"number"}},"required":["hourly_api","hourly_api_v2","hourly_sprite","hourly_manual_invalidation","hourly_console_collection_public_link"]},"list_expiration":{"type":["number","null"]},"log_shard":{"type":"string"},"manipulation_flags":{"type":"number"},"max_derived_per_resource":{"type":["number","null"]},"max_image_dimension":{"type":["number","null"]},"max_image_pixels":{"type":"number"},"max_image_rotation_dimension":{"type":["number","null"]},"max_public_id_length":{"type":["number","null"]},"max_transformation_length":{"type":["number","null"]},"maximum_file_size":{"type":["number","null"]},"maximum_image_file_size":{"type":"number"},"maximum_multiframe_pixels":{"type":"number"},"maximum_online_image_manipulation_size":{"type":"number"},"maximum_online_video_manipulation_size":{"type":"number"},"maximum_raw_file_size":{"type":"number"},"maximum_video_file_size":{"type":"number"},"migrating":{"type":"boolean"},"multicdn":{"type":["string","null"]},"name":{"type":"string"},"notification_url":{"type":["string","null"]},"prefix_partitions":{"type":"number"},"product_id":{"type":"number"},"restricted_image_kinds":{"type":"number"},"restricted_video_kinds":{"type":"number"},"search_shard":{"type":"string"},"shard":{"type":"string"},"short_name":{"type":"string"},"sort_order":{"type":"number"},"ssl_type":{"type":"number"},"status":{"type":"number"},"twitter_expiration":{"type":["number","null"]},"unsigned_addon_kinds":{"type":"number"},"unsigned_transformation_types":{"type":"number"},"updated_at":{"type":"string"},"upload_expiration":{"type":["number","null"]}},"required":["account_id","account_status","addon_callback_url","allowed_admin_api_ips","allowed_s3_buckets","allowed_strict_referral_domains","authenticated_cdn_distribution_id","authenticated_cdn_dns_name","auto_purge_rejected_after","backup_bucket","bucket_type","cas_prefix_length","cdn_config_attrs","cdn_config_flags","cdn_distribution_id","cdn_layer","cdn_shield","cdn_type","cdn_types","cdn_url_type","cloud_name","cname","concurrent_video_requests","config","created_at","customer_cdn_type","default_quality","engine_yard_account_id","error_cache_period","external_id","facebook_expiration","fetch_domains","fetch_expiration","fetch_lifecycle","fetch_refresh_period","flags","flags2","flags3","flags4","flags5","flags6","id","kind","limits","list_expiration","log_shard","manipulation_flags","max_derived_per_resource","max_image_dimension","max_image_pixels","max_image_rotation_dimension","max_public_id_length","max_transformation_length","maximum_file_size","maximum_image_file_size","maximum_multiframe_pixels","maximum_online_image_manipulation_size","maximum_online_video_manipulation_size","maximum_raw_file_size","maximum_video_file_size","migrating","multicdn","name","notification_url","prefix_partitions","product_id","restricted_image_kinds","restricted_video_kinds","search_shard","shard","short_name","sort_order","ssl_type","status","twitter_expiration","unsigned_addon_kinds","unsigned_transformation_types","updated_at","upload_expiration"]}},"required":["customer"]},"folder":{"type":"string"}},"required":["_full_props","external_id","resource_id","public_id","folder_id","filename","format","version","type","resource_type","resource_subtype","status","substatus","access_mode","created_at","uploaded_at","bytes","backup","backup_bytes","created_by","uploaded_by","width","height","url","secure_url","thumbnail_url","duration","context","metadata","tags","animated","edited_by_dam","related_assets_count","customer","folder"]},"AutocompleteFolder":{"type":"object","properties":{"name":{"type":"string"},"path":{"type":"string"},"created_at":{"type":"string"},"external_id":{"type":"string"}},"required":["name","path","created_at","external_id"]},"AutocompleteUser":{"type":"object","properties":{"external_id":{"type":"string"},"email":{"type":"string"},"name":{"type":["string","null"]},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]}}},"AutocompleteResponse":{"type":"object","properties":{"assets":{"type":"array","items":{"$ref":"#/components/schemas/AutocompleteAsset"}},"collections":{"type":"array","items":{"type":"object","properties":{}}},"folders":{"type":"array","items":{"$ref":"#/components/schemas/AutocompleteFolder"}},"tags":{"type":"array","items":{"type":"string"}},"users":{"type":"array","items":{"$ref":"#/components/schemas/AutocompleteUser"}},"user_groups":{"type":"array","items":{"type":"object","properties":{}}},"metadata_field_options":{"type":"array","items":{"type":"object","properties":{}}}},"required":["assets","collections","folders","tags","users","user_groups","metadata_field_options"]},"ResourceActor":{"type":["object","null"],"properties":{"type":{"type":"string"},"id":{"type":"string"}},"required":["type","id"]},"SearchAsset":{"type":"object","properties":{"ml_role":{"type":["string","null"]},"id":{"type":"string"},"resource_id":{"type":"string"},"public_id":{"type":"string"},"folder":{"type":"string"},"folder_name":{"type":"string"},"folder_id":{"type":"string"},"filename":{"type":"string"},"display_name":{"type":"string"},"format":{"type":["string","null"]},"version":{"type":"number"},"type":{"type":"string"},"resource_type":{"type":"string"},"resource_subtype":{"type":["string","null"]},"status":{"type":"string"},"substatus":{"type":["string","null"]},"access_mode":{"type":["string","null"]},"created_at":{"type":"string"},"uploaded_at":{"type":"string"},"bytes":{"type":"number"},"backup":{"type":"boolean"},"backup_bytes":{"type":"number"},"width":{"type":["number","null"]},"height":{"type":["number","null"]},"url":{"type":"string"},"secure_url":{"type":"string"},"thumbnail_url":{"type":"string"},"duration":{"type":["number","null"]},"context":{"type":"array","items":{}},"metadata":{"type":"object","additionalProperties":{}},"tags":{"type":"array","items":{"type":"string"}},"animated":{"type":["boolean","null"]},"access_control":{},"created_by":{"$ref":"#/components/schemas/ResourceActor"},"uploaded_by":{"$ref":"#/components/schemas/ResourceActor"},"edited_by_dam":{"type":"boolean"},"taken_at":{"type":["string","null"]},"related_assets_count":{"type":"number"}},"required":["id","resource_id","public_id","folder_id","filename","format","version","type","resource_type","resource_subtype","status","substatus","access_mode","created_at","uploaded_at","bytes","backup","backup_bytes","width","height","url","secure_url","thumbnail_url","duration","context","metadata","tags","animated","created_by","uploaded_by","edited_by_dam","taken_at","related_assets_count"]},"FieldAggregation":{"type":"object","properties":{"field":{"type":"string"},"buckets":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"doc_count":{"type":"number"}},"required":["key","doc_count"]}}},"required":["field","buckets"]},"AssetSearchResponse":{"type":"object","properties":{"resources":{"type":"array","items":{"$ref":"#/components/schemas/SearchAsset"}},"aggregations":{"type":"array","items":{"$ref":"#/components/schemas/FieldAggregation"}},"max_results":{"type":"integer"},"total_count":{"type":"integer"},"total_relation":{"type":["string","null"]},"sort_by":{"type":["string","null"]},"next_cursor":{"type":["string","null"]},"backend":{"type":["string","null"]}},"required":["resources","max_results","total_count","total_relation","sort_by","next_cursor","backend"]},"DownloadAssetResponse":{"type":"object","properties":{"redirect":{"type":"string"}}},"UpdateAssetMetadataResponse":{"type":"object","properties":{"external_id":{"type":"string"},"context":{"type":"object","additionalProperties":{"type":"string"}},"metadata":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}}},"required":["external_id"]},"UpdateAssetsMetadataResponse":{"type":"object","properties":{"updated":{"type":"array","items":{"type":"object","properties":{"external_id":{"type":"string"},"metadata":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"context":{"type":"object","additionalProperties":{"type":"string"}}},"required":["external_id"]}},"failed":{"type":"array","items":{"type":"object","properties":{"external_id":{"type":"string"},"error":{"type":"string"},"error_code":{"type":"string"},"field_id":{"type":"string","description":"The structured metadata field that failed validation, when the failure is field-level."}},"required":["external_id","error"]}}},"required":["updated","failed"]},"StructuredMetadataField":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"label":{"type":"string"},"mandatory":{"type":"string"},"default_value":{"type":"string"},"validation":{"type":"string"},"datasource":{"type":"string"}}},"ListMetadataFieldsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/StructuredMetadataField"}}},"required":["items"]},"CreateMetadataFieldResponse":{"type":"object","properties":{"field_id":{"type":"string"},"external_id":{"type":"string"},"already_exists":{"type":"boolean"}},"required":["field_id","external_id","already_exists"]},"MetadataRuleFieldCondition":{"type":"object","properties":{"metadata_field_id":{"type":"string","description":"External id of the field whose value is tested"},"populated":{"type":"boolean","description":"The field has a value (true) or is empty (false)"},"includes":{"type":"array","items":{"type":"string"},"description":"A set field's value contains all of these option external ids"},"equals":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The field's value equals this value, or this set of option external ids"}},"required":["metadata_field_id"],"description":"Tests one field's value. Every predicate present must hold."},"MetadataRuleAndCondition":{"type":"object","properties":{"and":{"type":"array","items":{"type":"object","$ref":"#/components/schemas/MetadataRuleCondition"},"minItems":1}},"required":["and"],"description":"Holds when every nested condition holds."},"MetadataRuleOrCondition":{"type":"object","properties":{"or":{"type":"array","items":{"type":"object","$ref":"#/components/schemas/MetadataRuleCondition"},"minItems":1}},"required":["or"],"description":"Holds when any nested condition holds."},"MetadataRuleCondition":{"anyOf":[{"$ref":"#/components/schemas/MetadataRuleFieldCondition"},{"$ref":"#/components/schemas/MetadataRuleAndCondition"},{"$ref":"#/components/schemas/MetadataRuleOrCondition"}]},"MetadataRuleAppliedOption":{"type":"object","properties":{"external_id":{"type":["string","null"]},"value":{"type":["string","null"]}},"required":["external_id","value"]},"MetadataRuleResult":{"type":"object","properties":{"enable":{"type":"boolean","description":"Enables the field (clears default_disabled)"},"disable":{"type":"boolean","description":"Disables the field"},"hide":{"type":"boolean","description":"Sets the field's hidden_ui restriction"},"activate_values":{"anyOf":[{"type":"string","enum":["all"]},{"type":"object","properties":{"external_ids":{"type":["array","null"],"items":{"type":"string"}},"mode":{"type":"string","enum":["override","append"],"description":"Defaults to append"}},"required":["external_ids"]}],"description":"Restricts the field's selectable options. \"all\" re-enables every option."},"apply_value":{"type":"object","properties":{"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}},{"$ref":"#/components/schemas/MetadataRuleAppliedOption"},{"type":"array","items":{"$ref":"#/components/schemas/MetadataRuleAppliedOption"}}],"description":"A plain value, or the resolved option (enum field) or options (set field)"},"mode":{"type":"string","enum":["default","override","append"],"description":"Defaults to default"}},"required":["value"],"description":"Sets an inferred value on the field"},"set_mandatory":{"type":"boolean","description":"Makes the field mandatory"}},"description":"What the rule does to its target field when the condition holds."},"MetadataRule":{"type":"object","properties":{"id":{"type":"string","description":"Rule external id"},"metadata_field_id":{"type":"string","description":"External id of the structured metadata field the rule targets"},"name":{"type":"string"},"state":{"type":"string","enum":["active","inactive"]},"condition":{"$ref":"#/components/schemas/MetadataRuleCondition"},"result":{"$ref":"#/components/schemas/MetadataRuleResult"},"controlling_ids":{"type":"array","items":{"type":"string"},"description":"External ids of the fields the condition reads"}},"required":["id","metadata_field_id","name","state","condition","result","controlling_ids"]},"ListMetadataRulesResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/MetadataRule"}},"dependency_sort":{"type":"array","items":{"type":"string"},"description":"Metadata field ids in rule evaluation order"}},"required":["items","dependency_sort"]},"ForbiddenResponse":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},"ContextualMetadataField":{"type":"object","properties":{"key":{"type":"string"}},"required":["key"]},"ListContextualMetadataFieldsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ContextualMetadataField"}},"next_cursor":{"type":"string"}},"required":["items"]},"Asset":{"type":"object","properties":{"id":{"type":"string"},"resource_id":{"type":"string"},"public_id":{"type":"string"},"folder":{"type":"string"},"folder_name":{"type":"string"},"folder_id":{"type":"string"},"filename":{"type":"string"},"display_name":{"type":"string"},"format":{"type":["string","null"]},"version":{"type":"number"},"type":{"type":"string"},"resource_type":{"type":"string"},"status":{"type":"string"},"created_at":{"type":"string"},"uploaded_at":{"type":"string"},"bytes":{"type":"number"},"url":{"type":"string"},"secure_url":{"type":"string"}},"required":["id","resource_id","public_id","resource_type"]},"ListAssetsByFolderResponseMeta":{"type":"object","properties":{"total_count":{"type":"integer"},"next_cursor":{"type":"string"}},"required":["total_count"]},"ListAssetsByFolderResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}},"meta":{"$ref":"#/components/schemas/ListAssetsByFolderResponseMeta"}},"required":["meta"]},"AssetHistoryResponse":{"type":"object","properties":{"next_cursor":{"type":"number"},"asset_history":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"timestamp":{"type":"string"},"user_id":{"type":"string"},"audit_type":{"type":"string","enum":["version_upload","version_edit","version_restore","download_single","download_from_collection","download_in_bulk","download_from_folder","delete_single","delete_with_folder","update_smd","update_smd_bulk"]}}}}}},"RelatedAsset":{"type":"object","properties":{"asset_id":{"type":"string"},"public_id":{"type":"string"},"resource_type":{"type":"string"},"type":{"type":"string"},"status":{"type":"string"},"moderation_status":{"type":["string","null"]}},"required":["asset_id","public_id","resource_type","type","status"]},"RelatedAssetsResponse":{"type":"object","properties":{"related_assets":{"type":"array","items":{"$ref":"#/components/schemas/RelatedAsset"}}},"required":["related_assets"]},"UpdateAssetTagsResponse":{"type":"object","properties":{"public_ids":{"type":"array","items":{"type":"string"}}},"required":["public_ids"]},"AssetLastDelivery":{"type":"object","properties":{"external_id":{"type":"string"},"last_delivery_date":{"type":["string","null"]}}},"LastDeliveryResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AssetLastDelivery"}}}},"ListSubfoldersResponse":{"type":"object","properties":{"folders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"path":{"type":"string"},"external_id":{"type":"string"},"created_at":{"type":["string","null"]},"updated_at":{"type":["string","null"]}},"required":["id","name","path"]}},"max_results":{"type":"integer"},"sort_by":{"type":"string"},"next_cursor":{"type":["string","null"]},"total_count":{"type":"integer"}},"required":["folders"]},"CreateFolderResponse":{"type":"object","properties":{"folder":{"type":"object","properties":{"name":{"type":"string"},"path":{"type":"string"},"resource_count":{"type":["number","null"]},"id":{"type":"string"},"last_uploaded_at":{"type":["string","null"]},"total_bytes":{"type":["number","null"]},"is_shared":{"type":"boolean"},"viewable_parents":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"external_id":{"type":"string"}},"required":["name","external_id"]}}},"required":["name","path","resource_count","id","last_uploaded_at","total_bytes","is_shared","viewable_parents"]}},"required":["folder"]},"DeleteFolderResponse":{"type":"object","properties":{"fully_deleted":{"type":"boolean"},"id":{"type":"string"}}},"Transformation":{"type":"object","properties":{"signature":{"type":"string","description":"Stable identifier of the transformation: a UUID-shaped digest of its name (named) or of its transformation string (anonymous)"},"name":{"type":"string","description":"Named transformation name"},"is_allowed_for_strict":{"type":"boolean","description":"Whether the transformation is allowed when strict transformations are enabled"},"transformation_string":{"type":"string","description":"The transformation definition, e.g. w_100,h_100,c_fill"},"is_in_presets":{"type":"boolean","description":"Whether the transformation is referenced by an upload preset"},"thumbnail_url":{"type":"string","description":"Preview URL for the transformation"},"preset_types":{"type":"array","items":{"type":"string"},"description":"Preset types the transformation may be used in"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"derived_resources_count":{"type":"object","properties":{"value":{"type":"number"},"relation":{"type":"string"}},"description":"Number of derived assets produced by this transformation; relation is `eq` or `gte`"}}},"ListTransformationsResponse":{"type":"object","properties":{"transformations":{"type":"array","items":{"$ref":"#/components/schemas/Transformation"}},"next_cursor":{"type":"string"}},"required":["transformations"]},"UpdateTransformationResponse":{"type":"object","properties":{"message":{"type":"string"}}},"DeleteTransformationResponse":{"type":"object","properties":{"message":{"type":"string"}}},"LocationSegment":{"type":"object","properties":{"name":{"type":"string","description":"Segment name (e.g., 'monday', 'board', 'item')"},"id":{"type":["string","null"],"description":"Optional segment ID"}},"required":["name"]},"BackreferenceHistoryEntry":{"type":"object","properties":{"action":{"type":"string","enum":["add","update","remove"]},"at":{"type":"number","description":"Unix timestamp in milliseconds"},"by":{"type":"string","description":"User identifier"}},"required":["action","at","by"]},"BackreferenceResult":{"type":"object","properties":{"asset_id":{"type":"string"},"backref":{"type":"object","properties":{"uri":{"type":"string"},"location":{"type":"array","items":{"$ref":"#/components/schemas/LocationSegment"}},"current":{"$ref":"#/components/schemas/BackreferenceHistoryEntry"},"history":{"type":"array","items":{"$ref":"#/components/schemas/BackreferenceHistoryEntry"}}},"required":["uri","location","current","history"]}},"required":["asset_id","backref"]},"UpdateBackreferencesResponse":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/BackreferenceResult"}}},"required":["results"]},"ListBackreferencesResponse":{"type":"object","properties":{"asset_id":{"type":"string"},"supported":{"type":"boolean","description":"Whether backreferences are available in this environment"},"backrefs":{"type":"array","items":{"type":"object","properties":{"uri":{"type":"string"},"location":{"type":"array","items":{"$ref":"#/components/schemas/LocationSegment"}},"status":{"type":"string","enum":["active","removed"],"description":"Whether the location still uses the asset. removed: its latest action is remove. Says nothing about the asset in Cloudinary."},"current":{"$ref":"#/components/schemas/BackreferenceHistoryEntry"},"history_count":{"type":"number"}},"required":["uri","location","status","current","history_count"]}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page; null on the last page"}},"required":["asset_id","supported","backrefs","next_cursor"]},"ListLocationBackreferencesResponse":{"type":"object","properties":{"uri":{"type":"string","description":"The requested location"},"backrefs":{"type":"array","items":{"type":"object","properties":{"asset_id":{"type":"string"},"uri":{"type":"string"},"location":{"type":"array","items":{"$ref":"#/components/schemas/LocationSegment"}},"status":{"type":"string","enum":["active","removed"],"description":"Whether the location still uses the asset. removed: its latest action is remove. Says nothing about the asset in Cloudinary."},"current":{"$ref":"#/components/schemas/BackreferenceHistoryEntry"},"history_count":{"type":"number"}},"required":["asset_id","uri","location","status","current","history_count"]}},"next_cursor":{"type":["string","null"],"description":"Pass as cursor to get the next page; null on the last page"}},"required":["uri","backrefs","next_cursor"]},"CldtTemplateVariable":{"type":"object","properties":{"name":{"type":"string"},"defaultValue":{"type":"string"},"kind":{"type":"string"},"layerType":{"type":"string"},"figmaLayerName":{"type":"string"}},"required":["name","kind","layerType"]},"CldtTemplate":{"type":"object","properties":{"schemaVersion":{"type":"number"},"name":{"type":"string"},"cloudName":{"type":"string"},"assetFolder":{"type":"string"},"fileName":{"type":"string"},"publicId":{"type":"string"},"transformation":{"type":"string"},"basePublicId":{"type":"string"},"previewUrl":{"type":"string"},"canvas":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"]},"provenance":{"type":"object","properties":{"platform":{"type":"string"},"documentId":{"type":"string"},"url":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"string"},"sourceContext":{"type":"object","additionalProperties":{}}},"required":["platform","documentId","url","createdBy","createdAt"]},"variables":{"type":"array","items":{"$ref":"#/components/schemas/CldtTemplateVariable"}},"createdAt":{"type":"string"},"exportScale":{"type":"number","default":1,"description":"Raster scale the template's layer assets were exported and uploaded at; the delivery URL carries the matching dpr_."},"transformationName":{"type":"string","description":"Name of the named transformation that holds this template's transformation body, delivered as t_<name>."}},"required":["schemaVersion","name","cloudName","assetFolder","fileName","publicId","transformation","basePublicId","previewUrl","canvas","provenance","variables","createdAt"]},"TemplateResourceTuple":{"type":"object","properties":{"resource":{"$ref":"#/components/schemas/SearchAsset"},"template":{"$ref":"#/components/schemas/CldtTemplate"}},"required":["resource","template"]},"TemplateSearchResponse":{"type":"object","properties":{"templates":{"type":"array","items":{"$ref":"#/components/schemas/TemplateResourceTuple"}},"max_results":{"type":"integer"},"total_count":{"type":"integer"},"sort_by":{"type":["string","null"]},"next_cursor":{"type":["string","null"]}},"required":["templates","max_results","total_count","sort_by","next_cursor"]},"TemplateWriteAsset":{"type":"object","properties":{"externalId":{"type":"string","description":"The asset's opaque id"},"publicId":{"type":"string"},"secureUrl":{"type":"string"},"format":{"type":"string"}},"required":["externalId","publicId"]},"TemplateChanges":{"type":"object","properties":{"transformation":{"type":"string","enum":["created","updated","unchanged"]},"strict_updated":{"type":"boolean"},"manifest_written":{"type":"boolean"}},"required":["transformation","strict_updated","manifest_written"]},"TemplateWriteResponse":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/CldtTemplate"},"asset":{"$ref":"#/components/schemas/TemplateWriteAsset"},"transformation":{"type":"object","additionalProperties":{},"description":"The named transformation as the Console returned it"},"changes":{"$ref":"#/components/schemas/TemplateChanges"}},"required":["template","asset","transformation","changes"]},"ErrorResponse":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},"TemplateWriteFailureResponse":{"type":"object","properties":{"error":{"type":"string"},"upstream_status":{"type":"number","description":"The status this response carries: the upstream's own when it rejected the request, 502 otherwise"},"changes":{"$ref":"#/components/schemas/TemplateChanges"},"previous":{"type":"object","properties":{"transformation_string":{"type":"string"}}}},"required":["error","upstream_status","changes"]},"TemplateWriteRequest":{"type":"object","properties":{"name":{"type":"string","description":"Template name; PUT takes it from the path"},"publicId":{"type":"string","description":"Public id of the already-uploaded preview asset; must not contain a quote or a backslash"},"externalId":{"type":"string","description":"Opaque id of the already-uploaded preview asset, as an upload returns it"},"transformation":{"type":"string","description":"Transformation body — no delivery params"},"canvas":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"description":"Design canvas size in pixels"},"variables":{"type":"array","items":{"$ref":"#/components/schemas/CldtTemplateVariable"},"description":"Template variables; only the caller can derive these from its layers"},"provenance":{"type":"object","properties":{"platform":{"type":"string","description":"The client that produced this template, e.g. figma"},"documentId":{"type":"string"},"url":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"string","description":"ISO 8601 timestamp of when the design was exported"},"sourceContext":{"type":"object","additionalProperties":{}}},"required":["platform","documentId","url","createdBy","createdAt"],"description":"Where this template came from"},"exportScale":{"type":"number","description":"Raster scale the layer assets were exported at; defaults to 1"},"basePublicId":{"type":"string","description":"Explicit base asset; defaults to the referenced asset's own public id"},"deliveryParams":{"type":"string","description":"Prefix the caller puts ahead of t_<name> when delivering"}},"required":["transformation","canvas","variables","provenance"]},"TemplateUpdateRequest":{"type":"object","properties":{"publicId":{"type":"string","description":"Public id of the already-uploaded preview asset; must not contain a quote or a backslash"},"externalId":{"type":"string","description":"Opaque id of the already-uploaded preview asset, as an upload returns it"},"transformation":{"type":"string","description":"Transformation body — no delivery params"},"canvas":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"description":"Design canvas size in pixels"},"variables":{"type":"array","items":{"$ref":"#/components/schemas/CldtTemplateVariable"},"description":"Template variables; only the caller can derive these from its layers"},"provenance":{"type":"object","properties":{"platform":{"type":"string","description":"The client that produced this template, e.g. figma"},"documentId":{"type":"string"},"url":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"string","description":"ISO 8601 timestamp of when the design was exported"},"sourceContext":{"type":"object","additionalProperties":{}}},"required":["platform","documentId","url","createdBy","createdAt"],"description":"Where this template came from"},"exportScale":{"type":"number","description":"Raster scale the layer assets were exported at; defaults to 1"},"basePublicId":{"type":"string","description":"Explicit base asset; defaults to the referenced asset's own public id"},"deliveryParams":{"type":"string","description":"Prefix the caller puts ahead of t_<name> when delivering"}},"required":["transformation","canvas","variables","provenance"]},"CollectionPermissions":{"type":"object","properties":{"editable":{"type":"boolean"},"sharable":{"type":"boolean"}}},"Collection":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"user_name":{"type":"string"},"user_id":{"type":"string"},"customer_id":{"type":"string"},"resource_list":{},"collection_permissions":{"$ref":"#/components/schemas/CollectionPermissions"},"total_bytes":{"type":"number"},"resource_count":{"type":"number"},"created_at":{"type":"string"},"last_modified":{"type":"string"},"is_private":{"type":"boolean"},"description":{"type":["string","null"]},"public_links":{"type":"array","items":{}},"portal_id":{"type":"string"},"cover_resource_url":{"type":"string"},"dynamic_filters":{"type":"string"}}},"ListCollectionsResponse":{"type":"object","properties":{"collections":{"type":"array","items":{"$ref":"#/components/schemas/Collection"}},"max_results":{"type":"number"},"sort_by":{"type":"string"},"next_cursor":{"type":"string"}},"required":["collections"]},"CreateCollectionResponse":{"type":"object","properties":{"collection":{"$ref":"#/components/schemas/Collection"}},"required":["collection"]},"SearchCollectionsResponse":{"type":"object","properties":{"collections":{"type":"array","items":{"$ref":"#/components/schemas/Collection"}},"max_results":{"type":"number"},"sort_by":{"type":"string"},"next_cursor":{"type":"string"}},"required":["collections"]},"UpdateCollectionResponse":{"type":"object","properties":{"collection":{"$ref":"#/components/schemas/Collection"}},"required":["collection"]},"AddCollectionAssetsResponse":{"type":"object","properties":{"collection":{"$ref":"#/components/schemas/Collection"}},"required":["collection"]},"RemoveCollectionAssetsResponse":{"type":"object","properties":{"collection":{"$ref":"#/components/schemas/Collection"}},"required":["collection"]},"DownloadCollectionResponse":{"type":"object","properties":{"url":{"type":"string"},"secure_url":{"type":"string"}}},"Portal":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"privacy":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"logo":{},"cover":{"type":["string","null"]},"theme":{"type":"array","items":{"type":"string"}},"delivery_name":{"type":"string"},"collection_ids":{"type":"array","items":{"type":"string"}},"prevent_download_original":{"type":"boolean"},"shared_preset_ids":{"type":"array","items":{"type":"string"}},"user_id":{"type":"string"},"user_external_id":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"}}},"ListPortalsResponse":{"type":"object","properties":{"portals":{"type":"array","items":{"$ref":"#/components/schemas/Portal"}},"meta":{"type":"object","additionalProperties":{}}}},"SavedSearchPermission":{"type":"object","properties":{"external_id":{"type":"string"},"permission":{"type":"string"}}},"SavedSearch":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"query_type":{"type":"string"},"filters":{"type":"object","additionalProperties":{}},"info":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"owner_external_id":{"type":"string"},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/SavedSearchPermission"}},"shared_with":{"type":"array","items":{"$ref":"#/components/schemas/SavedSearchPermission"}}}},"ListSavedSearchesResponse":{"type":"object","properties":{"saved_searches":{"type":"array","items":{"$ref":"#/components/schemas/SavedSearch"}}}},"UpdateSavedSearchResponse":{"type":"object","properties":{"success":{"type":"boolean"}}},"UploadPresetSettings":{"type":["object","null"],"additionalProperties":{},"description":"Upload preset settings, mirroring the Upload API optional parameters (https://cloudinary.com/documentation/image_upload_api_reference#upload_optional_parameters). Passed through from the Console as-is: values are not re-typed by the gateway, and options added upstream appear here before they are documented."},"UploadPreset":{"type":"object","properties":{"id":{"type":"string"},"customer_id":{"type":"string"},"name":{"type":"string"},"unsigned":{"type":"boolean"},"settings":{"$ref":"#/components/schemas/UploadPresetSettings"},"is_upload_default":{"type":"boolean"},"is_media_library_default":{"type":"boolean"}}},"ListUploadPresetsResponse":{"type":"object","properties":{"upload_presets":{"type":"array","items":{"$ref":"#/components/schemas/UploadPreset"}},"meta":{"type":"object","additionalProperties":{}}},"required":["upload_presets"]},"PublicLink":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"name":{"type":"string"},"start_at":{"type":["string","null"]},"end_at":{"type":["string","null"]},"prevent_download_original":{"type":"boolean"},"shared_preset_ids":{"type":"array","items":{"type":"string"}}}},"ListPublicLinksResponse":{"type":"object","properties":{"public_links":{"type":"array","items":{"$ref":"#/components/schemas/PublicLink"}}}},"PublicLinkResponse":{"type":"object","properties":{"media_library_public_link":{"$ref":"#/components/schemas/PublicLink"}}},"DeletePublicLinkResponse":{"type":"object","properties":{}},"SignedUploadParams":{"type":"object","properties":{"timestamp":{"type":"number"},"signature":{"type":"string"},"asset_folder":{"type":"string"},"async":{"type":"boolean"},"display_name":{"type":"string"},"eager":{"type":"string"},"eager_async":{"type":"boolean"},"eager_notification_url":{"type":"string"},"invalidate":{"type":"boolean"},"notification_url":{"type":"string"},"batch_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_\\-./:]{1,128}$"},{"type":"string","enum":[""]}],"description":"Groups an async upload's notifications; a poll:// notification_url is buffered under it"},"phash":{"type":"boolean"},"discard_original_filename":{"type":"boolean"},"overwrite":{"type":"boolean"},"type":{"type":"string"},"access_mode":{"type":"string"},"public_id":{"type":"string"},"transformation":{"type":"string"},"format":{"type":"string"},"folder":{"type":"string"},"filename_override":{"type":"string"},"public_id_prefix":{"type":"string"},"use_asset_folder_as_public_id_prefix":{"type":"boolean"},"unique_display_name":{"type":"boolean"},"use_filename_as_display_name":{"type":"boolean"},"use_filename":{"type":"boolean"},"unique_filename":{"type":"boolean"},"upload_preset":{"type":"string"},"audit_context":{"type":"string"},"source":{"type":"string"},"tags":{"type":"string","description":"Comma-separated tags (Upload API format)"},"context":{"type":"string","description":"Pipe-separated contextual metadata (Upload API format)"},"metadata":{"type":"string","description":"Pipe-separated structured metadata (Upload API format)"}}},"PrepareUploadResponse":{"type":"object","properties":{"upload_params":{"$ref":"#/components/schemas/SignedUploadParams"},"api_key":{"type":"string"},"signature":{"type":"string"},"host":{"type":"string"}},"required":["api_key","signature","host"]},"MetadataValue":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}}]},"UploadParams":{"type":"object","properties":{"timestamp":{"type":"number"},"signature":{"type":"string"},"asset_folder":{"type":"string"},"async":{"type":"boolean"},"display_name":{"type":"string"},"eager":{"type":"string"},"eager_async":{"type":"boolean"},"eager_notification_url":{"type":"string"},"invalidate":{"type":"boolean"},"notification_url":{"type":"string"},"batch_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_\\-./:]{1,128}$"},{"type":"string","enum":[""]}],"description":"Groups an async upload's notifications; a poll:// notification_url is buffered under it"},"phash":{"type":"boolean"},"discard_original_filename":{"type":"boolean"},"overwrite":{"type":"boolean"},"type":{"type":"string"},"access_mode":{"type":"string"},"public_id":{"type":"string"},"transformation":{"type":"string"},"format":{"type":"string"},"folder":{"type":"string"},"filename_override":{"type":"string"},"public_id_prefix":{"type":"string"},"use_asset_folder_as_public_id_prefix":{"type":"boolean"},"unique_display_name":{"type":"boolean"},"use_filename_as_display_name":{"type":"boolean"},"use_filename":{"type":"boolean"},"unique_filename":{"type":"boolean"},"upload_preset":{"type":"string"},"audit_context":{"type":"string"},"source":{"type":"string"},"tags":{"type":"array","items":{"type":"string"},"description":"Tag names to assign to the asset"},"context":{"type":"object","additionalProperties":{"type":"string"},"description":"Contextual metadata as key-value pairs"},"metadata":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/MetadataValue"},"description":"Structured metadata keyed by field external_id (string, number, boolean, or string[] for multi-select)"}}},"PrepareUploadRequest":{"type":"object","properties":{"upload_params":{"$ref":"#/components/schemas/UploadParams"}}},"SignAndUploadResponse":{"type":"object","properties":{"public_id":{"type":"string"},"version":{"type":"number"},"signature":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"},"format":{"type":"string"},"resource_type":{"type":"string"},"created_at":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"bytes":{"type":"number"},"type":{"type":"string"},"etag":{"type":"string"},"placeholder":{"type":"boolean"},"url":{"type":"string"},"secure_url":{"type":"string"},"access_mode":{"type":"string"}},"required":["public_id","version","signature","format","resource_type","created_at","bytes","type","etag","url","secure_url"]},"UploadAssetResponse":{"type":"object","properties":{"public_id":{"type":"string"},"version":{"type":"number"},"signature":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"},"format":{"type":"string"},"resource_type":{"type":"string"},"created_at":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"bytes":{"type":"number"},"type":{"type":"string"},"etag":{"type":"string"},"placeholder":{"type":"boolean"},"url":{"type":"string"},"secure_url":{"type":"string"},"access_mode":{"type":"string"}},"required":["public_id","version","signature","format","resource_type","created_at","bytes","type","etag","url","secure_url"]},"AiVisionGeneralResponse":{"type":"object","properties":{"data":{}}},"CaptionAssetResponse":{"type":"object","properties":{"caption":{"type":["string","null"],"description":"The generated caption. Null while pending, and for any asset that is not an image"},"status":{"type":["string","null"],"enum":["complete","pending"],"description":"complete: the caption is ready. pending: captioning was scheduled to retry in the background; call again later. Null when the asset is not an image, so nothing was captioned"}},"required":["caption","status"]},"ConsoleErrorResponse":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"number"}]}},"required":["message"]},"ThumbnailsTokenResponse":{"type":"object","properties":{"token":{"type":"string"},"valid_for":{"type":"number"},"host":{"type":"string"}},"required":["token","valid_for","host"]},"ErrorWithMessageResponse":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"}},"required":["error","message"]},"FontLookupResponse":{"type":"object","properties":{"fonts":{"type":"array","items":{"type":"object","properties":{"family":{"type":"string","minLength":1},"weight":{"type":"string","enum":["normal","bold","100","200","300","400","500","600","700","800","900"]},"style":{"type":"string","enum":["normal","italic"]},"supported":{"type":"boolean"},"source":{"type":"string","enum":["cloudinary","google_fonts","none"]},"public_id":{"type":"string"}},"required":["family","weight","style","supported","source"]}}},"required":["fonts"]},"FontProvisioningResponse":{"type":"object","properties":{"fonts":{"type":"array","items":{"type":"object","properties":{"family":{"type":"string","minLength":1},"weight":{"type":"string","enum":["normal","bold","100","200","300","400","500","600","700","800","900"]},"style":{"type":"string","enum":["normal","italic"]},"supported":{"type":"boolean"},"source":{"type":"string","enum":["cloudinary","google_fonts","none"]},"public_id":{"type":"string"}},"required":["family","weight","style","supported","source"]}}},"required":["fonts"]},"FontDefinition":{"type":"object","properties":{"family":{"type":"string"},"variants":{"type":"array","items":{"type":"string"}},"subsets":{"type":"array","items":{"type":"string"}}},"required":["family","variants","subsets"]},"GoogleFontListingResponse":{"type":"object","properties":{"fonts":{"type":"array","items":{"$ref":"#/components/schemas/FontDefinition"}}},"required":["fonts"]},"AuthUser":{"type":"object","properties":{"external_id":{"type":"string"},"email":{"type":"string"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"role":{"type":"string","enum":["master_admin","admin","technical_admin","billing","reports","editor","contributor","viewer","media_library_admin","media_library_user","custom"]},"can_modify_cloud_settings":{"type":"boolean"}},"required":["external_id","email","role","can_modify_cloud_settings"]},"AuthCustomer":{"type":"object","properties":{"external_id":{"type":"string"},"cloud_name":{"type":"string"},"display_name":{"type":"string"},"api_key":{"type":"string"},"account_external_id":{"type":"string"},"cname":{"type":["string","null"]},"granular_permissions_enabled":{"type":"boolean"},"hide_contextual_metadata":{"type":"boolean"},"folder_decoupling_enabled":{"type":"boolean"},"edit_metadata_on_upload":{"type":["string","null"],"enum":["always","sometimes"]}},"required":["external_id","cloud_name","display_name","api_key","account_external_id","granular_permissions_enabled","hide_contextual_metadata","folder_decoupling_enabled","edit_metadata_on_upload"]},"AuthCredentialsResponse":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/AuthUser"},"customer":{"$ref":"#/components/schemas/AuthCustomer"}},"required":["user","customer"]},"ValidateTokenResponse":{"type":"object","properties":{"ok":{"type":"number"}},"required":["ok"]},"RefreshTokenResponse":{"type":"object","properties":{"token":{"type":"string"}},"required":["token"]},"RefreshTokenErrorResponse":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},"CustomerUploadLimits":{"type":"object","properties":{"image_max_size_bytes":{"type":"number"},"video_max_size_bytes":{"type":"number"},"raw_max_size_bytes":{"type":"number"},"image_max_px":{"type":"number"},"asset_max_total_px":{"type":"number"}},"required":["image_max_size_bytes","video_max_size_bytes","raw_max_size_bytes","image_max_px","asset_max_total_px"]},"Customer":{"type":"object","properties":{"id":{"type":"string"},"account_id":{"type":"string"},"cloud_name":{"type":"string"},"display_name":{"type":"string"},"account_external_id":{"type":"string"},"created_at":{"type":"string"},"cname":{"type":["string","null"]},"api_key":{"type":"string"},"base_url":{"type":"string"},"secure_base_url":{"type":"string"},"upload_limits":{"$ref":"#/components/schemas/CustomerUploadLimits"},"external_id":{"type":"string"},"geo":{"type":"string"},"media_optimizer":{"type":"boolean"},"programmable_media_editing":{"type":"boolean"},"media_management":{"type":"boolean"},"product_id":{"type":"number"},"product_name":{"type":"string"},"block_display_customer_images":{"type":"boolean"},"description":{"type":["string","null"]},"capabilities":{},"status":{"type":"string"},"cdn_url_type":{"type":"string"},"strict_transformations":{"type":"boolean"},"backup":{"type":"boolean"},"media_library_original_filename":{"type":"boolean"},"etag_as_public_id":{"type":"boolean"},"is_untrusted":{"type":"boolean"},"folder_decoupling_enabled":{"type":"boolean"},"granular_permissions_enabled":{"type":"boolean"}},"required":["id","account_id","cloud_name","display_name","account_external_id","created_at","cname","api_key","base_url","secure_base_url","upload_limits","external_id","geo","media_optimizer","programmable_media_editing","media_management","product_id","product_name","block_display_customer_images","description","status","cdn_url_type","strict_transformations","backup","media_library_original_filename","etag_as_public_id","is_untrusted","folder_decoupling_enabled","granular_permissions_enabled"]},"CustomerListMeta":{"type":"object","properties":{"max_product_environments":{"type":"number"},"current_product_environments_count":{"type":"number"},"total_active":{"type":"number"},"current_page":{"type":"number"},"next_page":{"type":["number","null"]},"total_pages":{"type":"number"},"page_size":{"type":"number"},"total_entries":{"type":"number"}},"required":["max_product_environments","current_product_environments_count","total_active","current_page","next_page","total_pages","page_size","total_entries"]},"ListCustomersResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Customer"}},"meta":{"$ref":"#/components/schemas/CustomerListMeta"}},"required":["data","meta"]},"AnalyticsResponse":{"type":"object","properties":{"ok":{"type":"number"}},"required":["ok"]},"User":{"type":"object","properties":{"id":{"type":"number"},"email":{"type":"string"},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"name":{"type":"string"},"external_id":{"type":"string"},"account_external_id":{"type":"string"},"role":{"type":"string"},"admin":{"type":"boolean"},"created_at":{"type":"string"}}},"ListUsersResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/User"}},"total":{"type":"number"}}},"CheckFeaturePermissionsResponse":{"type":"object","properties":{"permissions":{"type":"object","additionalProperties":{"type":"boolean"},"description":"Whether the caller holds each requested feature, keyed by feature"}},"required":["permissions"]},"AddonSubscription":{"type":"object","properties":{"plan_name":{"type":"string"},"usage":{"type":"number"},"limit":{"type":"number"},"is_payg":{"type":"boolean"}}},"Addon":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"display_name":{"type":"string"},"description":{"type":"string"},"documentation_url":{"type":"string"},"icon":{"type":"string"},"provider":{"type":"string"},"provider_url":{"type":"string"},"has_free_plan":{"type":"boolean"},"subscription":{"$ref":"#/components/schemas/AddonSubscription"}}},"ListAddonsResponse":{"type":"object","properties":{"addons":{"type":"array","items":{"$ref":"#/components/schemas/Addon"}}},"required":["addons"]},"DashboardDataResponse":{"type":"object","properties":{"data":{"type":"object","additionalProperties":{}},"items":{"type":"object","additionalProperties":{}}}},"AppStorageGetResponse":{"type":"object","properties":{"key":{"type":"string","description":"The user-defined key name"},"data":{"description":"The stored JSON value"}},"required":["key"]},"AppStorageErrorResponse":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},"AppStorageSetResponse":{"type":"object","properties":{"key":{"type":"string","description":"The user-defined key name"},"value":{"description":"The stored JSON value"}},"required":["key"]},"AppStorageSetErrorResponse":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},"NamespaceTokenCreateResponse":{"type":"object","properties":{"namespace_token":{"type":"string","description":"Encrypted token encoding the namespace sharing key"}},"required":["namespace_token"]},"NamespaceTokenCreateErrorResponse":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},"DamAppUserSnapshot":{"type":["object","null"],"properties":{"email":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"external_id":{"type":"string"}}},"DamAppResponse":{"type":"object","properties":{"appName":{"type":"string","description":"Display name of the DAM app"},"appDescription":{"type":"string","description":"Short description shown in the Media Library"},"appId":{"type":"string","description":"Custom action UUID"},"appUrl":{"type":"string","description":"URL loaded when the custom action is triggered"},"actionIcon":{"type":"string","description":"Icon URL for the action in the ML UI"},"appUrlParams":{"type":"object","additionalProperties":{},"description":"Dynamic query params requested by the app"},"appMessageParams":{"type":"object","additionalProperties":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"attributes":{"type":"array","items":{"type":"string"}}},"required":["type"]},{},{"type":"null"}]},"description":"Dynamic data passed to the app when opened (e.g. cloud_name, selected_items)"},"appActive":{"type":"boolean","description":"Whether the app is enabled for this customer"},"appTitle":{"type":"string","description":"Custom modal window title"},"assetFormat":{"type":"array","items":{"type":"string"},"description":"Supported file formats"},"appSupportedDevices":{"type":"array","items":{"type":"string"},"description":"Devices where the action is shown"},"assetAmountLimit":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"description":"Max assets passed to the app; empty string means no limit"},"selectionType":{"type":"array","items":{"type":"string"},"description":"Entity type for UI selection (e.g. asset, collection)"},"userCreatedBy":{"$ref":"#/components/schemas/DamAppUserSnapshot"},"userUpdatedBy":{"$ref":"#/components/schemas/DamAppUserSnapshot"},"availability":{"type":"string","enum":["internal","non_certified","certified","global"],"description":"App availability / certification tier"},"hasManifest":{"type":["boolean","null"],"description":"Whether cloudinary.app.json is served from appUrl"},"manifest":{"type":["object","null"],"additionalProperties":{},"description":"cloudinary.app.json when stored inline"},"canManage":{"type":"boolean","description":"Whether the caller may change and deploy the app"}},"required":["appName","appUrl","actionIcon","appActive","appSupportedDevices","selectionType","availability"]},"DamAppErrorResponse":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},"CiLink":{"type":"object","properties":{"appId":{"type":"string"},"rule":{"type":"object","properties":{"provider":{"type":"string","enum":["github"]},"repository":{"type":"string"},"repository_owner_id":{"type":"string"},"ref":{"type":"string"},"event_name":{"type":"string"},"environment":{"type":"string"}},"required":["provider","repository","repository_owner_id"]},"linkedBy":{"type":"object","properties":{"user_id":{"type":"string"},"account_id":{"type":"string"}},"required":["user_id"]},"linkedAt":{"type":"number","description":"Epoch milliseconds"},"lastRefreshedAt":{"type":"number","description":"Epoch milliseconds of the last successful grant refresh"},"broken":{"type":"object","properties":{"at":{"type":"number"},"reason":{"type":"string"}},"required":["at","reason"],"description":"Set when the grant was refused. CI requests answer 401 until the link is made again."}},"required":["appId","rule","linkedBy","linkedAt"]}}},"paths":{"/v2605/asset-management/assets/autocomplete":{"get":{"tags":["Asset Management"],"operationId":"autocompleteAssets","summary":"Autocomplete across assets, folders, collections, tags, and metadata","description":"Returns typeahead suggestions for a search term across multiple entity types. Each type param (assets, folders, tags, etc.) controls the max results returned for that category; omit a param to exclude that category.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":true,"name":"term","in":"query"},{"schema":{"type":"string","enum":["image","javascript","css","video","raw","any"]},"required":false,"name":"resource_type","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"assets","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"collections","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"folders","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"tags","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"users","in":"query"},{"schema":{"type":"boolean"},"required":false,"name":"with_deleted_users","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"user_groups","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"metadata_field_options","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutocompleteResponse"}}}}}}},"/v2605/asset-management/assets/search":{"post":{"tags":["Asset Management"],"summary":"Search assets using Cloudinary expression language","description":"Full-text and field-scoped search over all assets in the cloud. Supports pagination via next_cursor, sort ordering, backend selection (relational, elastic, CLIP), and field aggregations.","security":[{"bearerAuth":[]}],"operationId":"searchAssets","parameters":[{"schema":{"type":"string"},"required":true,"name":"expression","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"max_results","in":"query"},{"schema":{"type":"string"},"required":false,"name":"next_cursor","in":"query"},{"schema":{"type":"string"},"required":false,"name":"sort_by","in":"query"},{"schema":{"type":"string","enum":["relational","elastic","clip","clip_text","clip_url"]},"required":false,"name":"backend","in":"query"},{"schema":{"type":"string"},"required":false,"name":"_aggregate","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSearchResponse"}}}}}}},"/v2605/asset-management/assets/download":{"post":{"tags":["Asset Management"],"summary":"Generate a download URL for an asset","description":"Returns a time-limited redirect URL for downloading an asset. Accepts external_id directly, or resolves public_id to external_id via search. Optionally applies a transformation before download.","security":[{"bearerAuth":[]}],"operationId":"downloadAsset","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"external_id":{"type":"string"},"public_id":{"type":"string"},"target_filename":{"type":"string"},"transformation":{"type":"string"}}}}}},"responses":{"200":{"description":"Successful download response with URL","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadAssetResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/asset-management/assets/metadata":{"patch":{"tags":["Asset Management"],"summary":"Update asset contextual and structured metadata","description":"Patches contextual key-value metadata and/or structured metadata fields on an asset identified by its external ID. Context fields are merged with existing values; structured metadata fields are set directly.","security":[{"bearerAuth":[]}],"operationId":"updateAssetMetadata","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"context":{"type":"object","additionalProperties":{"type":"string"}},"metadata":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}}},"required":["id"]}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAssetMetadataResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/asset-management/assets/metadata/batch":{"patch":{"tags":["Asset Management"],"summary":"Update contextual and structured metadata on multiple assets","description":"Patches contextual key-value metadata and/or structured metadata fields on many assets in a single request. Each `assets` entry carries its own values; context fields are merged with existing values, structured metadata fields are set directly. Entries with identical values are written together in one upstream call, so applying the same values across a whole selection is no more expensive than sending them once. An asset listed more than once has its entries merged, later values winning per key, and an entry with no values is reported as a no-op success. Every asset in the request is accounted for in exactly one of `updated` or `failed`, and assets that cannot be updated are reported in `failed` rather than failing the request. The update is not atomic: an asset in `failed` may still have had part of its values written, and an asset whose structured metadata failed is left out of the context write. Each distinct value set costs one upstream call, so a request spread across many different value sets is rejected with 400 — split it into smaller batches. A single asset carrying more than 200 structured metadata fields is rejected with 400, because the upstream rejects the whole call rather than that one asset.","security":[{"bearerAuth":[]}],"operationId":"updateAssetsMetadata","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"assets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"External ID of the asset"},"metadata":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"description":"Structured metadata fields set on this asset. Max 200 fields."},"context":{"type":"object","additionalProperties":{"type":"string"},"description":"Contextual key-value metadata merged into this asset's existing context."}},"required":["id"]},"minItems":1,"maxItems":1000,"description":"The assets to update, each with its own values. An asset listed more than once has its entries merged, later values winning per key, and an entry with no values is a no-op. Entries that carry identical values are written together in a single upstream call, so repeating the same values across a whole selection costs no more than sending them once."}},"required":["assets"]}}}},"responses":{"200":{"description":"Successful operation (complete or partial)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAssetsMetadataResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/asset-management/assets/metadata/fields":{"get":{"tags":["Asset Management"],"summary":"List structured metadata field definitions","description":"Returns all structured metadata field definitions configured for the cloud, including field type, label, validation rules, and datasource.","security":[{"bearerAuth":[]}],"operationId":"listAssetMetadataFields","responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMetadataFieldsResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]},"post":{"tags":["Asset Management"],"summary":"Create a structured metadata field definition","description":"Idempotently creates a structured metadata field for the cloud. Returns already_exists=true if a field with the given external_id is already defined.","security":[{"bearerAuth":[]}],"operationId":"createAssetMetadataField","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"external_id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["string","integer","date","enum","set"]},"mandatory":{"type":"boolean"},"default_disabled":{"type":"boolean"},"restrictions":{"type":"object","properties":{"readonly_ui":{"type":"boolean"},"hidden_ui":{"type":"boolean"},"excluded_from_search":{"type":"boolean"}}},"datasource":{"type":"object","properties":{"values":{"type":"array","items":{"type":"object","properties":{"external_id":{"type":"string"},"value":{"type":"string","minLength":1}},"required":["value"]}}},"required":["values"],"description":"enum/set only. Initial list values; external_id is generated from value when omitted."},"allow_dynamic_list_values":{"type":"boolean","description":"enum/set only. Lets users add list values from the Media Library."},"alphabetically_sorted":{"type":"boolean","description":"enum/set only. Keeps list values sorted alphabetically."}},"required":["external_id","label"]}}}},"responses":{"200":{"description":"Field created or already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMetadataFieldResponse"}}}},"400":{"description":"Bad request - invalid field definition"}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/asset-management/assets/metadata/rules":{"get":{"tags":["Asset Management"],"summary":"List conditional metadata rules","description":"Returns all conditional metadata rules for the cloud, active and inactive. Each rule targets one structured metadata field (metadata_field_id) and holds a condition and a result. dependency_sort lists field ids in evaluation order, and items follow that order.","security":[{"bearerAuth":[]}],"operationId":"listAssetMetadataRules","responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMetadataRulesResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/asset-management/assets/metadata/context-fields":{"get":{"tags":["Asset Management"],"summary":"List contextual metadata fields","description":"Returns contextual metadata keys in use across assets in the cloud. Unlike structured metadata fields, contextual fields are simple key-value pairs without type definitions.","security":[{"bearerAuth":[]}],"operationId":"listAssetContextFields","parameters":[{"schema":{"type":"integer","default":50},"required":false,"name":"max_results","in":"query"},{"schema":{"type":"string"},"required":false,"name":"next_cursor","in":"query"},{"schema":{"type":"string"},"required":false,"name":"prefix","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListContextualMetadataFieldsResponse"}}}}}}},"/v2605/asset-management/assets/by-folder":{"get":{"tags":["Asset Management"],"operationId":"listAssetsByFolder","summary":"List assets in a folder","description":"Returns assets within a folder identified by folder_id, with optional resource_type filter, sorting, and cursor-based pagination.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":false,"name":"folder_id","in":"query"},{"schema":{"type":"string","enum":["image","javascript","css","video","raw","any"]},"required":false,"name":"resource_type","in":"query"},{"schema":{"type":"string"},"required":false,"name":"sort_by","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"max_results","in":"query"},{"schema":{"type":"string"},"required":false,"name":"next_cursor","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAssetsByFolderResponse"}}}}}}},"/v2605/asset-management/assets/{external_id}/asset-history":{"get":{"tags":["Asset Management"],"summary":"List asset audit history","description":"Returns paginated audit history for an asset identified by external_id, including metadata updates, downloads, version changes, and deletions.","security":[{"bearerAuth":[]}],"operationId":"listAssetHistory","parameters":[{"schema":{"type":"string","description":"Asset external ID"},"required":true,"description":"Asset external ID","name":"external_id","in":"path"},{"schema":{"type":["number","null"],"description":"Maximum number of history entries to return"},"required":false,"description":"Maximum number of history entries to return","name":"max_results","in":"query"},{"schema":{"type":["number","null"],"description":"Pagination cursor"},"required":false,"description":"Pagination cursor","name":"next_cursor","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetHistoryResponse"}}}}}}},"/v2605/asset-management/assets/related-assets":{"get":{"tags":["Asset Management"],"summary":"List related assets for an asset","description":"Returns the list of assets related to a given asset (as configured via Cloudinary's Related Assets feature). Identifies the asset by the resource_type/type/public_id triple. Requires OAuth authentication.","security":[{"bearerAuth":[]}],"operationId":"listRelatedAssets","parameters":[{"schema":{"type":"string","description":"Cloudinary resource type (image, video, raw, audio, …)."},"required":true,"description":"Cloudinary resource type (image, video, raw, audio, …).","name":"resource_type","in":"query"},{"schema":{"type":"string","description":"Cloudinary delivery type (upload, private, authenticated, fetch, …)."},"required":true,"description":"Cloudinary delivery type (upload, private, authenticated, fetch, …).","name":"type","in":"query"},{"schema":{"type":"string","description":"Asset public_id."},"required":true,"description":"Asset public_id.","name":"public_id","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelatedAssetsResponse"}}}}}}},"/v2605/asset-management/assets/{resource_type}/tags":{"post":{"tags":["Asset Management"],"security":[{"bearerAuth":[]}],"operationId":"updateAssetTags","summary":"Add or remove a tag on assets","description":"Adds or removes a single tag from one or more assets identified by public_id. The command field controls whether the tag is added or removed. Requires OAuth authentication.","parameters":[{"schema":{"type":"string","description":"The resource type (e.g., image, video, raw)"},"required":true,"description":"The resource type (e.g., image, video, raw)","name":"resource_type","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"public_ids":{"type":"array","items":{"type":"string"},"description":"An array of public IDs of the assets to add the tag to"},"tag":{"type":"string","description":"The name of the tag to add"},"command":{"type":"string","enum":["add","remove"],"description":"The command to add or remove the tag"}},"required":["public_ids","tag","command"]}}}},"responses":{"200":{"description":"Tag added successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAssetTagsResponse"}}}}}}},"/v2605/asset-management/assets/last-delivery":{"post":{"tags":["Asset Management"],"summary":"Get last delivery dates for assets","description":"Returns the most recent delivery (CDN access) date per asset for the given external IDs. Useful for delivery-recency checks such as cleanup or expiry flows.","security":[{"bearerAuth":[]}],"operationId":"getAssetsLastDelivery","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"external_ids":{"type":"array","items":{"type":"string"},"description":"External IDs of the assets to check"}},"required":["external_ids"]}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LastDeliveryResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/asset-management/folders/subfolders":{"get":{"tags":["Asset Management"],"operationId":"listSubfolders","summary":"List child folders","security":[{"bearerAuth":[]}],"description":"Returns immediate subfolders of a given parent path or folder external ID, with pagination support.","parameters":[{"schema":{"type":"string"},"required":false,"name":"parent_path","in":"query"},{"schema":{"type":"string"},"required":false,"name":"external_id","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"max_results","in":"query"},{"schema":{"type":"string","default":""},"required":false,"name":"next_cursor","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSubfoldersResponse"}}}}}}},"/v2605/asset-management/folders":{"post":{"tags":["Asset Management"],"operationId":"createFolder","summary":"Create a folder","security":[{"bearerAuth":[]}],"description":"Creates a new subfolder under the specified parent_id, or under the root folder when parent_id is omitted.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"parent_id":{"type":"string"},"name":{"type":"string"}},"required":["name"]}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFolderResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/asset-management/folders/{id}":{"delete":{"tags":["Asset Management"],"operationId":"deleteFolder","summary":"Delete a folder","security":[{"bearerAuth":[]}],"description":"Deletes a folder by its external ID. The upstream Console API rejects deletion when the folder still contains assets.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"},{"schema":{"type":"boolean"},"required":false,"name":"delete_resources","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteFolderResponse"}}}}}}},"/v2605/asset-management/transformations":{"get":{"tags":["Asset Management"],"operationId":"listTransformations","summary":"List named transformations","security":[{"bearerAuth":[]}],"description":"Returns named transformations defined in the cloud. Supports pagination via next_cursor. When `name` is given it must match exactly (case-sensitive): the result is that one transformation, with its signature, or an empty list, and no next_cursor is returned. A by-name Admin API lookup answers a miss in one call; otherwise every page of the listing is searched.","parameters":[{"schema":{"type":"integer"},"required":false,"name":"max_results","in":"query"},{"schema":{"type":"string"},"required":false,"name":"next_cursor","in":"query"},{"schema":{"type":"string","description":"Return only the named transformation with exactly this name (case-sensitive)"},"required":false,"description":"Return only the named transformation with exactly this name (case-sensitive)","name":"name","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTransformationsResponse"}}}}}},"post":{"tags":["Asset Management"],"summary":"Create a named transformation","description":"Defines a new named transformation in the cloud from a transformation string","security":[{"bearerAuth":[]}],"operationId":"createTransformation","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Name of the named transformation"},"transformation":{"type":"string","description":"Transformation definition, e.g. w_100,h_100,c_fill"}},"required":["name","transformation"]}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transformation"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/asset-management/transformations/{signature}":{"get":{"tags":["Asset Management"],"summary":"Get a named transformation","description":"Returns a single named transformation by signature","security":[{"bearerAuth":[]}],"operationId":"showTransformation","parameters":[{"schema":{"type":"string","description":"Transformation signature, as returned in the `signature` field by listTransformations"},"required":true,"description":"Transformation signature, as returned in the `signature` field by listTransformations","name":"signature","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transformation"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}},"put":{"tags":["Asset Management"],"summary":"Update a named transformation","description":"Updates a named transformation's definition, strict-transformation allowance, or preset usage","security":[{"bearerAuth":[]}],"operationId":"updateTransformation","parameters":[{"schema":{"type":"string","description":"Transformation signature, as returned in the `signature` field by listTransformations"},"required":true,"description":"Transformation signature, as returned in the `signature` field by listTransformations","name":"signature","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"transformation":{"type":"string","description":"Transformation definition, e.g. w_100,h_100,c_fill"},"is_allowed_for_strict":{"type":"boolean","description":"Whether the transformation is allowed when strict transformations are enabled"},"is_allowed_in_preset":{"type":"boolean","description":"Whether the transformation may be used by upload presets"},"preset_types":{"type":"array","items":{"type":"string"},"description":"Preset types the transformation may be used in"}}}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTransformationResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}},"delete":{"tags":["Asset Management"],"summary":"Delete a named transformation","description":"Deletes a named transformation by signature","security":[{"bearerAuth":[]}],"operationId":"deleteTransformation","parameters":[{"schema":{"type":"string","description":"Transformation signature, as returned in the `signature` field by listTransformations"},"required":true,"description":"Transformation signature, as returned in the `signature` field by listTransformations","name":"signature","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteTransformationResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}}},"/v2605/asset-management/backreferences/assets":{"post":{"tags":["Asset Management"],"summary":"Create, update, or remove asset backreferences","description":"Links or unlinks one or more assets to/from a location in an external system (e.g. a CMS page or design file). Each call appends one event per asset to the cloud's backreference log; the response carries each link's full history. Requires only view access to the assets.","security":[{"bearerAuth":[]}],"operationId":"updateAssetBackreferences","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"assetIds":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Cloudinary asset external_ids"},"location":{"type":"array","items":{"$ref":"#/components/schemas/LocationSegment"},"minItems":1,"description":"Hierarchical location path segments defining the backref URI"},"action":{"type":"string","enum":["add","update","remove"],"description":"Action to perform"},"attributes":{"type":"object","additionalProperties":{},"description":"Optional backreference attributes (name, url, etc.)"}},"required":["assetIds","location","action"]}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBackreferencesResponse"}}}},"400":{"description":"Bad request - invalid location or parameters"},"404":{"description":"Asset not found"},"503":{"description":"Backreferences are unavailable for this cloud (its region is unknown)"}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/asset-management/backreferences/assets/{assetId}":{"get":{"tags":["Asset Management"],"summary":"List backreferences for an asset","description":"Returns the locations an asset is used in (where is this asset used?), each with its link status. Optionally filter by system and/or tenant. Pass includeRemoved=true to include locations that no longer use it. Paged with limit (default 500) and cursor.","security":[{"bearerAuth":[]}],"operationId":"listAssetBackreferences","parameters":[{"schema":{"type":"string","description":"Cloudinary asset id"},"required":true,"description":"Cloudinary asset id","name":"assetId","in":"path"},{"schema":{"type":"string","description":"Filter by system name (e.g., 'monday')"},"required":false,"description":"Filter by system name (e.g., 'monday')","name":"system","in":"query"},{"schema":{"type":"string","description":"Filter by tenant/workspace ID (requires system)"},"required":false,"description":"Filter by tenant/workspace ID (requires system)","name":"tenant","in":"query"},{"schema":{"type":["boolean","null"],"description":"Include backreferences whose current action is remove"},"required":false,"description":"Include backreferences whose current action is remove","name":"includeRemoved","in":"query"},{"schema":{"type":"string","description":"next_cursor from the previous page"},"required":false,"description":"next_cursor from the previous page","name":"cursor","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":1000,"default":500,"description":"Page size (1-1000, default 500)"},"required":false,"description":"Page size (1-1000, default 500)","name":"limit","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListBackreferencesResponse"}}}},"400":{"description":"Invalid cursor or limit"},"503":{"description":"Backreferences are unavailable for this cloud (its region is unknown)"}}}},"/v2605/asset-management/backreferences/locations/{locationId}":{"get":{"tags":["Asset Management"],"summary":"List the assets used under a location","description":"Which assets does this document, board or node use? locationId is the location's ref URI, URL-encoded as one path segment. Matches the location and everything below it; a system with no tenant (ref://monday) covers all its tenants. Removed links are included and marked status: removed. Paged with limit (default 100) and cursor.","security":[{"bearerAuth":[]}],"operationId":"listLocationBackreferences","parameters":[{"schema":{"type":"string","description":"The location's ref URI, URL-encoded as one path segment (encodeURIComponent)"},"required":true,"description":"The location's ref URI, URL-encoded as one path segment (encodeURIComponent)","name":"locationId","in":"path"},{"schema":{"type":"string","description":"next_cursor from the previous page"},"required":false,"description":"next_cursor from the previous page","name":"cursor","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":500,"default":100,"description":"Page size (1-500, default 100)"},"required":false,"description":"Page size (1-500, default 100)","name":"limit","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLocationBackreferencesResponse"}}}},"400":{"description":"Invalid location, cursor or limit"},"503":{"description":"Backreferences are unavailable for this cloud (its region is unknown)"}}}},"/v2605/asset-management/templates":{"get":{"tags":["Asset Management"],"operationId":"searchTemplates","summary":"Search creative automation templates","description":"List templates in your Cloudinary account. A template combines transformations, variables, and supporting assets (images, fonts, and related resources) into a single reusable creative unit. Templates are typically exported from design tools such as Figma or Photoshop, uploaded to Cloudinary, and consumed by downstream platforms like Braze and Klaviyo for creative automation workflows. Optionally filter by id, folder, or page through results.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","description":"Limit results to a specific template id"},"required":false,"description":"Limit results to a specific template id","name":"public_id","in":"query"},{"schema":{"type":"string","description":"Limit results to assets under this folder path"},"required":false,"description":"Limit results to assets under this folder path","name":"folder","in":"query"},{"schema":{"type":"integer","description":"Maximum number of results per page"},"required":false,"description":"Maximum number of results per page","name":"max_results","in":"query"},{"schema":{"type":"string","description":"Cursor for the next page of results"},"required":false,"description":"Cursor for the next page of results","name":"next_cursor","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateSearchResponse"}}}}}},"post":{"tags":["Asset Management"],"summary":"Create a template","description":"Turns an already-uploaded image into a CLDT template: a named transformation holding the transformation body (allowed for strict transformations), and the validated cld_template manifest written onto the asset. Upload the preview first with /v2605/media/uploads/sign-and-upload and reference it here by publicId or externalId — this endpoint accepts no image bytes. Returns 404 when the referenced asset does not exist, and 409 when that asset is already a template or a named transformation of this name exists with a different body.","security":[{"bearerAuth":[]}],"operationId":"createTemplate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateWriteRequest"}}}},"responses":{"201":{"description":"Template created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateWriteResponse"}}}},"400":{"description":"The request is not a valid template write: no usable name, or no cloud resolved from the token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The presented console token could not be used","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No asset was found for the publicId or externalId the request named","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The referenced asset is already a template, or the name is taken by a transformation with a different body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"An upstream step failed; the response names which steps landed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateWriteFailureResponse"}}}},"4XX":{"description":"An upstream step rejected the request; the upstream's own 4xx status is returned with the changes record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateWriteFailureResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/asset-management/templates/{name}":{"put":{"tags":["Asset Management"],"summary":"Create or replace a template","description":"Writes the named transformation, the strict flag and the cld_template manifest on the asset's context for this name. Creates what is absent, so it also completes a template left half-written by an interrupted create. Upload the preview first with /v2605/media/uploads/sign-and-upload and reference it here by publicId or externalId — this endpoint accepts no image bytes. Answers 201 when it made this asset a template and 200 when it replaced one, and 404 when the referenced asset does not exist.","security":[{"bearerAuth":[]}],"operationId":"updateTemplate","parameters":[{"schema":{"type":"string","description":"Template name — determines the named transformation this template's body lives in"},"required":true,"description":"Template name — determines the named transformation this template's body lives in","name":"name","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateUpdateRequest"}}}},"responses":{"200":{"description":"Template replaced","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateWriteResponse"}}}},"201":{"description":"Template created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateWriteResponse"}}}},"400":{"description":"The request is not a valid template write: no usable name, or no cloud resolved from the token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"The presented console token could not be used","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No asset was found for the publicId or externalId the request named","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"An upstream step failed; the response names which steps landed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateWriteFailureResponse"}}}},"4XX":{"description":"An upstream step rejected the request; the upstream's own 4xx status is returned with the changes record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateWriteFailureResponse"}}}}}}},"/v2605/asset-management/collections":{"get":{"tags":["Asset Management"],"summary":"List collections","description":"Returns all collections accessible to the caller, with optional term filter, owner_type filter, sorting, and cursor-based pagination.","security":[{"bearerAuth":[]}],"operationId":"listCollections","parameters":[{"schema":{"type":"string","description":"Sort field"},"required":false,"description":"Sort field","name":"sort_by","in":"query"},{"schema":{"type":["number","null"],"description":"Maximum number of results"},"required":false,"description":"Maximum number of results","name":"max_results","in":"query"},{"schema":{"type":"string","description":"Pagination cursor"},"required":false,"description":"Pagination cursor","name":"next_cursor","in":"query"},{"schema":{"type":"string","description":"Search term"},"required":false,"description":"Search term","name":"term","in":"query"},{"schema":{"type":"string","description":"Filter by owner type"},"required":false,"description":"Filter by owner type","name":"owner_type","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCollectionsResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}},"post":{"tags":["Asset Management"],"summary":"Create a collection","description":"Creates a new collection (classic, dynamic, or temp). Dynamic collections auto-populate based on dynamic_filters; classic collections are manually curated.","security":[{"bearerAuth":[]}],"operationId":"createCollection","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Collection name"},"kind":{"type":"string","enum":["classic","dynamic","temp"],"description":"Collection kind"},"description":{"type":"string","description":"Collection description"},"dynamic_filters":{"type":"object","additionalProperties":{},"description":"Filters for dynamic collections"}}}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCollectionResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/asset-management/collections/search":{"post":{"tags":["Asset Management"],"summary":"Search collections","description":"Search collections by term with configurable sort order, pagination, and owner_type filtering. Query is sent in the request body.","security":[{"bearerAuth":[]}],"operationId":"searchCollections","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"term":{"type":"string","description":"Search term"},"sort_by":{"type":"array","items":{"type":"object","additionalProperties":{}},"description":"Sort configuration"},"max_results":{"type":"number","description":"Maximum number of results"},"next_cursor":{"type":"string","description":"Pagination cursor"},"owner_type":{"type":"object","additionalProperties":{},"description":"Filter by owner type"}}}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchCollectionsResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/asset-management/collections/{collection_id}":{"get":{"tags":["Asset Management"],"summary":"Get a single collection with its assets","description":"Returns collection details and its contained assets. Supports asset pagination (max_results/next_cursor), sorting, and optional metadata inclusion.","security":[{"bearerAuth":[]}],"operationId":"showCollection","parameters":[{"schema":{"type":"string","description":"Collection external ID"},"required":true,"description":"Collection external ID","name":"collection_id","in":"path"},{"schema":{"type":"string","description":"Sort field"},"required":false,"description":"Sort field","name":"sort_by","in":"query"},{"schema":{"type":["number","null"],"description":"Maximum number of assets to return"},"required":false,"description":"Maximum number of assets to return","name":"max_results","in":"query"},{"schema":{"type":"string","description":"Pagination cursor"},"required":false,"description":"Pagination cursor","name":"next_cursor","in":"query"},{"schema":{"type":["boolean","null"],"description":"Include metadata"},"required":false,"description":"Include metadata","name":"with_metadata","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}},"put":{"tags":["Asset Management"],"summary":"Update a collection","description":"Updates collection properties such as name, description, or dynamic_filters. Caller must have write access.","security":[{"bearerAuth":[]}],"operationId":"updateCollection","parameters":[{"schema":{"type":"string","description":"Collection external ID"},"required":true,"description":"Collection external ID","name":"collection_id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"New collection name"},"description":{"type":"string","description":"New collection description"},"dynamic_filters":{"type":"object","additionalProperties":{},"description":"Filters for dynamic collections"}}}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCollectionResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}},"delete":{"tags":["Asset Management"],"summary":"Delete a collection","description":"Soft-deletes a collection. The collection's assets are not removed from the cloud. Caller must have write access.","security":[{"bearerAuth":[]}],"operationId":"destroyCollection","parameters":[{"schema":{"type":"string","description":"Collection external ID"},"required":true,"description":"Collection external ID","name":"collection_id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Collection"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}}},"/v2605/asset-management/collections/{collection_id}/assets":{"post":{"tags":["Asset Management"],"summary":"Add assets to a collection","description":"Adds one or more assets to an existing collection by resource_ids or external_ids. Caller must have write access to both the collection and the assets.","security":[{"bearerAuth":[]}],"operationId":"addCollectionAssets","parameters":[{"schema":{"type":"string","description":"Collection external ID"},"required":true,"description":"Collection external ID","name":"collection_id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"resource_ids":{"type":"array","items":{"type":"string"},"description":"Internal resource IDs to add"},"external_ids":{"type":"array","items":{"type":"string"},"description":"External resource IDs to add"}}}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCollectionAssetsResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}},"delete":{"tags":["Asset Management"],"summary":"Remove assets from a collection","description":"Removes one or more assets from a collection by resource_ids or external_ids. The assets themselves are not deleted.","security":[{"bearerAuth":[]}],"operationId":"removeCollectionAssets","parameters":[{"schema":{"type":"string","description":"Collection external ID"},"required":true,"description":"Collection external ID","name":"collection_id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"resource_ids":{"type":"array","items":{"type":"string"},"description":"Internal resource IDs to remove"},"external_ids":{"type":"array","items":{"type":"string"},"description":"External resource IDs to remove"}}}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveCollectionAssetsResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}}},"/v2605/asset-management/collections/{collection_id}/download":{"post":{"tags":["Asset Management"],"summary":"Download a collection as an archive","description":"Generates a ZIP archive containing all assets in the collection. Returns an archive URL or redirects to it depending on the redirect parameter.","security":[{"bearerAuth":[]}],"operationId":"downloadCollection","parameters":[{"schema":{"type":"string","description":"Collection external ID"},"required":true,"description":"Collection external ID","name":"collection_id","in":"path"},{"schema":{"type":"string","description":"Target public ID for the archive"},"required":false,"description":"Target public ID for the archive","name":"target_public_id","in":"query"},{"schema":{"type":["boolean","null"],"description":"Whether to redirect to the archive URL"},"required":false,"description":"Whether to redirect to the archive URL","name":"redirect","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadCollectionResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}}},"/v2605/asset-management/portals":{"get":{"tags":["Asset Management"],"summary":"List portals","description":"Returns all portals (branded share pages over collections) defined in the cloud.","security":[{"bearerAuth":[]}],"operationId":"listPortals","responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPortalsResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]},"post":{"tags":["Asset Management"],"summary":"Create a portal","description":"Creates a portal (branded share page), optionally pre-populated with collections via collection_ids.","security":[{"bearerAuth":[]}],"operationId":"createPortal","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Portal title"},"description":{"type":"string","description":"Portal description"},"status":{"type":"string","description":"Portal status (e.g. active)"},"privacy":{"type":"string","description":"Portal privacy setting"},"portal_url":{"type":"string","description":"Portal URL slug"},"logo":{"type":"string","description":"Portal logo"},"cover":{"type":"string","description":"Portal cover image"},"collection_ids":{"type":"array","items":{"type":"string"},"description":"Collections to include in the portal"}}}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Portal"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/asset-management/portals/{id}":{"get":{"tags":["Asset Management"],"summary":"Get a portal","description":"Returns a single portal by ID, including its included collection IDs and appearance settings.","security":[{"bearerAuth":[]}],"operationId":"showPortal","parameters":[{"schema":{"type":"string","description":"Portal ID"},"required":true,"description":"Portal ID","name":"id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Portal"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}},"put":{"tags":["Asset Management"],"summary":"Update a portal","description":"Updates portal properties such as title, privacy, status, theme, or the full set of included collections.","security":[{"bearerAuth":[]}],"operationId":"updatePortal","parameters":[{"schema":{"type":"string","description":"Portal ID"},"required":true,"description":"Portal ID","name":"id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Portal title"},"description":{"type":"string","description":"Portal description"},"portal_url":{"type":"string","description":"Portal URL slug"},"status":{"type":"string","description":"Portal status (e.g. active)"},"privacy":{"type":"string","description":"Portal privacy setting"},"cover":{"type":"string","description":"Portal cover image"},"theme":{"type":"array","items":{"type":"string"},"description":"Portal theme settings"},"collection_ids":{"type":"array","items":{"type":"string"},"description":"Collections included in the portal"},"prevent_download_original":{"type":"boolean","description":"Disallow downloading original assets from the portal"}}}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Portal"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}},"delete":{"tags":["Asset Management"],"summary":"Delete a portal","description":"Deletes a portal. The collections included in the portal are not affected.","security":[{"bearerAuth":[]}],"operationId":"deletePortal","parameters":[{"schema":{"type":"string","description":"Portal ID"},"required":true,"description":"Portal ID","name":"id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Portal"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}}},"/v2605/asset-management/portals/{id}/collections/add":{"put":{"tags":["Asset Management"],"summary":"Add collections to a portal","description":"Adds one or more collections to an existing portal by their external IDs.","security":[{"bearerAuth":[]}],"operationId":"addPortalCollections","parameters":[{"schema":{"type":"string","description":"Portal ID"},"required":true,"description":"Portal ID","name":"id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"collection_ids":{"type":"array","items":{"type":"string"},"description":"Collection external IDs to add to the portal"}},"required":["collection_ids"]}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Portal"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}}},"/v2605/asset-management/portals/{id}/collections/remove":{"put":{"tags":["Asset Management"],"summary":"Remove collections from a portal","description":"Removes one or more collections from a portal. The collections themselves are not deleted.","security":[{"bearerAuth":[]}],"operationId":"removePortalCollections","parameters":[{"schema":{"type":"string","description":"Portal ID"},"required":true,"description":"Portal ID","name":"id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"collection_ids":{"type":"array","items":{"type":"string"},"description":"Collection external IDs to remove from the portal"}},"required":["collection_ids"]}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Portal"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}}},"/v2605/asset-management/saved-searches":{"get":{"tags":["Asset Management"],"summary":"List saved searches","description":"Returns all saved searches accessible to the caller, including their filters and sharing settings.","security":[{"bearerAuth":[]}],"operationId":"listSavedSearches","responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSavedSearchesResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]},"post":{"tags":["Asset Management"],"summary":"Create a saved search","description":"Persists a named search definition (filters and query type), optionally shared with other users or groups.","security":[{"bearerAuth":[]}],"operationId":"createSavedSearch","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Saved search name"},"filters":{"type":"object","additionalProperties":{},"description":"Search filters / query definition"},"query_type":{"type":"string","enum":["search","query_search","visual_search"],"description":"Type of the underlying query"},"email_message":{"type":"string","description":"Message included when sharing by email"},"shared_with":{"type":"array","items":{"type":"object","properties":{"external_id":{"type":"string","description":"User or group external ID"},"permission":{"type":"string","description":"Permission level granted"}}},"description":"Users/groups the saved search is shared with"}}}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedSearch"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/asset-management/saved-searches/{id}":{"get":{"tags":["Asset Management"],"summary":"Get a saved search","description":"Returns a single saved search by ID, including its filters and sharing settings.","security":[{"bearerAuth":[]}],"operationId":"showSavedSearch","parameters":[{"schema":{"type":"string","description":"Saved search ID"},"required":true,"description":"Saved search ID","name":"id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedSearch"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}},"put":{"tags":["Asset Management"],"summary":"Update a saved search","description":"Updates a saved search's name, filters, query type, or sharing. Caller must have permission on the saved search.","security":[{"bearerAuth":[]}],"operationId":"updateSavedSearch","parameters":[{"schema":{"type":"string","description":"Saved search ID"},"required":true,"description":"Saved search ID","name":"id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Saved search name"},"filters":{"type":"object","additionalProperties":{},"description":"Search filters / query definition"},"query_type":{"type":"string","enum":["search","query_search","visual_search"],"description":"Type of the underlying query"},"email_message":{"type":"string","description":"Message included when sharing by email"},"shared_with":{"type":"array","items":{"type":"object","properties":{"external_id":{"type":"string","description":"User or group external ID"},"permission":{"type":"string","description":"Permission level granted"}}},"description":"Users/groups the saved search is shared with"}}}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSavedSearchResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}},"delete":{"tags":["Asset Management"],"summary":"Delete a saved search","description":"Deletes a saved search by ID. The assets matched by the search are not affected.","security":[{"bearerAuth":[]}],"operationId":"deleteSavedSearch","parameters":[{"schema":{"type":"string","description":"Saved search ID"},"required":true,"description":"Saved search ID","name":"id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedSearch"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}}},"/v2605/asset-management/upload-presets":{"get":{"tags":["Asset Management"],"summary":"List upload presets","description":"Returns upload presets configured for the product environment, with optional pagination via page and per_page.","security":[{"bearerAuth":[]}],"operationId":"listUploadPresets","parameters":[{"schema":{"type":["number","null"],"description":"Page number"},"required":false,"description":"Page number","name":"page","in":"query"},{"schema":{"type":["number","null"],"description":"Results per page"},"required":false,"description":"Results per page","name":"per_page","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListUploadPresetsResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}}},"/v2605/asset-management/{subject_type}/{subject_id}/public-links":{"get":{"tags":["Asset Management"],"summary":"List public links of an entity","description":"Returns all public share links created for the given entity. subject_type is the entity kind (e.g. collections) and subject_id its external ID.","security":[{"bearerAuth":[]}],"operationId":"listPublicLinks","parameters":[{"schema":{"type":"string","description":"Type of the shared entity (e.g. collections)"},"required":true,"description":"Type of the shared entity (e.g. collections)","name":"subject_type","in":"path"},{"schema":{"type":"string","description":"External ID of the shared entity"},"required":true,"description":"External ID of the shared entity","name":"subject_id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPublicLinksResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}},"post":{"tags":["Asset Management"],"summary":"Create a public link for an entity","description":"Creates a public share link for the given entity (e.g. a collection), optionally time-limited via start_at/end_at. Anyone with the returned URL can view the shared content.","security":[{"bearerAuth":[]}],"operationId":"createPublicLink","parameters":[{"schema":{"type":"string","description":"Type of the entity to share (e.g. collections)"},"required":true,"description":"Type of the entity to share (e.g. collections)","name":"subject_type","in":"path"},{"schema":{"type":"string","description":"External ID of the entity to share"},"required":true,"description":"External ID of the entity to share","name":"subject_id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Display name for the link"},"start_at":{"type":"string","description":"Link validity start (ISO 8601)"},"end_at":{"type":"string","description":"Link expiry (ISO 8601)"}}}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLinkResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}}},"/v2605/asset-management/{subject_type}/{subject_id}/public-links/{id}":{"put":{"tags":["Asset Management"],"summary":"Update a public link","description":"Updates a public link's name, validity window (start_at/end_at), or original-download policy.","security":[{"bearerAuth":[]}],"operationId":"updatePublicLink","parameters":[{"schema":{"type":"string","description":"Type of the shared entity (e.g. collections)"},"required":true,"description":"Type of the shared entity (e.g. collections)","name":"subject_type","in":"path"},{"schema":{"type":"string","description":"External ID of the shared entity"},"required":true,"description":"External ID of the shared entity","name":"subject_id","in":"path"},{"schema":{"type":"string","description":"Public link ID"},"required":true,"description":"Public link ID","name":"id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Display name for the link"},"start_at":{"type":"string","description":"Link validity start (ISO 8601)"},"end_at":{"type":"string","description":"Link expiry (ISO 8601)"},"prevent_download_original":{"type":"boolean","description":"Disallow downloading original assets through the link"}}}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLinkResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}},"delete":{"tags":["Asset Management"],"summary":"Revoke a public link","description":"Deletes a public link. The shared URL stops working immediately; the underlying entity is not affected.","security":[{"bearerAuth":[]}],"operationId":"deletePublicLink","parameters":[{"schema":{"type":"string","description":"Type of the shared entity (e.g. collections)"},"required":true,"description":"Type of the shared entity (e.g. collections)","name":"subject_type","in":"path"},{"schema":{"type":"string","description":"External ID of the shared entity"},"required":true,"description":"External ID of the shared entity","name":"subject_id","in":"path"},{"schema":{"type":"string","description":"Public link ID"},"required":true,"description":"Public link ID","name":"id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletePublicLinkResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}}},"/v2605/media/uploads/prepare":{"post":{"tags":["Media"],"operationId":"prepareUpload","summary":"Prepare and sign upload parameters","security":[{"bearerAuth":[]}],"description":"Signs the provided upload parameters and returns a signature, api_key, and upload host. Use the returned credentials in a subsequent upload request. Requires Console authentication.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareUploadRequest"}}}},"responses":{"200":{"description":"Signed upload parameters with api_key, signature, and upload host","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareUploadResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/media/uploads/sign-and-upload":{"post":{"tags":["Media"],"summary":"Sign and upload an asset in one step","description":"Combines parameter signing and file upload into a single request. The gateway signs via Console API internally, then proxies the upload to Cloudinary. Accepts multipart/form-data (binary file) or application/json (URL or base64 data URI). Requires Console authentication.","security":[{"bearerAuth":[]}],"operationId":"signAndUpload","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"The binary file to upload"},"resource_type":{"type":"string","description":"The type of resource (image, video, raw, auto). Defaults to auto"},"public_id":{"type":"string","description":"Custom public identifier for the uploaded asset"},"folder":{"type":"string","description":"Folder name where the file should be stored"},"asset_folder":{"type":"string","description":"Asset folder path in the Cloudinary repository"},"tags":{"type":"string","description":"Comma-separated list of tags"},"type":{"type":"string","description":"Storage/delivery type (upload, private, authenticated)"},"overwrite":{"type":"string","description":"Whether to overwrite an existing asset (true/false)"},"invalidate":{"type":"string","description":"Whether to invalidate CDN cache (true/false)"},"context":{"type":"string","description":"Pipe-separated contextual metadata"},"metadata":{"type":"string","description":"Pipe-separated structured metadata"},"transformation":{"type":"string","description":"Transformation to apply on upload"},"format":{"type":"string","description":"Format to convert to"},"eager":{"type":"string","description":"Eager transformations to generate"},"eager_async":{"type":"string","description":"Whether to generate eager transformations asynchronously (true/false)"},"eager_notification_url":{"type":"string","description":"Webhook URL for eager transformation completion"},"notification_url":{"type":"string","description":"Webhook URL for upload completion"},"display_name":{"type":"string","description":"Display name for the asset"},"use_filename":{"type":"string","description":"Use original filename as public_id (true/false)"},"unique_filename":{"type":"string","description":"Append random characters to filename (true/false)"},"filename_override":{"type":"string","description":"Override the original filename metadata"},"access_mode":{"type":"string","description":"Access mode (public, authenticated)"},"discard_original_filename":{"type":"string","description":"Whether to discard original filename (true/false)"},"phash":{"type":"string","description":"Whether to return perceptual hash (true/false)"},"async":{"type":"string","description":"Whether to perform upload asynchronously (true/false)"}}}},"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"The file to upload - URL, base64 data URI, or remote file path"},"resource_type":{"type":"string","description":"The type of resource (image, video, raw, auto). Defaults to auto"},"public_id":{"type":"string","description":"Custom public identifier for the uploaded asset"},"folder":{"type":"string","description":"Folder name where the file should be stored"},"asset_folder":{"type":"string","description":"Asset folder path in the Cloudinary repository"},"tags":{"type":"array","items":{"type":"string"},"description":"Tag names to assign to the asset"},"type":{"type":"string","description":"Storage/delivery type (upload, private, authenticated)"},"overwrite":{"type":"boolean","description":"Whether to overwrite an existing asset with the same public ID"},"invalidate":{"type":"boolean","description":"Whether to invalidate CDN cache"},"context":{"type":"object","additionalProperties":{"type":"string"},"description":"Contextual metadata as key-value pairs"},"metadata":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}}]},"description":"Structured metadata keyed by field external_id"},"transformation":{"type":"string","description":"Transformation to apply on upload"},"format":{"type":"string","description":"Format to convert to"},"eager":{"type":"string","description":"Eager transformations to generate"},"eager_async":{"type":"boolean","description":"Whether to generate eager transformations asynchronously"},"eager_notification_url":{"type":"string","description":"Webhook URL for eager transformation completion"},"notification_url":{"type":"string","description":"Webhook URL for upload completion"},"display_name":{"type":"string","description":"Display name for the asset"},"use_filename":{"type":"boolean","description":"Use original filename as public_id"},"unique_filename":{"type":"boolean","description":"Append random characters to filename"},"filename_override":{"type":"string","description":"Override the original filename metadata"},"access_mode":{"type":"string","description":"Access mode (public, authenticated)"},"discard_original_filename":{"type":"boolean","description":"Whether to discard original filename"},"phash":{"type":"boolean","description":"Whether to return perceptual hash"},"async":{"type":"boolean","description":"Whether to perform upload asynchronously"}},"required":["file"]}}}},"responses":{"200":{"description":"Asset uploaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignAndUploadResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/media/uploads/{resource_type}":{"post":{"tags":["Media"],"summary":"Upload an asset with a pre-signed signature","description":"Uploads a file to Cloudinary using a signature and api_key obtained from the prepare endpoint. Accepts multipart/form-data (binary file) or application/json (URL or base64 data URI). Requires OAuth authentication.","security":[{"bearerAuth":[]}],"operationId":"uploadAsset","parameters":[{"schema":{"type":"string","description":"The resource type (image, video, raw, auto)"},"required":true,"description":"The resource type (image, video, raw, auto)","name":"resource_type","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","required":["file","signature","api_key"],"properties":{"file":{"type":"string","format":"binary","description":"The binary file to upload"},"signature":{"type":"string","description":"The authentication signature for the upload request"},"api_key":{"type":"string","description":"The API key for authentication"},"timestamp":{"type":"string","description":"Unix timestamp for signature validation"},"public_id":{"type":"string","description":"Custom public identifier for the uploaded asset"},"folder":{"type":"string","description":"Folder name where the file should be stored"},"tags":{"type":"string","description":"Comma-separated list of tags"},"type":{"type":"string","description":"Storage/delivery type (upload, private, authenticated)"},"resource_type":{"type":"string","description":"The type of resource (image, video, raw, auto)"},"overwrite":{"type":"string","description":"Whether to overwrite an existing asset (true/false)"},"invalidate":{"type":"string","description":"Whether to invalidate CDN cache (true/false)"},"context":{"type":"string","description":"Pipe-separated contextual metadata"},"metadata":{"type":"string","description":"Pipe-separated structured metadata"},"transformation":{"type":"string","description":"Transformation to apply on upload"},"format":{"type":"string","description":"Format to convert to"},"eager":{"type":"string","description":"Eager transformations to generate"},"async":{"type":"string","description":"Whether to generate eager transformations asynchronously (true/false)"}}}},"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"The file to upload - URL, base64 data URI, or remote file path"},"signature":{"type":"string","description":"The authentication signature for the upload request"},"api_key":{"type":"string","description":"The API key for authentication"},"timestamp":{"type":"integer","description":"Unix timestamp for signature validation"},"public_id":{"type":"string","description":"Custom public identifier for the uploaded asset"},"folder":{"type":"string","description":"Folder name where the file should be stored"},"tags":{"type":"string","description":"Comma-separated list of tags"},"type":{"type":"string","description":"Storage/delivery type (upload, private, authenticated)"},"resource_type":{"type":"string","description":"The type of resource (image, video, raw, auto)"},"overwrite":{"type":"boolean","description":"Whether to overwrite an existing asset with the same public ID"},"invalidate":{"type":"boolean","description":"Whether to invalidate CDN cache"},"context":{"type":"string","description":"Pipe-separated contextual metadata"},"metadata":{"type":"string","description":"Pipe-separated structured metadata"},"transformation":{"type":"string","description":"Transformation to apply on upload"},"format":{"type":"string","description":"Format to convert to"},"eager":{"type":"string","description":"Eager transformations to generate"},"async":{"type":"boolean","description":"Whether to generate eager transformations asynchronously"}},"required":["file","signature","api_key"]}}}},"responses":{"200":{"description":"Asset uploaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadAssetResponse"}}}},"400":{"description":"Missing upload signature","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2605/media/analysis/ai-vision":{"post":{"tags":["Media"],"summary":"Generate AI Vision analysis (e.g. alt text) for an asset","description":"Proxies the public Cloudinary AI Vision Analyze API with the caller's OAuth token. Provide a source (uri or asset_id) and prompts; returns the model's responses. Requires the AI Vision add-on.","security":[{"bearerAuth":[]}],"operationId":"analyzeAiVisionGeneral","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"object","properties":{"uri":{"type":"string","description":"Public URL of the asset to analyze"},"asset_id":{"type":"string","description":"Cloudinary asset_id of the asset to analyze"}},"description":"The asset to analyze — provide either uri or asset_id"},"prompts":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":10,"description":"1–10 prompts for the AI Vision model (e.g. an alt-text instruction)"},"async":{"type":"boolean","description":"Run asynchronously and return a task_id to poll"},"notification_url":{"type":"string","description":"Webhook to notify when an async job completes"}},"required":["source","prompts"]}}}},"responses":{"200":{"description":"AI Vision analysis result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiVisionGeneralResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/media/analysis/captioning":{"post":{"tags":["Media"],"summary":"Generate a caption for an asset","description":"Runs captioning on the image identified by asset_id and returns its caption with a status. Only images are captioned: any other asset returns caption and status null. The caption is stored as the asset's analysis result, so calling again for an unchanged asset returns the stored caption without captioning it again. A pending status means captioning was scheduled to retry in the background; call again later for the caption. A failed captioning answers 502. Requires the AI Content Analysis add-on (420 without it) and Console authentication.","security":[{"bearerAuth":[]}],"operationId":"captionAsset","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"asset_id":{"type":"string","minLength":1,"description":"External ID (asset_id) of the asset to caption"}},"required":["asset_id"]}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptionAssetResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"description":"No asset with this asset_id in the request's cloud","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleErrorResponse"}}}},"420":{"description":"The cloud has no active AI Content Analysis subscription","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsoleErrorResponse"}}}},"502":{"description":"Captioning failed, or the analysis returned a captioning status the gateway does not know","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/media/thumbnails/token":{"post":{"tags":["Media"],"operationId":"createThumbnailToken","summary":"Generate a time-limited thumbnail access token","security":[{"bearerAuth":[]}],"description":"Creates a short-lived token for authenticating thumbnail delivery requests. The token validity period defaults to the server setting but can be overridden with valid_for (in seconds).","parameters":[{"schema":{"type":"number"},"required":false,"name":"valid_for","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful authentication response with user identity and permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbnailsTokenResponse"}}}}}}},"/v2605/media/thumbnails/{resource_type}/{type}/{version}/{variant}":{"get":{"tags":["Media"],"summary":"Fetch a rendered thumbnail for an asset","description":"Returns a pre-rendered thumbnail image for an asset in the specified variant (e.g. grid, preview, drilldown). Variant controls dimensions and format. If no token query param is provided, one is auto-generated.","security":[{"bearerAuth":[]}],"operationId":"getThumbnail","parameters":[{"schema":{"type":"string","pattern":"^[a-z0-9_]{1,64}$","description":"Resource type, e.g. image, video or raw"},"required":true,"description":"Resource type, e.g. image, video or raw","name":"resource_type","in":"path"},{"schema":{"type":"string","pattern":"^[a-z0-9_]{1,64}$","description":"Delivery type, e.g. upload, private or authenticated"},"required":true,"description":"Delivery type, e.g. upload, private or authenticated","name":"type","in":"path"},{"schema":{"type":"string"},"required":true,"name":"version","in":"path"},{"schema":{"type":"string","pattern":"^[a-z0-9_]{1,64}$","description":"Thumbnail variant, e.g. grid, preview, as_is or three_d"},"required":true,"description":"Thumbnail variant, e.g. grid, preview, as_is or three_d","name":"variant","in":"path"},{"schema":{"type":"string"},"required":true,"name":"public_id","in":"query"},{"schema":{"type":"string"},"required":false,"name":"token","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Thumbnail image binary","content":{"image/jpeg":{"schema":{"type":"string"}}}},"400":{"description":"Bad request - missing cloud name, or a malformed resource_type, type or variant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorWithMessageResponse"}}}},"502":{"description":"Upstream thumbnail service error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorWithMessageResponse"}}}}}}},"/v2605/media/fonts/lookup":{"post":{"tags":["Media"],"summary":"Look up font availability","description":"Checks whether each requested font is available as a Cloudinary system font or a Google Web Font. Returns resolution status and source for each font declaration.","security":[{"bearerAuth":[]}],"operationId":"lookupFont","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"fonts":{"type":"array","items":{"type":"object","properties":{"family":{"type":"string","minLength":1},"weight":{"type":"string","enum":["normal","bold","100","200","300","400","500","600","700","800","900"]},"style":{"type":"string","enum":["normal","italic"]}},"required":["family","weight","style"]}}},"required":["fonts"]}}}},"responses":{"200":{"description":"Fonts lookup successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontLookupResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/media/fonts/provision":{"post":{"tags":["Media"],"summary":"Provision fonts into the cloud","description":"Resolves fonts against Cloudinary system fonts and Google Web Fonts, then uploads any Google-sourced fonts to the cloud (optionally into a target folder). Returns resolution details for each font. Requires OAuth authentication.","security":[{"bearerAuth":[]}],"operationId":"provisionFont","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"fonts":{"type":"array","items":{"type":"object","properties":{"family":{"type":"string","minLength":1},"weight":{"type":"string","enum":["normal","bold","100","200","300","400","500","600","700","800","900"]},"style":{"type":"string","enum":["normal","italic"]}},"required":["family","weight","style"]}},"folder":{"type":"string"}},"required":["fonts"]}}}},"responses":{"200":{"description":"Fonts lookup successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontProvisioningResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/media/fonts/google/web-fonts":{"get":{"tags":["Media"],"summary":"List all available Google Web Fonts","description":"Returns the full catalog of Google Web Fonts including font family name, available variants (weights/styles), and supported character subsets.","operationId":"listGoogleFonts","responses":{"200":{"description":"Fonts lookup successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleFontListingResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2605/platform/auth/credentials":{"get":{"tags":["Platform"],"operationId":"getAuthCredentials","summary":"Get current user and cloud identity","security":[{"bearerAuth":[]}],"description":"Returns the authenticated user profile and associated customer (cloud) record. Use to confirm session identity and cloud context.","responses":{"200":{"description":"Successful authentication response with user identity and permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthCredentialsResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/platform/auth/tokens/validate":{"get":{"tags":["Platform"],"summary":"Validate a gateway token","description":"Verifies that the provided API gateway bearer token is well-formed, correctly signed, and not expired. Returns {ok: 1} on success, a 401 for a bad or expired token, a 400 for a missing or conflicting cloud selector, or a 503 when the token could not be checked (retry). The reason for a failure is logged, not returned.","security":[{"bearerAuth":[]}],"operationId":"validateToken","responses":{"200":{"description":"Token is valid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateTokenResponse"}}}},"400":{"description":"Bad request, e.g. an account-level session without a cloud selector, or conflicting selectors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Invalid or expired token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The token could not be checked (session store or identity provider failing); retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/platform/auth/tokens/cloudinary/{type}/refresh":{"get":{"tags":["Platform"],"summary":"Refresh a Cloudinary token","description":"Exchanges the current gateway bearer token for a fresh underlying Cloudinary token of the specified type (oauth or console). Returns a 401 and invalidates the session if the grant can no longer be refreshed, or a 503 (session kept, retry) when the identity provider or session store is failing. Refreshing a `console` token is deprecated: console tokens will not be refreshable, so refresh the `oauth` token instead. Console refresh responses carry `Deprecation: true` and a `Warning` header.","security":[{"bearerAuth":[]}],"operationId":"refreshCloudinaryToken","parameters":[{"schema":{"type":"string","enum":["oauth","console"],"description":"Token type to refresh. `console` is deprecated: console tokens will not be refreshable, use `oauth`."},"required":true,"description":"Token type to refresh. `console` is deprecated: console tokens will not be refreshable, use `oauth`.","name":"type","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","headers":{"Deprecation":{"schema":{"type":"string","description":"`true` when refreshing a `console` token, which is deprecated."},"required":false,"description":"`true` when refreshing a `console` token, which is deprecated."},"Warning":{"schema":{"type":"string","description":"Deprecation notice when refreshing a `console` token."},"required":false,"description":"Deprecation notice when refreshing a `console` token."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenResponse"}}}},"401":{"description":"Invalid or expired session","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenErrorResponse"}}}},"503":{"description":"The identity provider or session store is failing; the session is kept, retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenErrorResponse"}}}}}}},"/v2605/platform/customers":{"get":{"tags":["Platform"],"summary":"List customers (clouds) accessible to the user","security":[{"bearerAuth":[]}],"operationId":"listCustomers","description":"Returns all Cloudinary customer accounts the authenticated user has access to. Supports filtering by name, cloud_name, and product, with configurable sorting.","parameters":[{"schema":{"type":"string"},"required":false,"name":"name_contains","in":"query"},{"schema":{"type":"string"},"required":false,"name":"cloud_name","in":"query"},{"schema":{"type":"string"},"required":false,"name":"product","in":"query"},{"schema":{"type":"string","enum":["display_name","created_at"]},"required":false,"name":"sort_by","in":"query"},{"schema":{"type":"string","enum":["asc","desc"]},"required":false,"name":"sort_order","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomersResponse"}}}}}}},"/v2605/platform/customers/by-cloud/{cloud_name}":{"get":{"tags":["Platform"],"summary":"Get a customer by cloud name","description":"Looks up a specific customer record by its Cloudinary cloud_name. Returns the full customer object or null if not found.","security":[{"bearerAuth":[]}],"operationId":"getCustomerByCloud","parameters":[{"schema":{"type":"string"},"required":true,"name":"cloud_name","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}}}}},"/v2605/platform/analytics":{"post":{"tags":["Platform"],"operationId":"trackAnalyticsEvent","summary":"Submit analytics events","description":"Accepts a batch of client-side analytics events for server-side processing and forwarding. Each event is an opaque JSON object; the gateway enriches events with IP and user-agent before logging.","security":[{"basicAuth":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"events":{"type":"array","items":{}}},"required":["events"]}}}},"responses":{"200":{"description":"Analytics events successfully processed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsResponse"}}}},"400":{"description":"Bad request - invalid event data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorWithMessageResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorWithMessageResponse"}}}}}}},"/v2605/platform/users":{"get":{"tags":["Platform"],"summary":"List users","description":"Returns the users of the product environment with pagination and sorting. Useful for resolving user identities (e.g. in asset history) and adoption reporting.","security":[{"bearerAuth":[]}],"operationId":"listUsers","parameters":[{"schema":{"type":["number","null"],"description":"Page number"},"required":false,"description":"Page number","name":"page","in":"query"},{"schema":{"type":["number","null"],"description":"Results per page"},"required":false,"description":"Results per page","name":"page_size","in":"query"},{"schema":{"type":"string","description":"Sort field"},"required":false,"description":"Sort field","name":"sort_by","in":"query"},{"schema":{"type":"string","description":"Sort direction (asc/desc)"},"required":false,"description":"Sort direction (asc/desc)","name":"sort_order","in":"query"},{"schema":{"type":["boolean","null"],"description":"Include deleted users"},"required":false,"description":"Include deleted users","name":"with_deleted","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListUsersResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}}},"/v2605/platform/permissions/check":{"post":{"tags":["Platform"],"summary":"Check whether the caller holds features","description":"Returns, for each requested feature (e.g. cld::global::named_transformations::create), whether the authenticated user holds it. The scope defaults to the request's product environment (scope_type prodenv, scope_id its external ID); pass scope_id to check another product environment, or scope_type account to check the caller's account (no scope_id).","security":[{"bearerAuth":[]}],"operationId":"checkFeaturePermissions","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"features":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"description":"Feature identifiers to check, e.g. cld::global::named_transformations::create"},"scope_type":{"type":"string","enum":["prodenv","account"],"description":"Scope the features are checked in: a product environment, or the caller's account. Defaults to prodenv"},"scope_id":{"type":"string","description":"External ID of the product environment. Defaults to the request's cloud. Not used for the account scope"}},"required":["features"]}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckFeaturePermissionsResponse"}}}},"400":{"description":"A prodenv check with no scope_id, and none could be taken from the request's cloud","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"502":{"description":"The upstream answer carried no permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/platform/billing/addons":{"get":{"tags":["Platform"],"summary":"List billing addons","description":"Returns all billable addons (features) from Multi-Product Billing for the authenticated account.","security":[{"bearerAuth":[]}],"operationId":"listBillingAddons","responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAddonsResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/platform/reports/dashboard/{variant}":{"get":{"tags":["Platform"],"summary":"Get dashboard report data","description":"Returns cloud-level dashboard data for the requested variant (e.g. usage and delivery trend widgets). The variant string and the shape of data/items are defined by the upstream reporting service.","security":[{"bearerAuth":[]}],"operationId":"getDashboardData","parameters":[{"schema":{"type":"string","description":"Dashboard data variant to fetch"},"required":true,"description":"Dashboard data variant to fetch","name":"variant","in":"path"},{"schema":{"type":"string","description":"Time range for the data"},"required":false,"description":"Time range for the data","name":"timespan","in":"query"},{"schema":{"type":["number","null"],"description":"Maximum number of items"},"required":false,"description":"Maximum number of items","name":"max_results","in":"query"},{"schema":{"type":"string","description":"Sort field"},"required":false,"description":"Sort field","name":"sort_by","in":"query"},{"schema":{"type":"string","description":"Serialized filters"},"required":false,"description":"Serialized filters","name":"filters","in":"query"},{"schema":{"type":"string","description":"Trim response attributes"},"required":false,"description":"Trim response attributes","name":"only","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardDataResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}}}}},"/v2605/platform/apps/storage/{namespace_token}/{level}/{key}":{"get":{"tags":["Platform"],"summary":"Get a value from app persistent storage","description":"Retrieves a previously stored JSON value by key. Storage is namespaced by a validated namespace_token path segment. Personal level is scoped to the user; shared level is scoped to the customer (cloud). Requires OAuth authentication.","security":[{"bearerAuth":[]}],"operationId":"getAppStorageValue","parameters":[{"schema":{"type":"string","description":"Encrypted namespace token minted via the namespace-token endpoint"},"required":true,"description":"Encrypted namespace token minted via the namespace-token endpoint","name":"namespace_token","in":"path"},{"schema":{"type":"string","enum":["personal","shared"],"description":"Storage level: personal (user-scoped) or shared (customer-scoped)"},"required":true,"description":"Storage level: personal (user-scoped) or shared (customer-scoped)","name":"level","in":"path"},{"schema":{"type":"string","description":"User-defined key name"},"required":true,"description":"User-defined key name","name":"key","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Value retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppStorageGetResponse"}}}},"400":{"description":"Invalid namespace_token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppStorageErrorResponse"}}}},"404":{"description":"Key not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppStorageErrorResponse"}}}}}},"put":{"tags":["Platform"],"summary":"Set a value in app persistent storage","description":"Stores an arbitrary JSON value under the specified key. Storage is namespaced by a validated namespace_token path segment. Personal level: any user can write. Shared level: only admins (master_admin role) can write. Requires OAuth authentication.","security":[{"bearerAuth":[]}],"operationId":"setAppStorageValue","parameters":[{"schema":{"type":"string","description":"Encrypted namespace token minted via the namespace-token endpoint"},"required":true,"description":"Encrypted namespace token minted via the namespace-token endpoint","name":"namespace_token","in":"path"},{"schema":{"type":"string","enum":["personal","shared"],"description":"Storage level: personal (user-scoped) or shared (customer-scoped)"},"required":true,"description":"Storage level: personal (user-scoped) or shared (customer-scoped)","name":"level","in":"path"},{"schema":{"type":"string","description":"User-defined key name"},"required":true,"description":"User-defined key name","name":"key","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"description":"Arbitrary JSON value to store"}}}}}},"responses":{"200":{"description":"Value stored successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppStorageSetResponse"}}}},"400":{"description":"Invalid namespace_token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppStorageSetErrorResponse"}}}},"403":{"description":"Forbidden - only admins can write to shared storage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppStorageSetErrorResponse"}}}}}}},"/v2605/platform/apps/storage/namespace-token":{"post":{"tags":["Platform"],"security":[{"bearerAuth":[]}],"operationId":"createNamespaceToken","summary":"Create a namespace token for shared app storage","description":"Mints an encrypted namespace token for app storage. Pass the token as the namespace_token path segment on get/set endpoints. Requires the mint secret.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"namespace":{"type":"string","minLength":1,"description":"Sharing key for storage shared between apps"},"secret":{"type":"string","maxLength":256,"description":"Secret required to mint namespace tokens"}},"required":["namespace","secret"]}}}},"responses":{"200":{"description":"Namespace token created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NamespaceTokenCreateResponse"}}}},"403":{"description":"Invalid mint secret","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NamespaceTokenCreateErrorResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/v2605/platform/apps/{app_id}/deploy":{"post":{"tags":["Platform"],"summary":"Deploy a DAM app bundle","description":"deploy a DAM app to https://apps.cloudinary.com/{app_id}/{env}/{version}/ and optionally updates the app's appUrl and manifest from cloudinary.app.json in the bundle.","security":[{"bearerAuth":[]}],"operationId":"deployApp","parameters":[{"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$","description":"DAM app ID (CustomAction id)"},"required":true,"description":"DAM app ID (CustomAction id)","name":"app_id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","required":["bundle","env","version"],"properties":{"bundle":{"type":"string","format":"binary","description":"Zip archive of the built app"},"env":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$","description":"Target environment (e.g. development, staging, production)"},"version":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$","description":"Semver version string, e.g. 1.2.3"},"update_app_url":{"type":"string","description":"\"true\" to update appUrl and manifest (from cloudinary.app.json in the bundle) in dam_apps after successful deploy"}}}}}},"responses":{"200":{"description":"Deploy succeeded","content":{"application/json":{"schema":{"type":"object","properties":{"deployed_url":{"type":"string"},"app_url":{"type":"string"},"app_url_updated":{"type":"boolean"}},"required":["deployed_url","app_url","app_url_updated"]}}}},"207":{"description":"Deploy succeeded but appUrl update failed","content":{"application/json":{"schema":{"type":"object","properties":{"deployed_url":{"type":"string"},"app_url":{"type":"string"},"app_url_updated":{"type":"boolean"},"error":{"type":"string"}},"required":["deployed_url","app_url","app_url_updated","error"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"Not allowed to administer the app","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"App not found","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"Deploy failure","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Could not check access to the app, try again later","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/v2605/platform/apps/{app_id}":{"get":{"tags":["Platform"],"summary":"Get a DAM app","description":"Returns custom action metadata for a DAM app by ID from the Custom Actions service.","security":[{"bearerAuth":[]}],"operationId":"getApp","parameters":[{"schema":{"type":"string","description":"DAM app ID (CustomAction id)"},"required":true,"description":"DAM app ID (CustomAction id)","name":"app_id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"DAM app metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppResponse"}}}},"403":{"description":"Not allowed to read the app","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}},"404":{"description":"App not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}},"500":{"description":"Failed to fetch app","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}},"503":{"description":"Could not check access to the app, try again later","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}}}},"put":{"tags":["Platform"],"summary":"Update DAM app configuration","description":"Updates app configuration fields for a DAM app. Currently supports appUrl and manifest.","security":[{"bearerAuth":[]}],"operationId":"updateApp","parameters":[{"schema":{"type":"string","description":"DAM app ID (CustomAction id)"},"required":true,"description":"DAM app ID (CustomAction id)","name":"app_id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"appUrl":{"type":"string","format":"uri","description":"Remote URL loaded when the custom action is triggered"},"manifest":{"type":["object","null"],"additionalProperties":{},"description":"cloudinary.app.json manifest; null or {} to auto-fetch from appUrl"}}}}}},"responses":{"200":{"description":"Updated DAM app metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}},"403":{"description":"Not allowed to administer the app","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}},"404":{"description":"App not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}},"422":{"description":"Invalid configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}},"500":{"description":"Update failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}},"503":{"description":"Could not check access to the app, try again later","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}}}}},"/v2605/platform/apps/{app_id}/ci-link":{"put":{"tags":["Platform"],"summary":"Link a GitHub repository to a DAM app for CI deploys","description":"Lets GitHub Actions jobs that match the rule deploy this app and update its configuration, authenticated by their GitHub OIDC token instead of a stored secret. The request must carry a gateway token from a fresh login: its session's grant moves to the link (CI acts as the caller from then on) and the token stops working. Linking again replaces the rule and the grant, which is also how a broken link is repaired.","security":[{"bearerAuth":[]}],"operationId":"putAppCiLink","parameters":[{"schema":{"type":"string","description":"DAM app ID (CustomAction id)"},"required":true,"description":"DAM app ID (CustomAction id)","name":"app_id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["github"],"description":"The CI whose OIDC tokens the link trusts. Only GitHub Actions today."},"repository":{"type":"string","pattern":"^[\\w.-]+\\/[\\w.-]+$","description":"GitHub repository as owner/name, e.g. CloudinaryLtd/my-app"},"repository_owner_id":{"anyOf":[{"type":"string","pattern":"^\\d+$"},{"type":"integer","exclusiveMinimum":0}],"description":"Numeric id of the repository owner (user or organization). GitHub never reassigns it."},"ref":{"type":"string","minLength":1,"description":"Only jobs for this ref, e.g. refs/heads/main"},"event_name":{"type":"string","minLength":1,"description":"Only jobs triggered by this event, e.g. push or pull_request"},"environment":{"type":"string","minLength":1,"description":"Only jobs that declare this GitHub deployment environment"}},"required":["provider","repository","repository_owner_id"]}}}},"responses":{"200":{"description":"The link","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CiLink"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}},"401":{"description":"Session expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}},"403":{"description":"Not allowed to administer the app","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}},"404":{"description":"App or link not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}},"503":{"description":"Could not check access to the app, try again later","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}}}},"get":{"tags":["Platform"],"summary":"Show a DAM app's CI link","description":"The GitHub Actions jobs this app trusts, and whether the grant behind the link still works.","security":[{"bearerAuth":[]}],"operationId":"getAppCiLink","parameters":[{"schema":{"type":"string","description":"DAM app ID (CustomAction id)"},"required":true,"description":"DAM app ID (CustomAction id)","name":"app_id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"The link","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CiLink"}}}},"403":{"description":"Not allowed to administer the app","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}},"404":{"description":"App or link not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}},"503":{"description":"Could not check access to the app, try again later","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}}}},"delete":{"tags":["Platform"],"summary":"Remove a DAM app's CI link","description":"GitHub Actions jobs can no longer deploy the app. The grant the link held is dropped.","security":[{"bearerAuth":[]}],"operationId":"deleteAppCiLink","parameters":[{"schema":{"type":"string","description":"DAM app ID (CustomAction id)"},"required":true,"description":"DAM app ID (CustomAction id)","name":"app_id","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"204":{"description":"Removed"},"403":{"description":"Not allowed to administer the app","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}},"404":{"description":"App or link not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}},"503":{"description":"Could not check access to the app, try again later","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DamAppErrorResponse"}}}}}}},"/cloudinary/console/folders/subfolders":{"get":{"tags":["Console"],"operationId":"deprecated_get_cloudinary_console_folders_subfolders","summary":"Lists folders in path","security":[{"bearerAuth":[]}],"deprecated":true,"parameters":[{"schema":{"type":"string"},"required":false,"name":"parent_path","in":"query"},{"schema":{"type":"string"},"required":false,"name":"external_id","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"max_results","in":"query"},{"schema":{"type":"string","default":""},"required":false,"name":"next_cursor","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSubfoldersResponse"}}}}}}},"/cloudinary/console/folders":{"post":{"tags":["Console"],"operationId":"deprecated_post_cloudinary_console_folders","summary":"Creates a new subfolder under the specified parent folder, or under root if no parent is given.2","security":[{"bearerAuth":[]}],"deprecated":true,"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"parent_id":{"type":"string"},"name":{"type":"string"}},"required":["name"]}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFolderResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/cloudinary/console/folders/{id}":{"delete":{"tags":["Console"],"operationId":"deprecated_delete_cloudinary_console_folders__id","summary":"Deletes a folder by its external ID. Fails upstream if the folder still contains assets.","security":[{"bearerAuth":[]}],"deprecated":true,"parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"},{"schema":{"type":"boolean"},"required":false,"name":"delete_resources","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteFolderResponse"}}}}}}},"/cloudinary/console/auth/credentials":{"get":{"tags":["Console"],"operationId":"deprecated_get_cloudinary_console_auth_credentials","summary":"Get current user and cloud credentials","security":[{"bearerAuth":[]}],"deprecated":true,"responses":{"200":{"description":"Successful authentication response with user identity and permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthCredentialsResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/cloudinary/console/auth/prepare_upload":{"post":{"tags":["Console"],"operationId":"deprecated_post_cloudinary_console_auth_prepare_upload","summary":"Prepare and sign upload parameters","security":[{"bearerAuth":[]}],"deprecated":true,"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareUploadRequest"}}}},"responses":{"200":{"description":"Signed upload parameters with api_key, signature, and upload host","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareUploadResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/cloudinary/console/auth/thumbnails_token":{"post":{"tags":["Console"],"operationId":"deprecated_post_cloudinary_console_auth_thumbnails_token","summary":"Get thumbnail token","security":[{"bearerAuth":[]}],"deprecated":true,"parameters":[{"schema":{"type":"number"},"required":false,"name":"valid_for","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful authentication response with user identity and permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbnailsTokenResponse"}}}}}}},"/cloudinary/console/autocomplete":{"get":{"tags":["Console"],"operationId":"deprecated_get_cloudinary_console_autocomplete","summary":"Autocomplete for assets, folders, collections tags and metadata-field-options search","description":"\"assets\", \"collections\", \"folders\", \"tags\" and \"metadata_field_options\" value specifies the maximum number of results to return. If one of the params is not passed, autocomplete results for that type are not returned.","security":[{"bearerAuth":[]}],"deprecated":true,"parameters":[{"schema":{"type":"string"},"required":true,"name":"term","in":"query"},{"schema":{"type":"string","enum":["image","javascript","css","video","raw","any"]},"required":false,"name":"resource_type","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"assets","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"collections","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"folders","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"tags","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"users","in":"query"},{"schema":{"type":"boolean"},"required":false,"name":"with_deleted_users","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"user_groups","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"metadata_field_options","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutocompleteResponse"}}}}}}},"/cloudinary/console/search":{"post":{"tags":["Console"],"summary":"Search resources","description":"Search for assets using Cloudinary's search expression language","security":[{"bearerAuth":[]}],"deprecated":true,"operationId":"deprecated_post_cloudinary_console_search","parameters":[{"schema":{"type":"string"},"required":true,"name":"expression","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"max_results","in":"query"},{"schema":{"type":"string"},"required":false,"name":"next_cursor","in":"query"},{"schema":{"type":"string"},"required":false,"name":"sort_by","in":"query"},{"schema":{"type":"string","enum":["relational","elastic","clip","clip_text","clip_url"]},"required":false,"name":"backend","in":"query"},{"schema":{"type":"string"},"required":false,"name":"_aggregate","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSearchResponse"}}}}}}},"/cloudinary/console/customers":{"get":{"tags":["Console"],"summary":"Lists customers","security":[{"bearerAuth":[]}],"deprecated":true,"operationId":"deprecated_get_cloudinary_console_customers","parameters":[{"schema":{"type":"string"},"required":false,"name":"name_contains","in":"query"},{"schema":{"type":"string"},"required":false,"name":"cloud_name","in":"query"},{"schema":{"type":"string"},"required":false,"name":"product","in":"query"},{"schema":{"type":"string","enum":["display_name","created_at"]},"required":false,"name":"sort_by","in":"query"},{"schema":{"type":"string","enum":["asc","desc"]},"required":false,"name":"sort_order","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomersResponse"}}}}}}},"/cloudinary/console/operations/download":{"post":{"tags":["Console"],"summary":"Downloads a resource","description":"Downloads a resource by external_id, id, or public_id. If id or public_id is provided, it will be translated to external_id.","security":[{"bearerAuth":[]}],"deprecated":true,"operationId":"deprecated_post_cloudinary_console_operations_download","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"external_id":{"type":"string"},"public_id":{"type":"string"},"target_filename":{"type":"string"},"transformation":{"type":"string"}}}}}},"responses":{"200":{"description":"Successful download response with URL","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadAssetResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/cloudinary/console/handlers/sign_and_upload":{"post":{"tags":["Console"],"summary":"Sign and upload an asset to Cloudinary","description":"Signs the upload request via Console API and uploads to Cloudinary in a single operation. Accepts multipart/form-data (with binary file) or application/json (with URL or base64 data URI).","security":[{"bearerAuth":[]}],"deprecated":true,"operationId":"deprecated_post_cloudinary_console_handlers_sign_and_upload","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"The binary file to upload"},"resource_type":{"type":"string","description":"The type of resource (image, video, raw, auto). Defaults to auto"},"public_id":{"type":"string","description":"Custom public identifier for the uploaded asset"},"folder":{"type":"string","description":"Folder name where the file should be stored"},"asset_folder":{"type":"string","description":"Asset folder path in the Cloudinary repository"},"tags":{"type":"string","description":"Comma-separated list of tags"},"type":{"type":"string","description":"Storage/delivery type (upload, private, authenticated)"},"overwrite":{"type":"string","description":"Whether to overwrite an existing asset (true/false)"},"invalidate":{"type":"string","description":"Whether to invalidate CDN cache (true/false)"},"context":{"type":"string","description":"Pipe-separated contextual metadata"},"metadata":{"type":"string","description":"Pipe-separated structured metadata"},"transformation":{"type":"string","description":"Transformation to apply on upload"},"format":{"type":"string","description":"Format to convert to"},"eager":{"type":"string","description":"Eager transformations to generate"},"eager_async":{"type":"string","description":"Whether to generate eager transformations asynchronously (true/false)"},"eager_notification_url":{"type":"string","description":"Webhook URL for eager transformation completion"},"notification_url":{"type":"string","description":"Webhook URL for upload completion"},"display_name":{"type":"string","description":"Display name for the asset"},"use_filename":{"type":"string","description":"Use original filename as public_id (true/false)"},"unique_filename":{"type":"string","description":"Append random characters to filename (true/false)"},"filename_override":{"type":"string","description":"Override the original filename metadata"},"access_mode":{"type":"string","description":"Access mode (public, authenticated)"},"discard_original_filename":{"type":"string","description":"Whether to discard original filename (true/false)"},"phash":{"type":"string","description":"Whether to return perceptual hash (true/false)"},"async":{"type":"string","description":"Whether to perform upload asynchronously (true/false)"}}}},"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"The file to upload - URL, base64 data URI, or remote file path"},"resource_type":{"type":"string","description":"The type of resource (image, video, raw, auto). Defaults to auto"},"public_id":{"type":"string","description":"Custom public identifier for the uploaded asset"},"folder":{"type":"string","description":"Folder name where the file should be stored"},"asset_folder":{"type":"string","description":"Asset folder path in the Cloudinary repository"},"tags":{"type":"array","items":{"type":"string"},"description":"Tag names to assign to the asset"},"type":{"type":"string","description":"Storage/delivery type (upload, private, authenticated)"},"overwrite":{"type":"boolean","description":"Whether to overwrite an existing asset with the same public ID"},"invalidate":{"type":"boolean","description":"Whether to invalidate CDN cache"},"context":{"type":"object","additionalProperties":{"type":"string"},"description":"Contextual metadata as key-value pairs"},"metadata":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}}]},"description":"Structured metadata keyed by field external_id"},"transformation":{"type":"string","description":"Transformation to apply on upload"},"format":{"type":"string","description":"Format to convert to"},"eager":{"type":"string","description":"Eager transformations to generate"},"eager_async":{"type":"boolean","description":"Whether to generate eager transformations asynchronously"},"eager_notification_url":{"type":"string","description":"Webhook URL for eager transformation completion"},"notification_url":{"type":"string","description":"Webhook URL for upload completion"},"display_name":{"type":"string","description":"Display name for the asset"},"use_filename":{"type":"boolean","description":"Use original filename as public_id"},"unique_filename":{"type":"boolean","description":"Append random characters to filename"},"filename_override":{"type":"string","description":"Override the original filename metadata"},"access_mode":{"type":"string","description":"Access mode (public, authenticated)"},"discard_original_filename":{"type":"boolean","description":"Whether to discard original filename"},"phash":{"type":"boolean","description":"Whether to return perceptual hash"},"async":{"type":"boolean","description":"Whether to perform upload asynchronously"}},"required":["file"]}}}},"responses":{"200":{"description":"Asset uploaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignAndUploadResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/cloudinary/console/handlers/customers/by_cloud/{cloud_name}":{"get":{"tags":["Console"],"summary":"customer by cloud","description":"get a customer by cloud name","security":[{"bearerAuth":[]}],"deprecated":true,"operationId":"deprecated_get_cloudinary_console_handlers_customers_by_cloud__cloud_name","parameters":[{"schema":{"type":"string"},"required":true,"name":"cloud_name","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}}}}},"/cloudinary/console/handlers/asset/metadata":{"patch":{"tags":["Console"],"summary":"res console","description":"update metadata","security":[{"bearerAuth":[]}],"deprecated":true,"operationId":"deprecated_patch_cloudinary_console_handlers_asset_metadata","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"context":{"type":"object","additionalProperties":{"type":"string"}},"metadata":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}}},"required":["id"]}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAssetMetadataResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/cloudinary/console/handlers/metadata/fields":{"get":{"tags":["Console"],"summary":"List structured metadata fields","description":"List all available structured metadata field definitions","security":[{"bearerAuth":[]}],"deprecated":true,"operationId":"deprecated_get_cloudinary_console_handlers_metadata_fields","responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMetadataFieldsResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/cloudinary/console/handlers/metadata/context-fields":{"get":{"tags":["Console"],"summary":"List contextual metadata fields","description":"List contextual metadata keys in use across assets in the cloud","security":[{"bearerAuth":[]}],"deprecated":true,"operationId":"deprecated_get_cloudinary_console_handlers_metadata_context-fields","parameters":[{"schema":{"type":"integer","default":50},"required":false,"name":"max_results","in":"query"},{"schema":{"type":"string"},"required":false,"name":"next_cursor","in":"query"},{"schema":{"type":"string"},"required":false,"name":"prefix","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListContextualMetadataFieldsResponse"}}}}}}},"/cloudinary/console/rest_resources/by_folder":{"get":{"tags":["Console"],"operationId":"deprecated_get_cloudinary_console_rest_resources_by_folder","summary":"Lists resources in a folder","description":"Lists Console resources by folder using the Console rest_resources/by_folder API.","security":[{"bearerAuth":[]}],"deprecated":true,"parameters":[{"schema":{"type":"string"},"required":false,"name":"folder_id","in":"query"},{"schema":{"type":"string","enum":["image","javascript","css","video","raw","any"]},"required":false,"name":"resource_type","in":"query"},{"schema":{"type":"string"},"required":false,"name":"sort_by","in":"query"},{"schema":{"type":"integer"},"required":false,"name":"max_results","in":"query"},{"schema":{"type":"string"},"required":false,"name":"next_cursor","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAssetsByFolderResponse"}}}}}}},"/cloudinary/console/transformations":{"get":{"tags":["Console"],"operationId":"deprecated_get_cloudinary_console_transformations","summary":"List of named Transformations","security":[{"bearerAuth":[]}],"deprecated":true,"parameters":[{"schema":{"type":"integer"},"required":false,"name":"max_results","in":"query"},{"schema":{"type":"string"},"required":false,"name":"next_cursor","in":"query"},{"schema":{"type":"string","description":"Return only the named transformation with exactly this name (case-sensitive)"},"required":false,"description":"Return only the named transformation with exactly this name (case-sensitive)","name":"name","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTransformationsResponse"}}}}}}},"/cloudinary/res-console/thumbnails/{cloud_name}/{resource_type}/{type}/{version}/{variant}":{"get":{"tags":["Console"],"summary":"res console","description":"thumbnail","security":[{"bearerAuth":[]}],"deprecated":true,"operationId":"deprecated_get_cloudinary_res-console_thumbnails__cloud_name__resource_type__type__version__variant","parameters":[{"schema":{"type":"string","pattern":"^[a-z0-9_]{1,64}$","description":"Resource type, e.g. image, video or raw"},"required":true,"description":"Resource type, e.g. image, video or raw","name":"resource_type","in":"path"},{"schema":{"type":"string","pattern":"^[a-z0-9_]{1,64}$","description":"Delivery type, e.g. upload, private or authenticated"},"required":true,"description":"Delivery type, e.g. upload, private or authenticated","name":"type","in":"path"},{"schema":{"type":"string"},"required":true,"name":"version","in":"path"},{"schema":{"type":"string"},"required":true,"name":"cloud_name","in":"path"},{"schema":{"type":"string","pattern":"^[a-z0-9_]{1,64}$","description":"Thumbnail variant, e.g. grid, preview, as_is or three_d"},"required":true,"description":"Thumbnail variant, e.g. grid, preview, as_is or three_d","name":"variant","in":"path"},{"schema":{"type":"string"},"required":true,"name":"public_id","in":"query"},{"schema":{"type":"string"},"required":false,"name":"token","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Thumbnail image binary","content":{"image/jpeg":{"schema":{"type":"string"}}}},"400":{"description":"Bad request - missing cloud name, or a malformed resource_type, type or variant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorWithMessageResponse"}}}},"502":{"description":"Upstream thumbnail service error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorWithMessageResponse"}}}}}}},"/cloudinary/upload/{cloud_name}/{resource_type}/tags":{"post":{"tags":["Upload"],"security":[{"bearerAuth":[]}],"deprecated":true,"operationId":"deprecated_post_cloudinary_upload__cloud_name__resource_type_tags","parameters":[{"schema":{"type":"string"},"required":true,"name":"cloud_name","in":"path"},{"schema":{"type":"string","description":"The resource type (e.g., image, video, raw)"},"required":true,"description":"The resource type (e.g., image, video, raw)","name":"resource_type","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"public_ids":{"type":"array","items":{"type":"string"},"description":"An array of public IDs of the assets to add the tag to"},"tag":{"type":"string","description":"The name of the tag to add"},"command":{"type":"string","enum":["add","remove"],"description":"The command to add or remove the tag"}},"required":["public_ids","tag","command"]}}}},"responses":{"200":{"description":"Tag added successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAssetTagsResponse"}}}}}}},"/cloudinary/upload/{cloud_name}/{resource_type}/upload":{"post":{"tags":["Upload"],"summary":"Upload an asset to Cloudinary","description":"Proxies an upload request to Cloudinary. Client must provide signature and api_key. Accepts multipart/form-data (with binary file) or application/json (with URL or base64 data URI).","security":[{"bearerAuth":[]}],"deprecated":true,"operationId":"deprecated_post_cloudinary_upload__cloud_name__resource_type_upload","parameters":[{"schema":{"type":"string"},"required":true,"name":"cloud_name","in":"path"},{"schema":{"type":"string","description":"The resource type (image, video, raw, auto)"},"required":true,"description":"The resource type (image, video, raw, auto)","name":"resource_type","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","required":["file","signature","api_key"],"properties":{"file":{"type":"string","format":"binary","description":"The binary file to upload"},"signature":{"type":"string","description":"The authentication signature for the upload request"},"api_key":{"type":"string","description":"The API key for authentication"},"timestamp":{"type":"string","description":"Unix timestamp for signature validation"},"public_id":{"type":"string","description":"Custom public identifier for the uploaded asset"},"folder":{"type":"string","description":"Folder name where the file should be stored"},"tags":{"type":"string","description":"Comma-separated list of tags"},"type":{"type":"string","description":"Storage/delivery type (upload, private, authenticated)"},"resource_type":{"type":"string","description":"The type of resource (image, video, raw, auto)"},"overwrite":{"type":"string","description":"Whether to overwrite an existing asset (true/false)"},"invalidate":{"type":"string","description":"Whether to invalidate CDN cache (true/false)"},"context":{"type":"string","description":"Pipe-separated contextual metadata"},"metadata":{"type":"string","description":"Pipe-separated structured metadata"},"transformation":{"type":"string","description":"Transformation to apply on upload"},"format":{"type":"string","description":"Format to convert to"},"eager":{"type":"string","description":"Eager transformations to generate"},"async":{"type":"string","description":"Whether to generate eager transformations asynchronously (true/false)"}}}},"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","description":"The file to upload - URL, base64 data URI, or remote file path"},"signature":{"type":"string","description":"The authentication signature for the upload request"},"api_key":{"type":"string","description":"The API key for authentication"},"timestamp":{"type":"integer","description":"Unix timestamp for signature validation"},"public_id":{"type":"string","description":"Custom public identifier for the uploaded asset"},"folder":{"type":"string","description":"Folder name where the file should be stored"},"tags":{"type":"string","description":"Comma-separated list of tags"},"type":{"type":"string","description":"Storage/delivery type (upload, private, authenticated)"},"resource_type":{"type":"string","description":"The type of resource (image, video, raw, auto)"},"overwrite":{"type":"boolean","description":"Whether to overwrite an existing asset with the same public ID"},"invalidate":{"type":"boolean","description":"Whether to invalidate CDN cache"},"context":{"type":"string","description":"Pipe-separated contextual metadata"},"metadata":{"type":"string","description":"Pipe-separated structured metadata"},"transformation":{"type":"string","description":"Transformation to apply on upload"},"format":{"type":"string","description":"Format to convert to"},"eager":{"type":"string","description":"Eager transformations to generate"},"async":{"type":"boolean","description":"Whether to generate eager transformations asynchronously"}},"required":["file","signature","api_key"]}}}},"responses":{"200":{"description":"Asset uploaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadAssetResponse"}}}},"400":{"description":"Missing upload signature","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/utils/analytics":{"post":{"tags":["Utils"],"operationId":"deprecated_post_utils_analytics","summary":"Submit analytics events","description":"Endpoint to submit analytics events for tracking and analysis","security":[{"basicAuth":[]}],"deprecated":true,"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"events":{"type":"array","items":{}}},"required":["events"]}}}},"responses":{"200":{"description":"Analytics events successfully processed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsResponse"}}}},"400":{"description":"Bad request - invalid event data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorWithMessageResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorWithMessageResponse"}}}}}}},"/utils/validate_token":{"get":{"tags":["Utils"],"summary":"validate JWT token","description":"validate api-gateway token validity","security":[{"bearerAuth":[]}],"deprecated":true,"operationId":"deprecated_get_utils_validate_token","responses":{"200":{"description":"Token is valid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateTokenResponse"}}}},"400":{"description":"Bad request, e.g. an account-level session without a cloud selector, or conflicting selectors","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Invalid or expired token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The token could not be checked (session store or identity provider failing); retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/utils/fonts/lookup":{"post":{"tags":["Utils"],"summary":"lookup fonts","description":"Lookup fonts by checking availability in Cloudinary system fonts and Google Fonts","security":[{"bearerAuth":[]}],"deprecated":true,"operationId":"deprecated_post_utils_fonts_lookup","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"fonts":{"type":"array","items":{"type":"object","properties":{"family":{"type":"string","minLength":1},"weight":{"type":"string","enum":["normal","bold","100","200","300","400","500","600","700","800","900"]},"style":{"type":"string","enum":["normal","italic"]}},"required":["family","weight","style"]}}},"required":["fonts"]}}}},"responses":{"200":{"description":"Fonts lookup successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontLookupResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/utils/fonts/google/web-fonts":{"get":{"tags":["Utils"],"summary":"google web fonts listing","description":"Lookup fonts by checking availability in Cloudinary system fonts and Google Fonts","deprecated":true,"operationId":"deprecated_get_utils_fonts_google_web-fonts","responses":{"200":{"description":"Fonts lookup successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleFontListingResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/utils/auth/cloudinary/token/{type}/refresh":{"get":{"tags":["Utils"],"summary":"res console","description":"thumbnail","security":[{"bearerAuth":[]}],"deprecated":true,"operationId":"deprecated_get_utils_auth_cloudinary_token__type_refresh","parameters":[{"schema":{"type":"string","enum":["oauth","console"],"description":"Token type to refresh. `console` is deprecated: console tokens will not be refreshable, use `oauth`."},"required":true,"description":"Token type to refresh. `console` is deprecated: console tokens will not be refreshable, use `oauth`.","name":"type","in":"path"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","headers":{"Deprecation":{"schema":{"type":"string","description":"`true` when refreshing a `console` token, which is deprecated."},"required":false,"description":"`true` when refreshing a `console` token, which is deprecated."},"Warning":{"schema":{"type":"string","description":"Deprecation notice when refreshing a `console` token."},"required":false,"description":"Deprecation notice when refreshing a `console` token."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenResponse"}}}},"401":{"description":"Invalid or expired session","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenErrorResponse"}}}},"503":{"description":"The identity provider or session store is failing; the session is kept, retry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenErrorResponse"}}}}}}},"/utils/fonts/provision":{"post":{"tags":["Utils"],"summary":"lookup fonts","description":"Lookup fonts by checking availability in Cloudinary system fonts and Google Fonts","security":[{"bearerAuth":[]}],"deprecated":true,"operationId":"deprecated_post_utils_fonts_provision","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"fonts":{"type":"array","items":{"type":"object","properties":{"family":{"type":"string","minLength":1},"weight":{"type":"string","enum":["normal","bold","100","200","300","400","500","600","700","800","900"]},"style":{"type":"string","enum":["normal","italic"]}},"required":["family","weight","style"]}},"folder":{"type":"string"}},"required":["fonts"]}}}},"responses":{"200":{"description":"Fonts lookup successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FontProvisioningResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/utils/backreference/asset":{"post":{"tags":["Utils"],"summary":"Manage asset backreferences","description":"Create, update, or remove backreferences linking assets to 3rd party systems","security":[{"bearerAuth":[]}],"deprecated":true,"operationId":"deprecated_post_utils_backreference_asset","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"assetIds":{"type":"array","items":{"type":"string"},"minItems":1,"description":"Cloudinary asset external_ids"},"location":{"type":"array","items":{"$ref":"#/components/schemas/LocationSegment"},"minItems":1,"description":"Hierarchical location path segments defining the backref URI"},"action":{"type":"string","enum":["add","update","remove"],"description":"Action to perform"},"attributes":{"type":"object","additionalProperties":{},"description":"Optional backreference attributes (name, url, etc.)"}},"required":["assetIds","location","action"]}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBackreferencesResponse"}}}},"400":{"description":"Bad request - invalid location or parameters"},"404":{"description":"Asset not found"},"503":{"description":"Backreferences are unavailable for this cloud (its region is unknown)"}},"parameters":[{"$ref":"#/components/parameters/XCldCloudName"}]}},"/utils/backreference/asset/{assetId}":{"get":{"tags":["Utils"],"summary":"List asset backreferences","description":"Get the locations an asset is used in, optionally filtered by system/tenant. Pass includeRemoved=true to include locations that no longer use it (status: removed).","security":[{"bearerAuth":[]}],"deprecated":true,"operationId":"deprecated_get_utils_backreference_asset__assetId","parameters":[{"schema":{"type":"string","description":"Cloudinary asset id"},"required":true,"description":"Cloudinary asset id","name":"assetId","in":"path"},{"schema":{"type":"string","description":"Filter by system name (e.g., 'monday')"},"required":false,"description":"Filter by system name (e.g., 'monday')","name":"system","in":"query"},{"schema":{"type":"string","description":"Filter by tenant/workspace ID (requires system)"},"required":false,"description":"Filter by tenant/workspace ID (requires system)","name":"tenant","in":"query"},{"schema":{"type":["boolean","null"],"description":"Include backreferences whose current action is remove"},"required":false,"description":"Include backreferences whose current action is remove","name":"includeRemoved","in":"query"},{"schema":{"type":"string","description":"next_cursor from the previous page"},"required":false,"description":"next_cursor from the previous page","name":"cursor","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":1000,"default":500,"description":"Page size (1-1000, default 500)"},"required":false,"description":"Page size (1-1000, default 500)","name":"limit","in":"query"},{"$ref":"#/components/parameters/XCldCloudName"}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListBackreferencesResponse"}}}},"400":{"description":"Invalid cursor or limit"},"503":{"description":"Backreferences are unavailable for this cloud (its region is unknown)"}}}}},"webhooks":{}}