Documentation Index

Fetch the complete documentation index at: https://cloudinary.com/documentation/llms.txt

Use this file to discover all available pages before exploring further.

Image & Video APIs

What's the difference between an asset ID and a public ID?

Last updated: Oct-05-2026

Every asset in Cloudinary has two unique identifiers: a public ID and an asset ID. They aren't interchangeable. The public ID is the name you use in delivery URLs and in most API calls, while the asset ID is an immutable identifier that stays the same even if the public ID changes.

If you're looking for an asset ID in the Media Library and can't find it, that's expected: the Media Library doesn't display it as a field. This page explains how the two identifiers differ, how to retrieve the asset ID, and when to use each one.

Note
Assets in dynamic folder mode also have a display name, which is the name shown in the Media Library. It's a label rather than an identifier: it doesn't have to be unique, it isn't part of the delivery URL, and changing it doesn't affect either the public ID or the asset ID.

How the two identifiers differ

Property Public ID Asset ID
Example value products/summer-shoe e115700ef8541814f391abf7fed6e1b1
Who sets it You, when you upload the asset. If you don't specify one, Cloudinary assigns a random public ID. Cloudinary, automatically. You can't set or change it.
Can it change? Yes. Renaming an asset changes its public ID, and in the legacy fixed folder mode so does moving it between folders. For the full list of reasons, see Why has an asset's public ID changed? No. It's immutable for the lifetime of the asset.
Uniqueness Unique within the product environment for a given asset type and delivery type. The same public ID can exist for both an image and a video. Unique within the product environment, regardless of asset type, delivery type, or public ID.
Used in delivery URLs Yes. It appears at the end of the delivery URL, before the file extension. No. You can't deliver or transform an asset by its asset ID.
Identifies an asset on its own No. You need the resource_type (asset type) and type (delivery type) alongside it. Yes. The asset ID alone identifies the asset.
Shown in the Media Library Yes, in the Summary tab of the asset drill-down page. Not as a field, but it's part of the drill-down page URL. See Find the asset ID in the Media Library.

How to retrieve an asset ID

In the upload response

Every upload response includes the asset_id of the newly uploaded asset, so you can store it alongside your own records at upload time:

For details of the other identifiers returned, see Identification.

With the Admin API

If the asset is already in your product environment, get its details by public ID and read the asset_id from the response:

See Get details of a single resource by public ID.

To retrieve asset IDs in bulk, use the Search API. The asset_id field is always included in search results, so you don't need to request it explicitly.

Find the asset ID in the Media Library

The Media Library doesn't show the asset ID as a field in the Summary tab or as a column in List view, but it does appear in the URL of the asset's drill-down page. Double-click an asset to open its drill-down page, then take the value between /asset/ and /manage from the address bar:

In this example, the asset ID is e115700ef8541814f391abf7fed6e1b1.

Note
You can also paste an asset ID into the Global Search bar to find the asset it belongs to, which is useful when an API response or webhook gives you an asset ID and you want to see the asset in the Media Library.

When to use each identifier

Use the public ID for:

  • Building delivery and transformation URLs, either directly or through an SDK.
  • The majority of Upload API and Admin API calls, together with the asset type and delivery type.

Use the asset ID for:

Related topics

✔️ Feedback sent!

Rate this page:

one star two stars three stars four stars five stars