Cloudinary
App · Images & Design · 19 actions
Manage your Cloudinary media library: upload images, videos and other files from Lodol or a link, find, search, tag, rename and delete assets, organize folders, build transformed delivery links, make ZIP archives and check your usage.
Actions
| Action | What it does |
|---|---|
| Add or remove tags | Add tags to assets, remove them, replace every tag with new ones, or remove every tag, on up to 1,000 assets at once. |
| Build delivery link | Make the link to an asset resized, cropped, converted or otherwise transformed, signed if needed. |
| Create folder | Create an empty folder, and any parent folders its path needs. |
| Create transformed versions | Make transformed versions of an asset now, such as thumbnails or a video in another size, so they are ready before anyone opens their links. |
| Create ZIP archive | Pack assets chosen by public ID, tag or prefix into a ZIP file stored in Cloudinary, and return its link. |
| Delete assets | Delete up to 100 assets of one kind by public ID, with their transformed versions. |
| Delete folder | Delete an empty folder. |
| Get asset | Get one asset's details: size, format, dimensions, links, folder, tags, context and structured metadata, and the transformed versions already made. |
| Get usage report | Get the plan and what it has used: credits, storage, bandwidth, transformations and asset counts, now or on a day in the last three months. |
| List assets | List assets of one kind, or those whose public ID starts with a prefix, that have a tag, or that are in a Media Library folder. |
| List folders | List the folders at the top level, or the subfolders of one folder. |
| List tags | List the tags used on assets of one kind, optionally only those starting with some text. |
| Rename asset | Change an asset's public ID, and with it its link, optionally changing its delivery type too. |
| Rename or move folder | Rename a folder or move it under another, with everything in it. |
| Search assets | Find assets with a search expression on tags, folders, context, metadata, format, size, dates and more, sorted as you choose. |
| Set context metadata | Set context metadata keys, such as alt text or a caption, on one or more assets, keeping their other keys, or remove all of it. |
| Update asset | Change an asset's display name, move it to another Media Library folder, or set its structured metadata, without changing its link. |
| Upload file | Upload an image, video, audio or any other file to Cloudinary from Lodol or a link, with its folder, name, tags, context and structured metadata. |
| Upload image from URL | Upload an image to Cloudinary from a web link (URL). |
Add or remove tags
Add tags to assets, remove them, replace every tag with new ones, or remove every tag, on up to 1,000 assets at once.
Inputs
- Public IDs
public_idslistRequired - The assets' public IDs, as a list or separated by commas, such as the public_id from an upload.
- Tags
tagslist - The tags to add, remove or set, as a list or separated by commas. Not needed for 'Remove every tag'.
- Change
commandtext - What to do with the tags. Defaults to adding them.One of:
add(Add these tags (default)),remove(Remove these tags),replace(Replace every tag with these),remove_all(Remove every tag). Default:add. - Resource type
resource_typetext - What kind of assets they are; one step changes one kind. Defaults to image.One of:
image(Image (default)),video(Video or audio),raw(Other file (raw)). Default:image. - Delivery type
delivery_typetext - Who can open its link: public (upload), private or authenticated. Defaults to public.One of:
upload(Public (upload, default)),private,authenticated. Default:upload.
Outputs
commandtext- The change made: add, remove, replace or remove_all
public_idslist- The assets Cloudinary changed
tagslist- The tags added, removed or set; empty for remove_all
Example output
{
"command": "add",
"public_ids": [
"products/red-shoe",
"products/blue-shoe"
],
"tags": [
"sale"
]
}Build delivery link
Make the link to an asset resized, cropped, converted or otherwise transformed, signed if needed. Cloudinary makes the version the first time the link is opened; nothing is sent until then.
Inputs
- Public ID
public_idtextRequired - The asset's public ID, such as products/red-shoe, from an upload or 'List assets'. Leave off the file extension, except for raw files.
- Resource type
resource_typetext - What kind of asset it is. Defaults to image.One of:
image(Image (default)),video(Video or audio),raw(Other file (raw)). Default:image. - Delivery type
delivery_typetext - Who can open its link: public (upload), private or authenticated. Defaults to public.One of:
upload(Public (upload, default)),private,authenticated. Default:upload. - Transformation
transformationtext - A transformation in Cloudinary's URL syntax, such as c_fill,w_400,h_300/e_grayscale. The fields below are added after it, so they can be used alone.
- Width
widthnumber - Width in pixels.From 1 to 10000.
- Height
heightnumber - Height in pixels.From 1 to 10000.
- Crop
croptext - How to fit a width and height. Without one, Cloudinary scales to the size.One of:
fill(Fill: cover the size, cropping the excess),lfill(Fill, never enlarging),fill_pad(Fill, padding when needed),fit(Fit inside the size),limit(Fit, never enlarging),mfit(Fit, never shrinking),pad(Pad to the size),lpad(Pad, never enlarging),scale(Scale to the size, ignoring proportions),crop(Cut out the size),thumb(Thumbnail around the subject),auto(Automatic crop around the subject). - Focus on
gravitytext - Which part to keep when cropping.One of:
auto(Most interesting part),face(The largest face),faces(Every face),center,north(Top),north_east(Top right),east(Right),south_east(Bottom right),south(Bottom),south_west(Bottom left),west(Left),north_west(Top left). - Quality
qualitytext - auto (or auto:best, auto:good, auto:eco, auto:low) to let Cloudinary choose, or a number from 1 to 100.
- Format
formattext - The file format to deliver, such as webp, jpg, png or mp4, or auto for the best one each browser takes. Leave blank for the original's.
- Version
versiontext - The asset's version number, so the link changes when the asset is replaced. Optional.
- Sign the link
sign_urltrue/false - Add a signature, needed for authenticated assets and for accounts that only allow signed transformations.
Outputs
public_idtext- The asset's public ID
signedtrue/false- True when the link carries a signature
transformationtext- The transformation in the link; empty for the original
urltext- The delivery link
Example output
{
"public_id": "products/red-shoe",
"signed": false,
"transformation": "c_fill,h_300,w_400",
"url": "https://res.cloudinary.com/demo/image/upload/c_fill,h_300,w_400/v1/products/red-shoe.webp"
}Create folder
Create an empty folder, and any parent folders its path needs.
Inputs
- Folder
foldertextRequired - The new folder's full path, such as products/shoes.
Outputs
nametext- The folder's name
pathtext- The folder's full path
successtrue/false- True once the folder exists
Example output
{
"name": "shoes",
"path": "products/shoes",
"success": true
}Create transformed versions
Make transformed versions of an asset now, such as thumbnails or a video in another size, so they are ready before anyone opens their links.
Inputs
- Public ID
public_idtextRequired - The asset's public ID, such as products/red-shoe, from an upload or 'List assets'. Leave off the file extension, except for raw files.
- Transformations
transformationslistRequired - One or more transformations in Cloudinary's URL syntax, such as c_fill,w_400,h_300. Add /jpg to one to also change its format.
- Resource type
resource_typetext - What kind of asset it is. Defaults to image.One of:
image(Image (default)),video(Video or audio),raw(Other file (raw)). Default:image. - Delivery type
delivery_typetext - Who can open its link: public (upload), private or authenticated. Defaults to public.One of:
upload(Public (upload, default)),private,authenticated. Default:upload. - Make them in the background
in_backgroundtrue/false - Return at once and let Cloudinary make them afterwards. Needed for large videos; their links are empty until they are ready.
Outputs
asset_idtext- The asset's permanent ID
countnumber- How many versions were asked for
public_idtext- The asset's public ID
secure_urltext- The original's delivery link
versionslist- Each transformed version
Example output
{
"asset_id": "03a5b92135161439031d3834c04bc31b",
"count": 1,
"public_id": "products/red-shoe",
"secure_url": "https://res.cloudinary.com/demo/image/upload/v1719304854/products/red-shoe.jpg",
"versions": [
{
"bytes": 27867,
"format": "jpg",
"height": 300,
"secure_url": "https://res.cloudinary.com/demo/image/upload/c_fill,h_300,w_400/v1719304854/products/red-shoe.jpg",
"status": "ready",
"transformation": "c_fill,h_300,w_400",
"width": 400
}
]
}Create ZIP archive
Pack assets chosen by public ID, tag or prefix into a ZIP file stored in Cloudinary, and return its link. Free plans can make ZIP files but not deliver them.
Inputs
- Public IDs
public_idslist - Assets to include, up to 1,000.
- With tags
tagslist - Also include every asset with any of these tags, up to 20.
- Public ID prefixes
prefixeslist - Also include every asset whose public ID starts with one of these, such as products/, up to 20.
- Resource type
resource_typetext - Which kind of asset to include. Defaults to images.One of:
image(Images (default)),video(Videos and audio),raw(Other files (raw)),all(Every kind). Default:image. - Delivery type
delivery_typetext - Who can open its link: public (upload), private or authenticated. Defaults to public.One of:
upload(Public (upload, default)),private,authenticated. Default:upload. - Archive name
target_public_idtext - The ZIP file's public ID, such as exports/shoes. Leave blank for a random one.
- Tag the archive
target_tagslist - Tags to put on the ZIP file itself.
- Put every file at the top
flatten_folderstrue/false - Leave out folders inside the ZIP, numbering files whose names clash.
Outputs
asset_idtext- The ZIP file's permanent ID
bytesnumber- Its size in bytes
created_attext- When it was made (ISO 8601, UTC)
file_countnumber- How many files it holds
public_idtext- The ZIP file's public ID, a raw asset
resource_countnumber- How many assets it holds
resource_typetext- Always raw: the ZIP is stored as a raw file
secure_urltext- The ZIP file's delivery link
versiontext- Its version number
Example output
{
"asset_id": "1d67352b4deb6fcbecb1b475ea586ac8",
"bytes": 3574651,
"created_at": "2026-10-20T12:58:09Z",
"file_count": 2,
"public_id": "exports/shoes.zip",
"resource_count": 2,
"resource_type": "raw",
"secure_url": "https://res.cloudinary.com/demo/raw/upload/v1719320289/exports/shoes.zip",
"version": "1719320289"
}Delete assets
Delete up to 100 assets of one kind by public ID, with their transformed versions. This can't be undone unless your account keeps backups.
Inputs
- Public IDs
public_idslistRequired - The assets' public IDs, as a list or separated by commas, such as the public_id from an upload.
- Resource type
resource_typetext - What kind of assets they are; one step changes one kind. Defaults to image.One of:
image(Image (default)),video(Video or audio),raw(Other file (raw)). Default:image. - Delivery type
delivery_typetext - Who can open its link: public (upload), private or authenticated. Defaults to public.One of:
upload(Public (upload, default)),private,authenticated. Default:upload.
Outputs
deletedlist- The public IDs deleted
deleted_countnumber- How many were deleted
not_foundlist- The public IDs Cloudinary did not have
partialtrue/false- True when Cloudinary has more to delete
resultslist- Each public ID asked for, with what happened to it
Example output
{
"deleted": [
"products/red-shoe"
],
"deleted_count": 1,
"not_found": [
"products/old-shoe"
],
"partial": false,
"results": [
{
"public_id": "products/red-shoe",
"status": "deleted"
},
{
"public_id": "products/old-shoe",
"status": "not_found"
}
]
}Delete folder
Delete an empty folder. Delete or move its assets first; empty subfolders go with it.
Inputs
- Folder
foldertextRequired - The folder's full path, such as products/shoes.
- Even if backups remain
skip_backuptrue/false - Delete it even when backed up copies of deleted assets are still in it, which otherwise stops the delete.
Outputs
deletedlist- The folder paths deleted
foldertext- The folder asked for
Example output
{
"deleted": [
"products/shoes"
],
"folder": "products/shoes"
}Get asset
Get one asset's details: size, format, dimensions, links, folder, tags, context and structured metadata, and the transformed versions already made.
Inputs
- Public ID
public_idtextRequired - The asset's public ID, such as products/red-shoe, from an upload or 'List assets'. Leave off the file extension, except for raw files.
- Resource type
resource_typetext - What kind of asset it is. Defaults to image.One of:
image(Image (default)),video(Video or audio),raw(Other file (raw)). Default:image. - Delivery type
delivery_typetext - Who can open its link: public (upload), private or authenticated. Defaults to public.One of:
upload(Public (upload, default)),private,authenticated. Default:upload. - Include embedded metadata
media_metadatatrue/false - Also read the file's own metadata: Exif, IPTC and XMP for images, codecs and bit rates for video and audio.
Outputs
asset_foldertext- The Media Library folder it is in (dynamic folder mode); empty for the root
asset_idtext- Cloudinary's permanent ID for the asset, which never changes
bytesnumber- Size in bytes
contextobject- Its context metadata, as keys and values
created_attext- When it was uploaded (ISO 8601, UTC)
derivedlist- Transformed versions already made from it
display_nametext- The name shown in the Media Library (dynamic folder mode)
durationnumber- Length in seconds, for video and audio; 0 otherwise
foldertext- The folder its public ID puts it in (fixed folder mode); empty otherwise
formattext- File format, such as jpg or mp4; empty for raw files
heightnumber- Height in pixels; 0 when it has none
media_metadataobject- Embedded metadata (Exif, IPTC, XMP, codecs), when asked for; empty otherwise
metadataobject- Its structured metadata values, by field external ID
original_filenametext- The name of the file it was uploaded from, if known
public_idtext- The asset's public ID: its name in links, and what other Cloudinary steps take
resource_typetext- image, video (also audio) or raw (any other file)
secure_urltext- Its delivery link over https
tagslist- Its tags
typetext- Delivery type: upload (public), private or authenticated
urltext- Its delivery link over http
versiontext- Version number, which changes when the file is replaced
widthnumber- Width in pixels; 0 when it has none
Example output
{
"asset_folder": "products",
"asset_id": "03a5b92135161439031d3834c04bc31b",
"bytes": 120253,
"context": {
"alt": "A red shoe"
},
"created_at": "2026-10-20T08:40:54Z",
"derived": [
{
"bytes": 7112,
"format": "jpg",
"secure_url": "https://res.cloudinary.com/demo/image/upload/c_fill,h_100,w_100/v1719304854/products/red-shoe.jpg",
"transformation": "c_fill,h_100,w_100"
}
],
"display_name": "red-shoe",
"duration": 0,
"folder": "",
"format": "jpg",
"height": 576,
"media_metadata": {},
"metadata": {},
"original_filename": "red-shoe",
"public_id": "products/red-shoe",
"resource_type": "image",
"secure_url": "https://res.cloudinary.com/demo/image/upload/v1719304854/products/red-shoe.jpg",
"tags": [
"shoes",
"sale"
],
"type": "upload",
"url": "http://res.cloudinary.com/demo/image/upload/v1719304854/products/red-shoe.jpg",
"version": "1719304854",
"width": 864
}Get usage report
Get the plan and what it has used: credits, storage, bandwidth, transformations and asset counts, now or on a day in the last three months.
Inputs
- Day
datedate - A day in the last three months. Leave blank for the latest figures.
Outputs
bandwidthobject- Bandwidth used, in bytes
creditsobject- Credits used against the plan's monthly credits
date_requestedtext- The moment the report is for
derived_resourcesnumber- How many transformed versions are stored
last_updatedtext- The day the figures were last updated
plantext- The plan, such as Free or Plus
requestsnumber- Delivery requests served
resourcesnumber- How many assets are stored
storageobject- Storage used, in bytes
transformationsobject- Transformations made
Example output
{
"bandwidth": {
"credits_usage": 0.68,
"limit": 0,
"usage": 734003200,
"used_percent": 0
},
"credits": {
"credits_usage": 0,
"limit": 25,
"usage": 1.25,
"used_percent": 5
},
"date_requested": "2026-10-23T00:00:00Z",
"derived_resources": 1204,
"last_updated": "2026-10-22",
"plan": "Free",
"requests": 10452,
"resources": 318,
"storage": {
"credits_usage": 0.49,
"limit": 0,
"usage": 524288000,
"used_percent": 0
},
"transformations": {
"credits_usage": 0.08,
"limit": 0,
"usage": 812,
"used_percent": 0
}
}List assets
List assets of one kind, or those whose public ID starts with a prefix, that have a tag, or that are in a Media Library folder. Gets one page; to see more, run it again with the next page it gives.
Inputs
- Resource type
resource_typetext - What kind of asset it is. Defaults to image.One of:
image(Image (default)),video(Video or audio),raw(Other file (raw)). Default:image. - Delivery type
delivery_typetext - Who can open its link: public (upload), private or authenticated. Defaults to public.One of:
upload(Public (upload, default)),private,authenticated. Default:upload. - Public ID starts with
prefixtext - Only assets whose public ID starts with this, such as products/ for everything under that path. Sorted by public ID.
- Tag
tagtext - Only assets with this tag.
- Media Library folder
asset_foldertext - Dynamic folder mode only: every asset directly in this folder, of any resource type. Give a prefix, a tag or a folder, not more than one.
- Page size
max_resultsnumber - How many to return, 1 to 500. Cloudinary's default is 10.From 1 to 500.
- Next page cursor
next_cursortext - The 'next_cursor' from an earlier page, to get the page after it.
- Order
directiontext - By upload time. Ignored with a prefix, which sorts by public ID.One of:
desc(Newest first (default)),asc(Oldest first). Default:desc.
Outputs
assetslist- The assets on this page
countnumber- How many are on this page
next_cursortext- Pass as 'Next page cursor' for the next page; empty on the last page
Example output
{
"assets": [
{
"asset_folder": "products",
"asset_id": "03a5b92135161439031d3834c04bc31b",
"bytes": 120253,
"context": {
"alt": "A red shoe"
},
"created_at": "2026-10-20T08:40:54Z",
"display_name": "red-shoe",
"duration": 0,
"folder": "",
"format": "jpg",
"height": 576,
"metadata": {},
"original_filename": "red-shoe",
"public_id": "products/red-shoe",
"resource_type": "image",
"secure_url": "https://res.cloudinary.com/demo/image/upload/v1719304854/products/red-shoe.jpg",
"tags": [
"shoes",
"sale"
],
"type": "upload",
"url": "http://res.cloudinary.com/demo/image/upload/v1719304854/products/red-shoe.jpg",
"version": "1719304854",
"width": 864
},
{
"asset_folder": "products",
"asset_id": "a13dc5a232a28c03bf5881ac39b94d2c",
"bytes": 120253,
"context": {
"alt": "A red shoe"
},
"created_at": "2026-10-20T08:40:54Z",
"display_name": "blue-shoe",
"duration": 0,
"folder": "",
"format": "jpg",
"height": 576,
"metadata": {},
"original_filename": "blue-shoe",
"public_id": "products/blue-shoe",
"resource_type": "image",
"secure_url": "https://res.cloudinary.com/demo/image/upload/v1719305903/products/blue-shoe.jpg",
"tags": [
"shoes",
"sale"
],
"type": "upload",
"url": "http://res.cloudinary.com/demo/image/upload/v1719305903/products/blue-shoe.jpg",
"version": "1719305903",
"width": 864
}
],
"count": 2,
"next_cursor": ""
}List folders
List the folders at the top level, or the subfolders of one folder. Gets one page; to see more, run it again with the next page it gives.
Inputs
- Parent folder
parent_foldertext - List this folder's subfolders. Leave blank for the top-level folders.
- Page size
max_resultsnumber - How many to return, 1 to 500. Cloudinary's default is 10.From 1 to 500.
- Next page cursor
next_cursortext - The 'next_cursor' from an earlier page, to get the page after it.
Outputs
countnumber- How many are on this page
folderslist- The folders on this page
next_cursortext- Pass as 'Next page cursor' for the next page; empty on the last page
total_countnumber- How many folders there are in all
Example output
{
"count": 2,
"folders": [
{
"external_id": "c827a481780998f26ebda3f13559c1ac86",
"name": "products",
"path": "products"
},
{
"external_id": "b123ab7890ac2389afcd1234ef5678ab6",
"name": "blog",
"path": "blog"
}
],
"next_cursor": "",
"total_count": 2
}List tags
List the tags used on assets of one kind, optionally only those starting with some text. Gets one page; to see more, run it again with the next page it gives.
Inputs
- Resource type
resource_typetext - Tags used on which kind of asset. Defaults to image.One of:
image(Image (default)),video(Video or audio),raw(Other file (raw)). Default:image. - Starts with
prefixtext - Only tags that start with this.
- Page size
max_resultsnumber - How many to return, 1 to 500. Cloudinary's default is 10.From 1 to 500.
- Next page cursor
next_cursortext - The 'next_cursor' from an earlier page, to get the page after it.
Outputs
countnumber- How many are on this page
next_cursortext- Pass as 'Next page cursor' for the next page; empty on the last page
tagslist- The tag names on this page
Example output
{
"count": 3,
"next_cursor": "",
"tags": [
"sale",
"shoes",
"summer"
]
}Rename asset
Change an asset's public ID, and with it its link, optionally changing its delivery type too.
Inputs
- Current public ID
from_public_idtextRequired - The asset's public ID now.
- New public ID
to_public_idtextRequired - Its new public ID, such as products/shoes/red. Its link changes with it, and old links stop working.
- Resource type
resource_typetext - What kind of asset it is. Defaults to image.One of:
image(Image (default)),video(Video or audio),raw(Other file (raw)). Default:image. - Delivery type
delivery_typetext - Who can open its link: public (upload), private or authenticated. Defaults to public.One of:
upload(Public (upload, default)),private,authenticated. Default:upload. - New delivery type
to_delivery_typetext - Also change who can open it. Leave blank to keep it as it is.One of:
upload(Public (upload, default)),private,authenticated. - Replace an asset with the new ID
overwritetrue/false - If another asset already has the new public ID, replace it. Defaults to no, which fails instead.
- Clear cached copies
invalidatetrue/false - Also clear copies cached on Cloudinary's CDN, so the old link stops working within minutes.
Outputs
asset_foldertext- The Media Library folder it is in (dynamic folder mode); empty for the root
asset_idtext- Cloudinary's permanent ID for the asset, which never changes
bytesnumber- Size in bytes
contextobject- Its context metadata, as keys and values
created_attext- When it was uploaded (ISO 8601, UTC)
display_nametext- The name shown in the Media Library (dynamic folder mode)
durationnumber- Length in seconds, for video and audio; 0 otherwise
foldertext- The folder its public ID puts it in (fixed folder mode); empty otherwise
formattext- File format, such as jpg or mp4; empty for raw files
heightnumber- Height in pixels; 0 when it has none
metadataobject- Its structured metadata values, by field external ID
original_filenametext- The name of the file it was uploaded from, if known
public_idtext- The asset's public ID: its name in links, and what other Cloudinary steps take
resource_typetext- image, video (also audio) or raw (any other file)
secure_urltext- Its delivery link over https
tagslist- Its tags
typetext- Delivery type: upload (public), private or authenticated
urltext- Its delivery link over http
versiontext- Version number, which changes when the file is replaced
widthnumber- Width in pixels; 0 when it has none
Example output
{
"asset_folder": "products",
"asset_id": "03a5b92135161439031d3834c04bc31b",
"bytes": 120253,
"context": {
"alt": "A red shoe"
},
"created_at": "2026-10-20T08:40:54Z",
"display_name": "red-shoe",
"duration": 0,
"folder": "",
"format": "jpg",
"height": 576,
"metadata": {},
"original_filename": "red-shoe",
"public_id": "products/red-shoe",
"resource_type": "image",
"secure_url": "https://res.cloudinary.com/demo/image/upload/v1719304854/products/red-shoe.jpg",
"tags": [
"shoes",
"sale"
],
"type": "upload",
"url": "http://res.cloudinary.com/demo/image/upload/v1719304854/products/red-shoe.jpg",
"version": "1719304854",
"width": 864
}Rename or move folder
Rename a folder or move it under another, with everything in it. Assets keep their links. Needs dynamic folder mode.
Inputs
- Folder
foldertextRequired - The folder's full path, such as products/shoes.
- New path
to_foldertextRequired - Its new full path: change the last part to rename it, the rest to move it, such as archive/shoes.
Outputs
from_pathtext- Where the folder was
nametext- Its new name
pathtext- Its new full path
Example output
{
"from_path": "products/shoes",
"name": "shoes",
"path": "archive/shoes"
}Search assets
Find assets with a search expression on tags, folders, context, metadata, format, size, dates and more, sorted as you choose. Gets one page; to see more, run it again with the next page it gives.
Inputs
- Search expression
expressiontext - What to find, in Cloudinary's search syntax, such as tags=sale AND resource_type:image, or asset_folder=products. Leave blank for every asset, newest first.
- Sort by
sort_bytext - A field to sort by, such as created_at, public_id or bytes. Defaults to newest first.
- Sort direction
sort_directiontext - Which way to sort. Defaults to descending.One of:
desc(Descending (default)),asc(Ascending). Default:desc. - Page size
max_resultsnumber - How many to return, 1 to 500. Cloudinary's default is 50.From 1 to 500.
- Next page cursor
next_cursortext - The 'next_cursor' from an earlier page, to get the page after it.
- Also include
with_fieldslist - Extra details for each asset. Structured metadata, embedded metadata and image analysis need Cloudinary's Tier 2 search.One or more of:
tags,context(Context metadata),metadata(Structured metadata),image_metadata(Embedded image metadata (Exif, IPTC)),image_analysis(Image analysis (colors, faces, quality)).
Outputs
assetslist- The matching assets on this page
countnumber- How many are on this page
next_cursortext- Pass as 'Next page cursor' for the next page; empty on the last page
total_countnumber- How many assets match in all
Example output
{
"assets": [
{
"asset_folder": "products",
"asset_id": "03a5b92135161439031d3834c04bc31b",
"bytes": 120253,
"context": {
"alt": "A red shoe"
},
"created_at": "2026-10-20T08:40:54Z",
"display_name": "red-shoe",
"duration": 0,
"folder": "",
"format": "jpg",
"height": 576,
"metadata": {},
"original_filename": "red-shoe",
"public_id": "products/red-shoe",
"resource_type": "image",
"secure_url": "https://res.cloudinary.com/demo/image/upload/v1719304854/products/red-shoe.jpg",
"tags": [
"shoes",
"sale"
],
"type": "upload",
"url": "http://res.cloudinary.com/demo/image/upload/v1719304854/products/red-shoe.jpg",
"version": "1719304854",
"width": 864
},
{
"asset_folder": "products",
"asset_id": "a13dc5a232a28c03bf5881ac39b94d2c",
"bytes": 120253,
"context": {
"alt": "A red shoe"
},
"created_at": "2026-10-20T08:40:54Z",
"display_name": "blue-shoe",
"duration": 0,
"folder": "",
"format": "jpg",
"height": 576,
"metadata": {},
"original_filename": "blue-shoe",
"public_id": "products/blue-shoe",
"resource_type": "image",
"secure_url": "https://res.cloudinary.com/demo/image/upload/v1719305903/products/blue-shoe.jpg",
"tags": [
"shoes",
"sale"
],
"type": "upload",
"url": "http://res.cloudinary.com/demo/image/upload/v1719305903/products/blue-shoe.jpg",
"version": "1719305903",
"width": 864
}
],
"count": 2,
"next_cursor": "",
"total_count": 2
}Set context metadata
Set context metadata keys, such as alt text or a caption, on one or more assets, keeping their other keys, or remove all of it.
Inputs
- Public IDs
public_idslistRequired - The assets' public IDs, as a list or separated by commas, such as the public_id from an upload.
- Context metadata
contextobject - Keys and values to set, such as {"alt": "A red shoe", "caption": "Summer sale"}. Keys not given keep their values. Not needed for 'Remove all context metadata'.
- Change
commandtext - Add these keys, or remove all context. Defaults to adding.One of:
add(Add or overwrite these keys (default)),remove_all(Remove all context metadata). Default:add. - Resource type
resource_typetext - What kind of assets they are; one step changes one kind. Defaults to image.One of:
image(Image (default)),video(Video or audio),raw(Other file (raw)). Default:image. - Delivery type
delivery_typetext - Who can open its link: public (upload), private or authenticated. Defaults to public.One of:
upload(Public (upload, default)),private,authenticated. Default:upload.
Outputs
commandtext- The change made: add or remove_all
public_idslist- The assets Cloudinary changed
Example output
{
"command": "add",
"public_ids": [
"products/red-shoe"
]
}Update asset
Change an asset's display name, move it to another Media Library folder, or set its structured metadata, without changing its link.
Inputs
- Public ID
public_idtextRequired - The asset's public ID, such as products/red-shoe, from an upload or 'List assets'. Leave off the file extension, except for raw files.
- Resource type
resource_typetext - What kind of asset it is. Defaults to image.One of:
image(Image (default)),video(Video or audio),raw(Other file (raw)). Default:image. - Delivery type
delivery_typetext - Who can open its link: public (upload), private or authenticated. Defaults to public.One of:
upload(Public (upload, default)),private,authenticated. Default:upload. - New display name
display_nametext - Dynamic folder mode only: the name shown in the Media Library. Its link does not change.
- Move to folder
asset_foldertext - Dynamic folder mode only: the Media Library folder to move it to. Its public ID and link do not change.
- Structured metadata
metadataobject - Values for structured metadata fields defined in your account, keyed by each field's external ID. Fields left out keep their values.
Outputs
asset_foldertext- The Media Library folder it is in (dynamic folder mode); empty for the root
asset_idtext- Cloudinary's permanent ID for the asset, which never changes
bytesnumber- Size in bytes
contextobject- Its context metadata, as keys and values
created_attext- When it was uploaded (ISO 8601, UTC)
display_nametext- The name shown in the Media Library (dynamic folder mode)
durationnumber- Length in seconds, for video and audio; 0 otherwise
foldertext- The folder its public ID puts it in (fixed folder mode); empty otherwise
formattext- File format, such as jpg or mp4; empty for raw files
heightnumber- Height in pixels; 0 when it has none
metadataobject- Its structured metadata values, by field external ID
original_filenametext- The name of the file it was uploaded from, if known
public_idtext- The asset's public ID: its name in links, and what other Cloudinary steps take
resource_typetext- image, video (also audio) or raw (any other file)
secure_urltext- Its delivery link over https
tagslist- Its tags
typetext- Delivery type: upload (public), private or authenticated
urltext- Its delivery link over http
versiontext- Version number, which changes when the file is replaced
widthnumber- Width in pixels; 0 when it has none
Example output
{
"asset_folder": "products",
"asset_id": "03a5b92135161439031d3834c04bc31b",
"bytes": 120253,
"context": {
"alt": "A red shoe"
},
"created_at": "2026-10-20T08:40:54Z",
"display_name": "red-shoe",
"duration": 0,
"folder": "",
"format": "jpg",
"height": 576,
"metadata": {},
"original_filename": "red-shoe",
"public_id": "products/red-shoe",
"resource_type": "image",
"secure_url": "https://res.cloudinary.com/demo/image/upload/v1719304854/products/red-shoe.jpg",
"tags": [
"shoes",
"sale"
],
"type": "upload",
"url": "http://res.cloudinary.com/demo/image/upload/v1719304854/products/red-shoe.jpg",
"version": "1719304854",
"width": 864
}Upload file
Upload an image, video, audio or any other file to Cloudinary from Lodol or a link, with its folder, name, tags, context and structured metadata.
Inputs
- File
filetextRequired - The file: upload one, pick a file from an earlier step, or paste a link Cloudinary can fetch (https, http, ftp, s3 or gs). Up to 100 MB from Lodol; your plan may set a lower limit.
- Resource type
resource_typetext - Image, video (also audio) or any other file (raw). Left on automatic, Cloudinary works it out from the file.One of:
auto(Work it out from the file (default)),image,video(Video or audio),raw(Other file (raw)). Default:auto. - Delivery type
delivery_typetext - Who can open its link: public (upload), private or authenticated. Defaults to public.One of:
upload(Public (upload, default)),private,authenticated. Default:upload. - Public ID
public_idtext - The name in the asset's link, such as summer/red-shoe, with no file extension (raw files keep theirs). Leave blank for a random one.
- Folder
foldertext - A folder to put the file in, such as products/shoes. It also becomes the start of the public ID, so it is part of the link. Works in both folder modes.
- Media Library folder
asset_foldertext - Dynamic folder mode only (every account made since June 2024): the Media Library folder to put the file in, without changing its public ID or link. Use this or Folder, not both.
- Public ID prefix
public_id_prefixtext - Dynamic folder mode only: a path put before the public ID, such as shop/2026, which shows in the link but not in the Media Library.
- Display name
display_nametext - Dynamic folder mode only: the name shown in the Media Library. It can have spaces but no slashes, and does not change the link.
- Use the file's name
use_filenametrue/false - When no public ID is given, use the uploaded file's name instead of random characters.
- Keep names unique
unique_filenametrue/false - With 'Use the file's name', add random characters so two uploads never share a public ID. Cloudinary's default is yes.
- Replace an existing asset
overwritetrue/false - Replace an asset that already has this public ID. Cloudinary's default is yes; turn off to keep the existing one.
- Tags
tagslist - Labels to attach so you can group and find the asset later, as a list or separated by commas.
- Context metadata
contextobject - Keys and values to keep with the asset, such as alt text and a caption: {"alt": "A red shoe", "caption": "Summer sale"}.
- Structured metadata
metadataobject - Values for structured metadata fields already defined in your Cloudinary account, keyed by each field's external ID.
- Upload preset
upload_presettext - An upload preset from your account, to apply its settings. The fields here win over the preset's.
Outputs
asset_foldertext- The Media Library folder it is in (dynamic folder mode); empty for the root
asset_idtext- Cloudinary's permanent ID for the asset, which never changes
bytesnumber- Size in bytes
contextobject- Its context metadata, as keys and values
created_attext- When it was uploaded (ISO 8601, UTC)
display_nametext- The name shown in the Media Library (dynamic folder mode)
durationnumber- Length in seconds, for video and audio; 0 otherwise
foldertext- The folder its public ID puts it in (fixed folder mode); empty otherwise
formattext- File format, such as jpg or mp4; empty for raw files
heightnumber- Height in pixels; 0 when it has none
metadataobject- Its structured metadata values, by field external ID
original_filenametext- The name of the file it was uploaded from, if known
public_idtext- The asset's public ID: its name in links, and what other Cloudinary steps take
resource_typetext- image, video (also audio) or raw (any other file)
secure_urltext- Its delivery link over https
tagslist- Its tags
typetext- Delivery type: upload (public), private or authenticated
urltext- Its delivery link over http
versiontext- Version number, which changes when the file is replaced
widthnumber- Width in pixels; 0 when it has none
Example output
{
"asset_folder": "products",
"asset_id": "03a5b92135161439031d3834c04bc31b",
"bytes": 120253,
"context": {
"alt": "A red shoe"
},
"created_at": "2026-10-20T08:40:54Z",
"display_name": "red-shoe",
"duration": 0,
"folder": "",
"format": "jpg",
"height": 576,
"metadata": {},
"original_filename": "red-shoe",
"public_id": "products/red-shoe",
"resource_type": "image",
"secure_url": "https://res.cloudinary.com/demo/image/upload/v1719304854/products/red-shoe.jpg",
"tags": [
"shoes",
"sale"
],
"type": "upload",
"url": "http://res.cloudinary.com/demo/image/upload/v1719304854/products/red-shoe.jpg",
"version": "1719304854",
"width": 864
}Upload image from URL
Upload an image to Cloudinary from a web link (URL).
Inputs
- Image URL
image_urltextRequired - The web link (URL) of the image to upload.
- Folder
foldertext - The folder to store the uploaded image in, for example products/photos. It also becomes part of the image's public ID and link. If left blank, the image is stored in your main folder.
- Custom name
public_idtext - A custom name to identify the file in Cloudinary (its public ID). If left blank, Cloudinary generates one automatically.
- Tags
tagslist - Labels to attach to the uploaded image so you can group and find it later in Cloudinary.
Outputs
asset_foldertext- The Media Library folder it is in (dynamic folder mode); empty for the root
asset_idtext- Cloudinary's permanent ID for the asset, which never changes
bytesnumber- Size in bytes
contextobject- Its context metadata, as keys and values
created_attext- When it was uploaded (ISO 8601, UTC)
display_nametext- The name shown in the Media Library (dynamic folder mode)
durationnumber- Length in seconds, for video and audio; 0 otherwise
foldertext- The folder its public ID puts it in (fixed folder mode); empty otherwise
formattext- File format, such as jpg or mp4; empty for raw files
heightnumber- Height in pixels; 0 when it has none
metadataobject- Its structured metadata values, by field external ID
original_filenametext- The name of the file it was uploaded from, if known
public_idtext- The asset's public ID: its name in links, and what other Cloudinary steps take
resource_typetext- image, video (also audio) or raw (any other file)
secure_urltext- Its delivery link over https
tagslist- Its tags
typetext- Delivery type: upload (public), private or authenticated
urltext- Its delivery link over http
versiontext- Version number, which changes when the file is replaced
widthnumber- Width in pixels; 0 when it has none
Example output
{
"asset_folder": "products",
"asset_id": "03a5b92135161439031d3834c04bc31b",
"bytes": 120253,
"context": {
"alt": "A red shoe"
},
"created_at": "2026-10-20T08:40:54Z",
"display_name": "red-shoe",
"duration": 0,
"folder": "",
"format": "jpg",
"height": 576,
"metadata": {},
"original_filename": "red-shoe",
"public_id": "products/red-shoe",
"resource_type": "image",
"secure_url": "https://res.cloudinary.com/demo/image/upload/v1719304854/products/red-shoe.jpg",
"tags": [
"shoes",
"sale"
],
"type": "upload",
"url": "http://res.cloudinary.com/demo/image/upload/v1719304854/products/red-shoe.jpg",
"version": "1719304854",
"width": 864
}