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.
Collections API
Download OpenAPI DocumentThe Collections API enables you to organize your assets into collections and share them with others through public pages. Create manual collections with an explicit list of assets, or dynamic collections defined by a saved filter expression that automatically reflects matching assets.
The API uses Basic Authentication over HTTPS with your API Key and API Secret from the Cloudinary Console, or a user bearer JWT as an alternative.
Key capabilities:
- Create, update, and delete manual or dynamic collections of assets
- Add assets to, remove assets from, and list the assets in a collection
- Publish a collection as a shareable public page, optionally restricted to allowed emails or domains
- List, update, and unpublish a collection's public pages
The Collections API is available in the Cloudinary Python SDK (version 1.47.0 and later), in the cloudinary.collections module. The method names match the endpoints below one to one:
From other languages, call the REST endpoints directly.
Useful links:
Note: Just like the Media Library, Collections in the API are a premium Assets Enterprise feature and depend on your account setup. For the Assets Free plan, collections are limited to a maximum of 3 collections, with up to 50 assets in a collection. Contact us if you need more collections.
Endpoints
- GET
/{cloud_name}/collections - POST
/{cloud_name}/collections - GET
/{cloud_name}/collections/{collection_id} - PUT
/{cloud_name}/collections/{collection_id} - DEL
/{cloud_name}/collections/{collection_id} - GET
/{cloud_name}/collections/{collection_id}/assets - POST
/{cloud_name}/collections/{collection_id}/assets - DEL
/{cloud_name}/collections/{collection_id}/assets - GET
/{cloud_name}/collections/{collection_id}/public_pages - POST
/{cloud_name}/collections/{collection_id}/public_pages - GET
/{cloud_name}/collections/{collection_id}/public_pages/{public_page_id} - PUT
/{cloud_name}/collections/{collection_id}/public_pages/{public_page_id} - DEL
/{cloud_name}/collections/{collection_id}/public_pages/{public_page_id}
Returns the collections the caller may read, most-recently-updated first by default (updated_at desc). Results are paginated: pass the returned next_cursor back to fetch the next page.
Path parameters
- cloud_name stringRequired
The cloud name of the product environment.
example"your-cloud-name"
Query parameters
- query string
Case-insensitive filter on the collection name. The text is split on spaces and hyphens, and a collection is returned if a word in its name starts with any of the resulting words. For example,
summatches "Summer Campaign", andwinter salematches both "Winter Sale" and "Yearly sale". A word that matches nothing is ignored.example"summer" - sort_by string
Sort expression:
<field> <direction>, optionally comma-separated for a multi-key sort (e.g.name asc, created_at desc).fieldis one ofname,created_at, orupdated_at, the same field names the response uses, anddirectionisascordesc. Defaults toupdated_at desc.example"name asc" - max_results integer
Maximum number of collections to return (1-100, default 20).
min 1max 100example20 - next_cursor string
Opaque cursor from a previous response's
next_cursorto fetch the next page.
Responses
200 Collections listed successfully.
Response returned by the List collections endpoint. data and total_count are always present, so a search that matches nothing returns {"data": [], "total_count": 0} rather than an empty object. next_cursor follows the usual cursor convention and is omitted once there are no further pages.
- data Entity.Collection[]Required
The page of collections.
ShowHide child attributes of data
Items Entity.CollectionA collection resource.
- id string
The external ID of the collection.
example"col_8f3a2b1c9d4e" - name string
Name of the collection.
example"Summer Campaign Assets" - creator_type string
Indicates whether the collection was created by a Console user or through the API.
example"user"enum"user""api" - creator_id string
Who created the collection. When
creator_typeisuser, this is the external ID of the Console user; Enterprise customers can get more details about the user with the Get user endpoint of the Provisioning API. Whencreator_typeisapi, this is the API key used to create the collection.example"usr_4a1b2c3d5e6f" - created_at string
When the collection was created.
formatdate-timeRFC 3339 date-timeexample"2026-03-14T10:15:00Z" - updated_at string
When the collection was last modified.
formatdate-timeRFC 3339 date-timeexample"2026-03-15T09:30:00Z" - description string
Optional description of the collection.
example"Approved photography for the summer campaign launch." - type string
The type of collection.
manualholds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint;dynamicis defined by a saved filter expression and is populated automatically.example"dynamic"enum"manual""dynamic" - configuration Entity.CollectionConfiguration
Configuration for a
dynamiccollection. Required when creating adynamiccollection, and not allowed for amanualcollection.ShowHide child attributes of configuration
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
- asset_count integernullable
Number of assets in the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example12 - cover_asset_url stringnullable
Delivery URL of an automatically selected cover asset for the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example"https://res.cloudinary.com/demo/image/upload/sample.jpg"
- next_cursor stringnullable
Opaque cursor for the next page. Omitted when there are no further pages.
example"eyJsYXN0X21vZGlmaWVkX2F0IjoxNzQwNTg0MzAwfQ" - total_count integerRequired
Total number of collections matching the query across all pages.
example42
400 Bad request.
- message string
Human-readable description of the error.
example"Bad Request. Please check your request for errors."
401 Unauthorized.
- message string
Human-readable description of the error.
example"Invalid credentials"
403 Forbidden.
- message string
Human-readable description of the error.
example"Forbidden."
500 Internal server error.
- message string
Human-readable description of the error.
example"Internal server error. Please try again later."
/{cloud_name}/collectionscurl 'https://api.cloudinary.com/v2/asset_management/CLOUD_NAME/collections' \
-u 'API_KEY:API_SECRET'{
"data": [
{
"id": "col_8f3a2b1c9d4e",
"name": "Summer Campaign Assets",
"creator_type": "user",
"creator_id": "usr_4a1b2c3d5e6f",
"created_at": "2026-03-14T10:15:00Z",
"updated_at": "2026-03-15T09:30:00Z",
"description": "Approved photography for the summer campaign launch.",
"type": "dynamic",
"configuration": {
"expression": "tags = \"summer-campaign\" AND resource_type:image"
},
"asset_count": 12,
"cover_asset_url": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
}
],
"next_cursor": "eyJsYXN0X21vZGlmaWVkX2F0IjoxNzQwNTg0MzAwfQ",
"total_count": 42
}{
"message": "Bad Request. Please check your request for errors."
}{
"message": "Invalid credentials"
}{
"message": "Forbidden."
}{
"message": "Internal server error. Please try again later."
}Creates a collection under the given product environment and makes the caller the owner.
Path parameters
- cloud_name stringRequired
The cloud name of the product environment.
example"your-cloud-name"
Body Required application/json
- name stringRequired
Name of the collection.
example"Summer Campaign Assets" - description string
Optional description of the collection.
example"Approved photography for the summer campaign launch." - type string
Type of the collection.
manualholds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint;dynamicis defined by a saved filter expression and is populated automatically.default"manual"example"dynamic"enum"manual""dynamic" - configuration Entity.CollectionConfiguration
Configuration for a
dynamiccollection. Required when creating adynamiccollection, and not allowed for amanualcollection.ShowHide child attributes of configuration
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
Responses
201 Collection created successfully.
Response returned by the Create a collection endpoint.
- data Entity.Collection
A collection resource.
ShowHide child attributes of data
- id string
The external ID of the collection.
example"col_8f3a2b1c9d4e" - name string
Name of the collection.
example"Summer Campaign Assets" - creator_type string
Indicates whether the collection was created by a Console user or through the API.
example"user"enum"user""api" - creator_id string
Who created the collection. When
creator_typeisuser, this is the external ID of the Console user; Enterprise customers can get more details about the user with the Get user endpoint of the Provisioning API. Whencreator_typeisapi, this is the API key used to create the collection.example"usr_4a1b2c3d5e6f" - created_at string
When the collection was created.
formatdate-timeRFC 3339 date-timeexample"2026-03-14T10:15:00Z" - updated_at string
When the collection was last modified.
formatdate-timeRFC 3339 date-timeexample"2026-03-15T09:30:00Z" - description string
Optional description of the collection.
example"Approved photography for the summer campaign launch." - type string
The type of collection.
manualholds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint;dynamicis defined by a saved filter expression and is populated automatically.example"dynamic"enum"manual""dynamic" - configuration Entity.CollectionConfiguration
Configuration for a
dynamiccollection. Required when creating adynamiccollection, and not allowed for amanualcollection.ShowHide child attributes of configuration
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
- asset_count integernullable
Number of assets in the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example12 - cover_asset_url stringnullable
Delivery URL of an automatically selected cover asset for the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example"https://res.cloudinary.com/demo/image/upload/sample.jpg"
400 Bad request.
- message string
Human-readable description of the error.
example"Bad Request. Please check your request for errors."
401 Unauthorized.
- message string
Human-readable description of the error.
example"Invalid credentials"
403 Forbidden.
- message string
Human-readable description of the error.
example"Forbidden."
500 Internal server error.
- message string
Human-readable description of the error.
example"Internal server error. Please try again later."
/{cloud_name}/collectionscurl -X POST 'https://api.cloudinary.com/v2/asset_management/CLOUD_NAME/collections' \
-u 'API_KEY:API_SECRET' \
-H 'Content-Type: application/json' \
-d '{
"name": "Summer campaign images",
"type": "dynamic",
"configuration": {
"expression": "tags = \"summer-campaign\" AND resource_type:image"
}
}'{
"data": {
"id": "col_8f3a2b1c9d4e",
"name": "Summer Campaign Assets",
"creator_type": "user",
"creator_id": "usr_4a1b2c3d5e6f",
"created_at": "2026-03-14T10:15:00Z",
"updated_at": "2026-03-15T09:30:00Z",
"description": "Approved photography for the summer campaign launch.",
"type": "dynamic",
"configuration": {
"expression": "tags = \"summer-campaign\" AND resource_type:image"
},
"asset_count": 12,
"cover_asset_url": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
}
}{
"message": "Bad Request. Please check your request for errors."
}{
"message": "Invalid credentials"
}{
"message": "Forbidden."
}{
"message": "Internal server error. Please try again later."
}Returns a single collection by its external ID.
Path parameters
- cloud_name stringRequired
The cloud name of the product environment.
example"your-cloud-name" - collection_id stringRequired
External ID of the collection to retrieve, update, or delete.
example"col_8f3a2b1c9d4e"
Responses
200 Collection retrieved successfully.
Response returned by the Get a collection endpoint.
- data Entity.Collection
A collection resource.
ShowHide child attributes of data
- id string
The external ID of the collection.
example"col_8f3a2b1c9d4e" - name string
Name of the collection.
example"Summer Campaign Assets" - creator_type string
Indicates whether the collection was created by a Console user or through the API.
example"user"enum"user""api" - creator_id string
Who created the collection. When
creator_typeisuser, this is the external ID of the Console user; Enterprise customers can get more details about the user with the Get user endpoint of the Provisioning API. Whencreator_typeisapi, this is the API key used to create the collection.example"usr_4a1b2c3d5e6f" - created_at string
When the collection was created.
formatdate-timeRFC 3339 date-timeexample"2026-03-14T10:15:00Z" - updated_at string
When the collection was last modified.
formatdate-timeRFC 3339 date-timeexample"2026-03-15T09:30:00Z" - description string
Optional description of the collection.
example"Approved photography for the summer campaign launch." - type string
The type of collection.
manualholds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint;dynamicis defined by a saved filter expression and is populated automatically.example"dynamic"enum"manual""dynamic" - configuration Entity.CollectionConfiguration
Configuration for a
dynamiccollection. Required when creating adynamiccollection, and not allowed for amanualcollection.ShowHide child attributes of configuration
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
- asset_count integernullable
Number of assets in the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example12 - cover_asset_url stringnullable
Delivery URL of an automatically selected cover asset for the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example"https://res.cloudinary.com/demo/image/upload/sample.jpg"
401 Unauthorized.
- message string
Human-readable description of the error.
example"Invalid credentials"
403 Forbidden.
- message string
Human-readable description of the error.
example"Forbidden."
404 Not found.
- message string
Human-readable description of the error.
example"Not found."
500 Internal server error.
- message string
Human-readable description of the error.
example"Internal server error. Please try again later."
/{cloud_name}/collections/{collection_id}curl 'https://api.cloudinary.com/v2/asset_management/CLOUD_NAME/collections/col_8f3a2b1c9d4e' \
-u 'API_KEY:API_SECRET'{
"data": {
"id": "col_8f3a2b1c9d4e",
"name": "Summer Campaign Assets",
"creator_type": "user",
"creator_id": "usr_4a1b2c3d5e6f",
"created_at": "2026-03-14T10:15:00Z",
"updated_at": "2026-03-15T09:30:00Z",
"description": "Approved photography for the summer campaign launch.",
"type": "dynamic",
"configuration": {
"expression": "tags = \"summer-campaign\" AND resource_type:image"
},
"asset_count": 12,
"cover_asset_url": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
}
}{
"message": "Invalid credentials"
}{
"message": "Forbidden."
}{
"message": "Not found."
}{
"message": "Internal server error. Please try again later."
}Updates a collection's name, description, and (for dynamic collections) configuration. Only the fields you include in the request are changed. The caller must be allowed to update the collection. A collection's type (manual/dynamic) is fixed at creation and can't be changed.
Path parameters
- cloud_name stringRequired
The cloud name of the product environment.
example"your-cloud-name" - collection_id stringRequired
External ID of the collection to retrieve, update, or delete.
example"col_8f3a2b1c9d4e"
Body Required application/json
The collection attributes to update. Only the fields you include are changed. A collection's type is set when the collection is created and can't be changed.
- name string
New name for the collection. Omit to leave the current name unchanged.
example"Summer Campaign Assets 2026" - description stringnullable
New description for the collection. Send
nullor an empty string to clear it. Omit to leave the current description unchanged.example"Approved photography for the 2026 summer campaign launch." - configuration Entity.CollectionConfiguration
Configuration for a
dynamiccollection. Required when creating adynamiccollection, and not allowed for amanualcollection.ShowHide child attributes of configuration
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
Responses
200 Collection updated successfully.
Response returned by the Update a collection endpoint.
- data Entity.Collection
A collection resource.
ShowHide child attributes of data
- id string
The external ID of the collection.
example"col_8f3a2b1c9d4e" - name string
Name of the collection.
example"Summer Campaign Assets" - creator_type string
Indicates whether the collection was created by a Console user or through the API.
example"user"enum"user""api" - creator_id string
Who created the collection. When
creator_typeisuser, this is the external ID of the Console user; Enterprise customers can get more details about the user with the Get user endpoint of the Provisioning API. Whencreator_typeisapi, this is the API key used to create the collection.example"usr_4a1b2c3d5e6f" - created_at string
When the collection was created.
formatdate-timeRFC 3339 date-timeexample"2026-03-14T10:15:00Z" - updated_at string
When the collection was last modified.
formatdate-timeRFC 3339 date-timeexample"2026-03-15T09:30:00Z" - description string
Optional description of the collection.
example"Approved photography for the summer campaign launch." - type string
The type of collection.
manualholds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint;dynamicis defined by a saved filter expression and is populated automatically.example"dynamic"enum"manual""dynamic" - configuration Entity.CollectionConfiguration
Configuration for a
dynamiccollection. Required when creating adynamiccollection, and not allowed for amanualcollection.ShowHide child attributes of configuration
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
- asset_count integernullable
Number of assets in the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example12 - cover_asset_url stringnullable
Delivery URL of an automatically selected cover asset for the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example"https://res.cloudinary.com/demo/image/upload/sample.jpg"
400 Bad request.
- message string
Human-readable description of the error.
example"Bad Request. Please check your request for errors."
401 Unauthorized.
- message string
Human-readable description of the error.
example"Invalid credentials"
403 Forbidden.
- message string
Human-readable description of the error.
example"Forbidden."
404 Not found.
- message string
Human-readable description of the error.
example"Not found."
500 Internal server error.
- message string
Human-readable description of the error.
example"Internal server error. Please try again later."
/{cloud_name}/collections/{collection_id}curl -X PUT 'https://api.cloudinary.com/v2/asset_management/CLOUD_NAME/collections/col_8f3a2b1c9d4e' \
-u 'API_KEY:API_SECRET' \
-H 'Content-Type: application/json' \
-d '{
"name": "Summer Campaign Assets 2026",
"description": "Approved photography for the 2026 summer campaign launch.",
"configuration": {
"expression": "tags = \"summer-campaign\" AND resource_type:image"
}
}'{
"data": {
"id": "col_8f3a2b1c9d4e",
"name": "Summer Campaign Assets",
"creator_type": "user",
"creator_id": "usr_4a1b2c3d5e6f",
"created_at": "2026-03-14T10:15:00Z",
"updated_at": "2026-03-15T09:30:00Z",
"description": "Approved photography for the summer campaign launch.",
"type": "dynamic",
"configuration": {
"expression": "tags = \"summer-campaign\" AND resource_type:image"
},
"asset_count": 12,
"cover_asset_url": "https://res.cloudinary.com/demo/image/upload/sample.jpg"
}
}{
"message": "Bad Request. Please check your request for errors."
}{
"message": "Invalid credentials"
}{
"message": "Forbidden."
}{
"message": "Not found."
}{
"message": "Internal server error. Please try again later."
}Deletes a collection. The caller must be allowed to update the collection; the underlying assets are not modified or deleted.
Path parameters
- cloud_name stringRequired
The cloud name of the product environment.
example"your-cloud-name" - collection_id stringRequired
External ID of the collection to retrieve, update, or delete.
example"col_8f3a2b1c9d4e"
Responses
200 Collection deleted successfully.
Response returned by the Delete a collection endpoint.
- message stringRequired
Confirmation that the collection was deleted.
example"Collection deleted successfully."
401 Unauthorized.
- message string
Human-readable description of the error.
example"Invalid credentials"
403 Forbidden.
- message string
Human-readable description of the error.
example"Forbidden."
404 Not found.
- message string
Human-readable description of the error.
example"Not found."
500 Internal server error.
- message string
Human-readable description of the error.
example"Internal server error. Please try again later."
/{cloud_name}/collections/{collection_id}curl -X DELETE 'https://api.cloudinary.com/v2/asset_management/CLOUD_NAME/collections/col_8f3a2b1c9d4e' \
-u 'API_KEY:API_SECRET'{
"message": "Collection deleted successfully."
}{
"message": "Invalid credentials"
}{
"message": "Forbidden."
}{
"message": "Not found."
}{
"message": "Internal server error. Please try again later."
}Returns the assets in a collection, newest first by default. For a manual collection, these are the assets that have been added to it; for a dynamic collection, they're the assets currently matching its filter expression. Only assets the caller has permission to view are included. Results are paginated: pass the returned next_cursor back to fetch the next page.
Path parameters
- cloud_name stringRequired
The cloud name of the product environment.
example"your-cloud-name" - collection_id stringRequired
External ID of the collection whose assets to list, add, or remove.
example"col_8f3a2b1c9d4e"
Query parameters
- sort_by string
Sort expression:
<field> <direction>, optionally comma-separated for a multi-key sort (e.g.bytes desc, created_at asc).fieldis one ofcreated_at,uploaded_at,public_id,display_name, orbytes, anddirectionisascordesc. Defaults tocreated_at desc. When paging withnext_cursor, send the samesort_byon every page; a cursor is only valid for the sort it was issued with.example"bytes desc" - max_results integer
Maximum number of assets to return (1-100, default 20).
min 1max 100example20 - next_cursor string
Opaque cursor from a previous response's
next_cursorto fetch the next page. Send it with the samesort_by(andmax_results) as the request that returned it.
Responses
200 Assets listed successfully.
Response returned by the List a collection's assets endpoint. data and total_count are always present, so a collection with no assets returns {"data": [], "total_count": 0}. next_cursor follows the usual cursor convention and is omitted once there are no further pages.
- data Entity.CollectionAsset[]Required
The page of assets.
ShowHide child attributes of data
Items Entity.CollectionAssetAn asset in a collection. Every field is always present in a response: an unset value (
display_name, orwidth/heightfor assets without dimensions) is returned asnullrather than being omitted, the same as on the public page entity.- asset_id stringRequired
The immutable ID of the asset. This is the value the Add assets to a collection and Remove assets from a collection endpoints accept.
example"3515c6000a548515f1134043f9785c2f" - public_id stringRequired
The public ID of the asset.
example"summer/beach-hero" - display_name stringRequirednullable
The asset's display name, or null when it has none.
example"beach-hero" - resource_type stringRequired
The resource type of the asset (
image,video, orraw).example"image" - type stringRequired
The delivery type of the asset, e.g.
upload,private, orauthenticated.example"upload" - format stringRequired
The asset's file format. Empty for raw assets without an extension.
example"jpg" - bytes integerRequired
The asset's size in bytes.
formatint64Signed 64-bit integerexample482113 - width integerRequirednullable
Width in pixels, or null for assets without dimensions (e.g. raw files).
example1920 - height integerRequirednullable
Height in pixels, or null for assets without dimensions (e.g. raw files).
example1080 - secure_url stringRequired
The HTTPS delivery URL of the asset.
example"https://res.cloudinary.com/demo/image/upload/v1720000000/summer/beach-hero.jpg" - created_at stringRequired
When the asset was created.
formatdate-timeRFC 3339 date-timeexample"2026-03-14T10:15:00Z"
- next_cursor stringnullable
Opaque cursor for the next page. Omitted when there are no further pages.
example"8edbc61040178db60b0973ca9494bf3a" - total_count integerRequired
Total number of assets in the collection that the caller may view.
example12
400 Bad request.
- message string
Human-readable description of the error.
example"Bad Request. Please check your request for errors."
401 Unauthorized.
- message string
Human-readable description of the error.
example"Invalid credentials"
403 Forbidden.
- message string
Human-readable description of the error.
example"Forbidden."
404 Not found.
- message string
Human-readable description of the error.
example"Not found."
500 Internal server error.
- message string
Human-readable description of the error.
example"Internal server error. Please try again later."
/{cloud_name}/collections/{collection_id}/assetscurl 'https://api.cloudinary.com/v2/asset_management/CLOUD_NAME/collections/col_8f3a2b1c9d4e/assets' \
-u 'API_KEY:API_SECRET'{
"data": [
{
"asset_id": "3515c6000a548515f1134043f9785c2f",
"public_id": "summer/beach-hero",
"display_name": "beach-hero",
"resource_type": "image",
"type": "upload",
"format": "jpg",
"bytes": 482113,
"width": 1920,
"height": 1080,
"secure_url": "https://res.cloudinary.com/demo/image/upload/v1720000000/summer/beach-hero.jpg",
"created_at": "2026-03-14T10:15:00Z"
}
],
"next_cursor": "8edbc61040178db60b0973ca9494bf3a",
"total_count": 12
}{
"message": "Bad Request. Please check your request for errors."
}{
"message": "Invalid credentials"
}{
"message": "Forbidden."
}{
"message": "Not found."
}{
"message": "Internal server error. Please try again later."
}Adds assets to an existing collection. The caller must be allowed to update the collection and view the assets.
Path parameters
- cloud_name stringRequired
The cloud name of the product environment.
example"your-cloud-name" - collection_id stringRequired
External ID of the collection whose assets to list, add, or remove.
example"col_8f3a2b1c9d4e"
Body Required application/json
A list of asset_id values of the assets to add to the collection.
Responses
200 Assets added successfully.
Response returned by the Add assets to a collection endpoint.
- data Entity.Collection
A collection resource.
ShowHide child attributes of data
- id string
The external ID of the collection.
example"col_8f3a2b1c9d4e" - name string
Name of the collection.
example"Summer Campaign Assets" - creator_type string
Indicates whether the collection was created by a Console user or through the API.
example"user"enum"user""api" - creator_id string
Who created the collection. When
creator_typeisuser, this is the external ID of the Console user; Enterprise customers can get more details about the user with the Get user endpoint of the Provisioning API. Whencreator_typeisapi, this is the API key used to create the collection.example"usr_4a1b2c3d5e6f" - created_at string
When the collection was created.
formatdate-timeRFC 3339 date-timeexample"2026-03-14T10:15:00Z" - updated_at string
When the collection was last modified.
formatdate-timeRFC 3339 date-timeexample"2026-03-15T09:30:00Z" - description string
Optional description of the collection.
example"Approved photography for the summer campaign launch." - type string
The type of collection.
manualholds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint;dynamicis defined by a saved filter expression and is populated automatically.example"dynamic"enum"manual""dynamic" - configuration Entity.CollectionConfiguration
Configuration for a
dynamiccollection. Required when creating adynamiccollection, and not allowed for amanualcollection.ShowHide child attributes of configuration
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
- asset_count integernullable
Number of assets in the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example12 - cover_asset_url stringnullable
Delivery URL of an automatically selected cover asset for the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example"https://res.cloudinary.com/demo/image/upload/sample.jpg"
400 Bad request.
- message string
Human-readable description of the error.
example"Bad Request. Please check your request for errors."
401 Unauthorized.
- message string
Human-readable description of the error.
example"Invalid credentials"
403 Forbidden.
- message string
Human-readable description of the error.
example"Forbidden."
404 Not found.
- message string
Human-readable description of the error.
example"Not found."
500 Internal server error.
- message string
Human-readable description of the error.
example"Internal server error. Please try again later."
/{cloud_name}/collections/{collection_id}/assetscurl -X POST 'https://api.cloudinary.com/v2/asset_management/CLOUD_NAME/collections/col_8f3a2b1c9d4e/assets' \
-u 'API_KEY:API_SECRET' \
-H 'Content-Type: application/json' \
-d '[
"ast_1a2b3c4d5e6f"
]'{
"data": {
"id": "col_8f3a2b1c9d4e",
"name": "Summer Campaign Assets",
"creator_type": "user",
"creator_id": "usr_4a1b2c3d5e6f",
"created_at": "2026-03-14T10:15:00Z",
"updated_at": "2026-03-15T09:30:00Z",
"description": "Approved photography for the summer campaign launch.",
"type": "manual"
}
}{
"message": "Bad Request. Please check your request for errors."
}{
"message": "Invalid credentials"
}{
"message": "Forbidden."
}{
"message": "Not found."
}{
"message": "Internal server error. Please try again later."
}Removes the specified assets from an existing collection. The caller must be allowed to update the collection. Assets that are not in the collection are ignored, and the underlying assets are not modified or deleted.
Path parameters
- cloud_name stringRequired
The cloud name of the product environment.
example"your-cloud-name" - collection_id stringRequired
External ID of the collection whose assets to list, add, or remove.
example"col_8f3a2b1c9d4e"
Body Required application/json
A list of asset_id values of the assets to remove from the collection.
Responses
200 Assets removed successfully.
Response returned by the Remove assets from a collection endpoint.
- data Entity.Collection
A collection resource.
ShowHide child attributes of data
- id string
The external ID of the collection.
example"col_8f3a2b1c9d4e" - name string
Name of the collection.
example"Summer Campaign Assets" - creator_type string
Indicates whether the collection was created by a Console user or through the API.
example"user"enum"user""api" - creator_id string
Who created the collection. When
creator_typeisuser, this is the external ID of the Console user; Enterprise customers can get more details about the user with the Get user endpoint of the Provisioning API. Whencreator_typeisapi, this is the API key used to create the collection.example"usr_4a1b2c3d5e6f" - created_at string
When the collection was created.
formatdate-timeRFC 3339 date-timeexample"2026-03-14T10:15:00Z" - updated_at string
When the collection was last modified.
formatdate-timeRFC 3339 date-timeexample"2026-03-15T09:30:00Z" - description string
Optional description of the collection.
example"Approved photography for the summer campaign launch." - type string
The type of collection.
manualholds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint;dynamicis defined by a saved filter expression and is populated automatically.example"dynamic"enum"manual""dynamic" - configuration Entity.CollectionConfiguration
Configuration for a
dynamiccollection. Required when creating adynamiccollection, and not allowed for amanualcollection.ShowHide child attributes of configuration
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
- asset_count integernullable
Number of assets in the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example12 - cover_asset_url stringnullable
Delivery URL of an automatically selected cover asset for the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example"https://res.cloudinary.com/demo/image/upload/sample.jpg"
400 Bad request.
- message string
Human-readable description of the error.
example"Bad Request. Please check your request for errors."
401 Unauthorized.
- message string
Human-readable description of the error.
example"Invalid credentials"
403 Forbidden.
- message string
Human-readable description of the error.
example"Forbidden."
404 Not found.
- message string
Human-readable description of the error.
example"Not found."
500 Internal server error.
- message string
Human-readable description of the error.
example"Internal server error. Please try again later."
/{cloud_name}/collections/{collection_id}/assetscurl -X DELETE 'https://api.cloudinary.com/v2/asset_management/CLOUD_NAME/collections/col_8f3a2b1c9d4e/assets' \
-u 'API_KEY:API_SECRET' \
-H 'Content-Type: application/json' \
-d '[
"ast_1a2b3c4d5e6f"
]'{
"data": {
"id": "col_8f3a2b1c9d4e",
"name": "Summer Campaign Assets",
"creator_type": "user",
"creator_id": "usr_4a1b2c3d5e6f",
"created_at": "2026-03-14T10:15:00Z",
"updated_at": "2026-03-15T09:30:00Z",
"description": "Approved photography for the summer campaign launch.",
"type": "manual"
}
}{
"message": "Bad Request. Please check your request for errors."
}{
"message": "Invalid credentials"
}{
"message": "Forbidden."
}{
"message": "Not found."
}{
"message": "Internal server error. Please try again later."
}Returns the public pages (shareable links) that have been created for the collection.
Path parameters
- cloud_name stringRequired
The cloud name of the product environment.
example"your-cloud-name" - collection_id stringRequired
External ID of the collection to create or list public pages for.
example"col_8f3a2b1c9d4e"
Responses
200 Public pages listed successfully.
Response returned by the List a collection's public pages endpoint. data is always present; a collection with no public pages returns {"data": []}.
- data Entity.PublicPage[]Required
ShowHide child attributes of data
Items Entity.PublicPageA public page (shareable link) for a collection. Every field is always present in a response: an unset value is returned as
null(orfalse/[]) rather than being omitted, so a read-modify-write round-trip never has to guess what an absent field meant.- id stringRequired
External ID of the public page.
example"pub_2c4d6e8f0a1b" - url stringRequired
The shareable URL of the public page, in the form
https://collection.cloudinary.com/<cloud_name>/<public_page_id>. It doesn't include the collection ID.example"https://collection.cloudinary.com/your-cloud-name/pub_2c4d6e8f0a1b" - name stringRequirednullable
Display name of the public page. May be null.
example"Summer Campaign Preview" - available_from stringRequirednullable
When the page becomes active. Null if the page is active immediately.
formatdate-timeRFC 3339 date-timeexample"2026-03-20T00:00:00Z" - expires_at stringRequirednullable
When the page expires. Null if the page never expires.
formatdate-timeRFC 3339 date-timeexample"2026-04-20T00:00:00Z" - show_download_original_option booleanRequired
Whether the option to download the original asset is shown.
exampletrue - download_transformations Entity.DownloadTransformation[]Required
Transformation templates that viewers of the public page can apply when downloading assets. Empty when the page offers none.
ShowHide child attributes of download_transformations
Items Entity.DownloadTransformationA transformation template offered for download on a public page.
- name string
Name of the transformation template.
example"thumbnail_400" - transformation string
The transformation definition behind the name.
example"c_thumb,w_400,g_face" - types string[]
Asset types the transformation is offered for.
example["image"]enum"image""video"
- protection_mode stringRequired
Secured-sharing protection mode of the public page.
nonemeans the page is unprotected;email_otpmeans viewers must verify an allowed email address with a one-time passcode before accessing the page.example"email_otp"enum"none""email_otp" - allowed_emails string[]Required
Email addresses allowed to access the page when it is protected, stored lowercased. Empty when the page is unprotected.
example["alice@example.com","bob@example.com"] - allowed_domains string[]Required
Email domains allowed to access the page when it is protected, stored lowercased and without a leading
@. Empty when the page is unprotected.example["example.com"] - allow_any booleanRequired
Whether any email address is allowed to access the page when it is protected.
examplefalse - custom_layout_url stringRequirednullable
URL of a custom HTML page in your product environment that replaces the public page's default design. Null when the page uses the default design. Only applied while the custom collection layout feature is on your plan.
example"https://res.cloudinary.com/demo/raw/upload/layouts/summer-page.html"
401 Unauthorized.
- message string
Human-readable description of the error.
example"Invalid credentials"
403 Forbidden.
- message string
Human-readable description of the error.
example"Forbidden."
404 Not found.
- message string
Human-readable description of the error.
example"Not found."
500 Internal server error.
- message string
Human-readable description of the error.
example"Internal server error. Please try again later."
/{cloud_name}/collections/{collection_id}/public_pagescurl 'https://api.cloudinary.com/v2/asset_management/CLOUD_NAME/collections/col_8f3a2b1c9d4e/public_pages' \
-u 'API_KEY:API_SECRET'{
"data": [
{
"id": "pub_2c4d6e8f0a1b",
"url": "https://collection.cloudinary.com/your-cloud-name/pub_2c4d6e8f0a1b",
"name": "Summer Campaign Preview",
"available_from": "2026-03-20T00:00:00Z",
"expires_at": "2026-04-20T00:00:00Z",
"show_download_original_option": true,
"download_transformations": [
{
"name": "thumbnail_400",
"transformation": "c_thumb,w_400,g_face",
"types": [
"image"
]
}
],
"protection_mode": "none",
"allowed_emails": [],
"allowed_domains": [],
"allow_any": false,
"custom_layout_url": null
},
{
"id": "pub_5e7f9a1b3c2d",
"url": "https://collection.cloudinary.com/your-cloud-name/pub_5e7f9a1b3c2d",
"name": "Summer Campaign Press Kit",
"available_from": "2026-04-01T00:00:00Z",
"expires_at": "2026-06-30T00:00:00Z",
"show_download_original_option": false,
"download_transformations": [],
"protection_mode": "email_otp",
"allowed_emails": [
"alice@example.com"
],
"allowed_domains": [
"example.com"
],
"allow_any": false,
"custom_layout_url": null
}
]
}{
"message": "Invalid credentials"
}{
"message": "Forbidden."
}{
"message": "Not found."
}{
"message": "Internal server error. Please try again later."
}Creates a shareable public page for the collection and returns its URL.
Path parameters
- cloud_name stringRequired
The cloud name of the product environment.
example"your-cloud-name" - collection_id stringRequired
External ID of the collection to create or list public pages for.
example"col_8f3a2b1c9d4e"
Body Required application/json
Settings for the public page. Every field is optional; omitted fields use their documented default.
- name stringnullable
Optional display name for the public page.
example"Summer Campaign Preview" - available_from stringnullable
When the page becomes active. If omitted or null, the page is active immediately.
formatdate-timeRFC 3339 date-timeexample"2026-03-20T00:00:00Z" - expires_at stringnullable
When the page expires. If omitted or null, the page never expires.
formatdate-timeRFC 3339 date-timeexample"2026-04-20T00:00:00Z" - show_download_original_option booleannullable
Whether viewers can download the original asset. Omit to use the account default set by an administrator in the Media Library Preferences.
exampletrue - download_transformations Entity.DownloadTransformationInput[]nullable
Named transformations that viewers of the public page can apply when downloading assets, referenced by name (see the Admin API's Get transformations endpoint to list the named transformations in your product environment). By default, each name must already be set as a transformation template; set
create_download_transformationstotrueto set any listed name that isn't one yet automatically. Omit or pass null to leave the page without download transformations. At most 200 entries.max items 200ShowHide child attributes of download_transformations
Items Entity.DownloadTransformationInputA named transformation to offer for download on a public page.
- name stringRequired
Name of an existing named transformation in this product environment.
example"thumbnail_400" - types string[]nullable
Asset types the transformation is offered for. Restrict this to the types the transformation actually produces correct results for (for example, a duration/trim transformation only makes sense for video), to avoid download errors for the other type. This is a property of the transformation template itself, shared by every public page in the product environment, not just this one: it can only be set the first time any public page offers this name for download. Omit
typeson that first request to make it available for bothimageandvideo. If the name is already available for download (set by an earlier request on this or another public page), omittypesto keep its existing setting, or send its exact current list; sending a different list fails withdownload_transformation_types_conflict. An empty list is rejected.min items 1example["video"]enum"image""video"
- create_download_transformations booleannullable
When
true, any name indownload_transformationsthat isn't yet set as a transformation template is set as one automatically. It then appears in the Console's templates list and counts toward your product environment's template limit. Whenfalseor omitted, the request instead fails withdownload_transformation_not_availableif any listed name isn't yet set as a transformation template, and nothing is changed.defaultfalseexampletrue
Responses
201 Public page created successfully.
Response returned by the Publish a collection endpoint.
- data Entity.PublicPage
A public page (shareable link) for a collection. Every field is always present in a response: an unset value is returned as
null(orfalse/[]) rather than being omitted, so a read-modify-write round-trip never has to guess what an absent field meant.ShowHide child attributes of data
- id stringRequired
External ID of the public page.
example"pub_2c4d6e8f0a1b" - url stringRequired
The shareable URL of the public page, in the form
https://collection.cloudinary.com/<cloud_name>/<public_page_id>. It doesn't include the collection ID.example"https://collection.cloudinary.com/your-cloud-name/pub_2c4d6e8f0a1b" - name stringRequirednullable
Display name of the public page. May be null.
example"Summer Campaign Preview" - available_from stringRequirednullable
When the page becomes active. Null if the page is active immediately.
formatdate-timeRFC 3339 date-timeexample"2026-03-20T00:00:00Z" - expires_at stringRequirednullable
When the page expires. Null if the page never expires.
formatdate-timeRFC 3339 date-timeexample"2026-04-20T00:00:00Z" - show_download_original_option booleanRequired
Whether the option to download the original asset is shown.
exampletrue - download_transformations Entity.DownloadTransformation[]Required
Transformation templates that viewers of the public page can apply when downloading assets. Empty when the page offers none.
ShowHide child attributes of download_transformations
Items Entity.DownloadTransformationA transformation template offered for download on a public page.
- name string
Name of the transformation template.
example"thumbnail_400" - transformation string
The transformation definition behind the name.
example"c_thumb,w_400,g_face" - types string[]
Asset types the transformation is offered for.
example["image"]enum"image""video"
- protection_mode stringRequired
Secured-sharing protection mode of the public page.
nonemeans the page is unprotected;email_otpmeans viewers must verify an allowed email address with a one-time passcode before accessing the page.example"email_otp"enum"none""email_otp" - allowed_emails string[]Required
Email addresses allowed to access the page when it is protected, stored lowercased. Empty when the page is unprotected.
example["alice@example.com","bob@example.com"] - allowed_domains string[]Required
Email domains allowed to access the page when it is protected, stored lowercased and without a leading
@. Empty when the page is unprotected.example["example.com"] - allow_any booleanRequired
Whether any email address is allowed to access the page when it is protected.
examplefalse - custom_layout_url stringRequirednullable
URL of a custom HTML page in your product environment that replaces the public page's default design. Null when the page uses the default design. Only applied while the custom collection layout feature is on your plan.
example"https://res.cloudinary.com/demo/raw/upload/layouts/summer-page.html"
400 Bad request.
- message string
Human-readable description of the error.
example"Bad Request. Please check your request for errors."
401 Unauthorized.
- message string
Human-readable description of the error.
example"Invalid credentials"
403 Forbidden.
- message string
Human-readable description of the error.
example"Forbidden."
404 Not found.
- message string
Human-readable description of the error.
example"Not found."
500 Internal server error.
- message string
Human-readable description of the error.
example"Internal server error. Please try again later."
/{cloud_name}/collections/{collection_id}/public_pagescurl -X POST 'https://api.cloudinary.com/v2/asset_management/CLOUD_NAME/collections/col_8f3a2b1c9d4e/public_pages' \
-u 'API_KEY:API_SECRET' \
-H 'Content-Type: application/json' \
-d '{
"name": "Summer Campaign Preview",
"available_from": "2026-03-20T00:00:00Z",
"expires_at": "2026-04-20T00:00:00Z",
"show_download_original_option": true,
"download_transformations": [
{
"name": "thumbnail_400"
},
{
"name": "trimmed_preview",
"types": [
"video"
]
}
],
"create_download_transformations": true
}'{
"data": {
"id": "pub_2c4d6e8f0a1b",
"url": "https://collection.cloudinary.com/your-cloud-name/pub_2c4d6e8f0a1b",
"name": "Summer Campaign Preview",
"available_from": "2026-03-20T00:00:00Z",
"expires_at": "2026-04-20T00:00:00Z",
"show_download_original_option": true,
"download_transformations": [
{
"name": "thumbnail_400",
"transformation": "c_thumb,w_400,g_face",
"types": [
"image"
]
}
],
"protection_mode": "email_otp",
"allowed_emails": [
"alice@example.com",
"bob@example.com"
],
"allowed_domains": [
"example.com"
],
"allow_any": false,
"custom_layout_url": "https://res.cloudinary.com/demo/raw/upload/layouts/summer-page.html"
}
}{
"message": "Bad Request. Please check your request for errors."
}{
"message": "Invalid credentials"
}{
"message": "Forbidden."
}{
"message": "Not found."
}{
"message": "Internal server error. Please try again later."
}Returns a single public page of a collection by its external ID.
Path parameters
- cloud_name stringRequired
The cloud name of the product environment.
example"your-cloud-name" - collection_id stringRequired
External ID of the collection the public page belongs to.
example"col_8f3a2b1c9d4e" - public_page_id stringRequired
External ID of the public page.
example"pub_2c4d6e8f0a1b"
Responses
200 Public page retrieved successfully.
Response returned by the Get a public page endpoint.
- data Entity.PublicPage
A public page (shareable link) for a collection. Every field is always present in a response: an unset value is returned as
null(orfalse/[]) rather than being omitted, so a read-modify-write round-trip never has to guess what an absent field meant.ShowHide child attributes of data
- id stringRequired
External ID of the public page.
example"pub_2c4d6e8f0a1b" - url stringRequired
The shareable URL of the public page, in the form
https://collection.cloudinary.com/<cloud_name>/<public_page_id>. It doesn't include the collection ID.example"https://collection.cloudinary.com/your-cloud-name/pub_2c4d6e8f0a1b" - name stringRequirednullable
Display name of the public page. May be null.
example"Summer Campaign Preview" - available_from stringRequirednullable
When the page becomes active. Null if the page is active immediately.
formatdate-timeRFC 3339 date-timeexample"2026-03-20T00:00:00Z" - expires_at stringRequirednullable
When the page expires. Null if the page never expires.
formatdate-timeRFC 3339 date-timeexample"2026-04-20T00:00:00Z" - show_download_original_option booleanRequired
Whether the option to download the original asset is shown.
exampletrue - download_transformations Entity.DownloadTransformation[]Required
Transformation templates that viewers of the public page can apply when downloading assets. Empty when the page offers none.
ShowHide child attributes of download_transformations
Items Entity.DownloadTransformationA transformation template offered for download on a public page.
- name string
Name of the transformation template.
example"thumbnail_400" - transformation string
The transformation definition behind the name.
example"c_thumb,w_400,g_face" - types string[]
Asset types the transformation is offered for.
example["image"]enum"image""video"
- protection_mode stringRequired
Secured-sharing protection mode of the public page.
nonemeans the page is unprotected;email_otpmeans viewers must verify an allowed email address with a one-time passcode before accessing the page.example"email_otp"enum"none""email_otp" - allowed_emails string[]Required
Email addresses allowed to access the page when it is protected, stored lowercased. Empty when the page is unprotected.
example["alice@example.com","bob@example.com"] - allowed_domains string[]Required
Email domains allowed to access the page when it is protected, stored lowercased and without a leading
@. Empty when the page is unprotected.example["example.com"] - allow_any booleanRequired
Whether any email address is allowed to access the page when it is protected.
examplefalse - custom_layout_url stringRequirednullable
URL of a custom HTML page in your product environment that replaces the public page's default design. Null when the page uses the default design. Only applied while the custom collection layout feature is on your plan.
example"https://res.cloudinary.com/demo/raw/upload/layouts/summer-page.html"
401 Unauthorized.
- message string
Human-readable description of the error.
example"Invalid credentials"
403 Forbidden.
- message string
Human-readable description of the error.
example"Forbidden."
404 Not found.
- message string
Human-readable description of the error.
example"Not found."
500 Internal server error.
- message string
Human-readable description of the error.
example"Internal server error. Please try again later."
/{cloud_name}/collections/{collection_id}/public_pages/{public_page_id}curl 'https://api.cloudinary.com/v2/asset_management/CLOUD_NAME/collections/col_8f3a2b1c9d4e/public_pages/pub_2c4d6e8f0a1b' \
-u 'API_KEY:API_SECRET'{
"data": {
"id": "pub_2c4d6e8f0a1b",
"url": "https://collection.cloudinary.com/your-cloud-name/pub_2c4d6e8f0a1b",
"name": "Summer Campaign Preview",
"available_from": "2026-03-20T00:00:00Z",
"expires_at": "2026-04-20T00:00:00Z",
"show_download_original_option": true,
"download_transformations": [
{
"name": "thumbnail_400",
"transformation": "c_thumb,w_400,g_face",
"types": [
"image"
]
}
],
"protection_mode": "email_otp",
"allowed_emails": [
"alice@example.com",
"bob@example.com"
],
"allowed_domains": [
"example.com"
],
"allow_any": false,
"custom_layout_url": "https://res.cloudinary.com/demo/raw/upload/layouts/summer-page.html"
}
}{
"message": "Invalid credentials"
}{
"message": "Forbidden."
}{
"message": "Not found."
}{
"message": "Internal server error. Please try again later."
}Updates the settings of a collection's public page and returns the updated page. Protecting a page (protection_mode: email_otp) requires the secured-sharing feature on your plan; otherwise the request fails with 403. Invalid protection settings fail with 400 and error code invalid_protection_settings, listing every problem found.
Path parameters
- cloud_name stringRequired
The cloud name of the product environment.
example"your-cloud-name" - collection_id stringRequired
External ID of the collection the public page belongs to.
example"col_8f3a2b1c9d4e" - public_page_id stringRequired
External ID of the public page.
example"pub_2c4d6e8f0a1b"
Body Required application/json
Partial-update payload. Only the fields you include are forwarded and changed; any field you omit is left unchanged. Sending null does not clear a value.
- name stringnullable
New display name for the public page. Omit to leave the current value unchanged.
example"Summer Campaign Preview" - available_from stringnullable
New activation time for the page. Omit to leave the current value unchanged.
formatdate-timeRFC 3339 date-timeexample"2026-03-20T00:00:00Z" - expires_at stringnullable
New expiry time for the page. Omit to leave the current value unchanged.
formatdate-timeRFC 3339 date-timeexample"2026-04-20T00:00:00Z" - show_download_original_option booleannullable
Whether viewers may download the original asset. Omit to leave the current value unchanged.
exampletrue - download_transformations Entity.DownloadTransformationInput[]nullable
Named transformations that viewers of the public page can apply when downloading assets, referenced by name (see the Admin API's Get transformations endpoint to list the named transformations in your product environment). The list replaces the page's current download transformations; pass an empty list to remove them all. Omit to leave the current value unchanged. At most 200 entries.
max items 200ShowHide child attributes of download_transformations
Items Entity.DownloadTransformationInputA named transformation to offer for download on a public page.
- name stringRequired
Name of an existing named transformation in this product environment.
example"thumbnail_400" - types string[]nullable
Asset types the transformation is offered for. Restrict this to the types the transformation actually produces correct results for (for example, a duration/trim transformation only makes sense for video), to avoid download errors for the other type. This is a property of the transformation template itself, shared by every public page in the product environment, not just this one: it can only be set the first time any public page offers this name for download. Omit
typeson that first request to make it available for bothimageandvideo. If the name is already available for download (set by an earlier request on this or another public page), omittypesto keep its existing setting, or send its exact current list; sending a different list fails withdownload_transformation_types_conflict. An empty list is rejected.min items 1example["video"]enum"image""video"
- create_download_transformations booleannullable
When
true, any name indownload_transformationsthat isn't yet set as a transformation template is set as one automatically. It then appears in the Console's templates list and counts toward your product environment's template limit. Whenfalseor omitted, the request instead fails withdownload_transformation_not_availableif any listed name isn't yet set as a transformation template, and nothing is changed.defaultfalseexampletrue - protection_mode stringnullable
Secured-sharing protection mode.
noneremoves protection and clears the allowed emails, domains andallow_any.email_otpprotects the page so viewers must verify an allowed email address with a one-time passcode; a protected page needs at least one allowed email or domain, orallow_any: true. Omit to leave the current mode unchanged: on a protected page the allowlist fields below then update its allowlist, but on an unprotected page they are ignored, so sendemail_otpto protect it.example"email_otp"enum"none""email_otp" - allowed_emails string[]nullable
Email addresses allowed to access the page when it is protected. The list replaces the current one; send an empty array to clear it (the page must still satisfy the
allow_anyrule). Together withallowed_domains, at most 500 entries. Omit to leave the current value unchanged.example["alice@example.com","bob@example.com"] - allowed_domains string[]nullable
Email domains allowed to access the page when it is protected, as bare lowercase domains such as
example.com. The list replaces the current one; send an empty array to clear it (the page must still satisfy theallow_anyrule). Together withallowed_emails, at most 500 entries. Omit to leave the current value unchanged.example["example.com"] - allow_any booleannullable
Whether any email address is allowed to access the page when it is protected. After the update, an
email_otppage needsallow_any: trueor at least one entry inallowed_emailsorallowed_domains; otherwise the request fails with 400invalid_protection_settings. Omit to leave the current value unchanged.examplefalse - custom_layout_url stringnullable
URL of a custom HTML page in your product environment to use in place of the public page's default design. It must be an
httpsURL on acloudinary.comhost that belongs to this product environment, at most 2048 bytes. Setting it requires the custom collection layout feature on your plan; otherwise the request fails with 403. Pass an empty string to return to the default design. Omit to leave the current value unchanged.max length 2048pattern^(|https://[A-Za-z0-9.-]+\.cloudinary\.com/.*)$example"https://res.cloudinary.com/demo/raw/upload/layouts/summer.html"
Responses
200 Public page updated successfully.
Response returned by the Update a public page endpoint.
- data Entity.PublicPage
A public page (shareable link) for a collection. Every field is always present in a response: an unset value is returned as
null(orfalse/[]) rather than being omitted, so a read-modify-write round-trip never has to guess what an absent field meant.ShowHide child attributes of data
- id stringRequired
External ID of the public page.
example"pub_2c4d6e8f0a1b" - url stringRequired
The shareable URL of the public page, in the form
https://collection.cloudinary.com/<cloud_name>/<public_page_id>. It doesn't include the collection ID.example"https://collection.cloudinary.com/your-cloud-name/pub_2c4d6e8f0a1b" - name stringRequirednullable
Display name of the public page. May be null.
example"Summer Campaign Preview" - available_from stringRequirednullable
When the page becomes active. Null if the page is active immediately.
formatdate-timeRFC 3339 date-timeexample"2026-03-20T00:00:00Z" - expires_at stringRequirednullable
When the page expires. Null if the page never expires.
formatdate-timeRFC 3339 date-timeexample"2026-04-20T00:00:00Z" - show_download_original_option booleanRequired
Whether the option to download the original asset is shown.
exampletrue - download_transformations Entity.DownloadTransformation[]Required
Transformation templates that viewers of the public page can apply when downloading assets. Empty when the page offers none.
ShowHide child attributes of download_transformations
Items Entity.DownloadTransformationA transformation template offered for download on a public page.
- name string
Name of the transformation template.
example"thumbnail_400" - transformation string
The transformation definition behind the name.
example"c_thumb,w_400,g_face" - types string[]
Asset types the transformation is offered for.
example["image"]enum"image""video"
- protection_mode stringRequired
Secured-sharing protection mode of the public page.
nonemeans the page is unprotected;email_otpmeans viewers must verify an allowed email address with a one-time passcode before accessing the page.example"email_otp"enum"none""email_otp" - allowed_emails string[]Required
Email addresses allowed to access the page when it is protected, stored lowercased. Empty when the page is unprotected.
example["alice@example.com","bob@example.com"] - allowed_domains string[]Required
Email domains allowed to access the page when it is protected, stored lowercased and without a leading
@. Empty when the page is unprotected.example["example.com"] - allow_any booleanRequired
Whether any email address is allowed to access the page when it is protected.
examplefalse - custom_layout_url stringRequirednullable
URL of a custom HTML page in your product environment that replaces the public page's default design. Null when the page uses the default design. Only applied while the custom collection layout feature is on your plan.
example"https://res.cloudinary.com/demo/raw/upload/layouts/summer-page.html"
400 Bad request.
- message string
Human-readable description of the error.
example"Bad Request. Please check your request for errors."
401 Unauthorized.
- message string
Human-readable description of the error.
example"Invalid credentials"
403 Forbidden.
- message string
Human-readable description of the error.
example"Forbidden."
404 Not found.
- message string
Human-readable description of the error.
example"Not found."
500 Internal server error.
- message string
Human-readable description of the error.
example"Internal server error. Please try again later."
/{cloud_name}/collections/{collection_id}/public_pages/{public_page_id}curl -X PUT 'https://api.cloudinary.com/v2/asset_management/CLOUD_NAME/collections/col_8f3a2b1c9d4e/public_pages/pub_2c4d6e8f0a1b' \
-u 'API_KEY:API_SECRET' \
-H 'Content-Type: application/json' \
-d '{
"name": "Summer Campaign Preview",
"available_from": "2026-03-20T00:00:00Z",
"expires_at": "2026-04-20T00:00:00Z",
"show_download_original_option": true,
"download_transformations": [
{
"name": "thumbnail_400"
},
{
"name": "trimmed_preview",
"types": [
"video"
]
}
],
"create_download_transformations": true,
"protection_mode": "email_otp",
"allowed_emails": [
"alice@example.com",
"bob@example.com"
],
"allowed_domains": [
"example.com"
],
"allow_any": false,
"custom_layout_url": "https://res.cloudinary.com/demo/raw/upload/layouts/summer.html"
}'{
"data": {
"id": "pub_2c4d6e8f0a1b",
"url": "https://collection.cloudinary.com/your-cloud-name/pub_2c4d6e8f0a1b",
"name": "Summer Campaign Preview",
"available_from": "2026-03-20T00:00:00Z",
"expires_at": "2026-04-20T00:00:00Z",
"show_download_original_option": true,
"download_transformations": [
{
"name": "thumbnail_400",
"transformation": "c_thumb,w_400,g_face",
"types": [
"image"
]
}
],
"protection_mode": "email_otp",
"allowed_emails": [
"alice@example.com",
"bob@example.com"
],
"allowed_domains": [
"example.com"
],
"allow_any": false,
"custom_layout_url": "https://res.cloudinary.com/demo/raw/upload/layouts/summer-page.html"
}
}{
"message": "Bad Request. Please check your request for errors."
}{
"message": "Invalid credentials"
}{
"message": "Forbidden."
}{
"message": "Not found."
}{
"message": "Internal server error. Please try again later."
}Deletes a collection's public page so it's no longer shareable. The collection and its assets aren't changed or deleted.
Path parameters
- cloud_name stringRequired
The cloud name of the product environment.
example"your-cloud-name" - collection_id stringRequired
External ID of the collection the public page belongs to.
example"col_8f3a2b1c9d4e" - public_page_id stringRequired
External ID of the public page.
example"pub_2c4d6e8f0a1b"
Responses
200 Public page deleted successfully.
Response returned by the Unpublish a collection's public page endpoint.
- message stringRequired
Confirmation that the public page was deleted.
example"Public page deleted successfully."
401 Unauthorized.
- message string
Human-readable description of the error.
example"Invalid credentials"
403 Forbidden.
- message string
Human-readable description of the error.
example"Forbidden."
404 Not found.
- message string
Human-readable description of the error.
example"Not found."
500 Internal server error.
- message string
Human-readable description of the error.
example"Internal server error. Please try again later."
/{cloud_name}/collections/{collection_id}/public_pages/{public_page_id}curl -X DELETE 'https://api.cloudinary.com/v2/asset_management/CLOUD_NAME/collections/col_8f3a2b1c9d4e/public_pages/pub_2c4d6e8f0a1b' \
-u 'API_KEY:API_SECRET'{
"message": "Public page deleted successfully."
}{
"message": "Invalid credentials"
}{
"message": "Forbidden."
}{
"message": "Not found."
}{
"message": "Internal server error. Please try again later."
}Models
Show schema
- name stringRequired
Name of the collection.
example"Summer Campaign Assets" - description string
Optional description of the collection.
example"Approved photography for the summer campaign launch." - type string
Type of the collection.
manualholds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint;dynamicis defined by a saved filter expression and is populated automatically.default"manual"example"dynamic"enum"manual""dynamic" - configuration Entity.CollectionConfiguration
Configuration for a
dynamiccollection. Required when creating adynamiccollection, and not allowed for amanualcollection.ShowHide child attributes of configuration
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
Show schema
Configuration for a dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
Show schema
A collection resource.
- id string
The external ID of the collection.
example"col_8f3a2b1c9d4e" - name string
Name of the collection.
example"Summer Campaign Assets" - creator_type string
Indicates whether the collection was created by a Console user or through the API.
example"user"enum"user""api" - creator_id string
Who created the collection. When
creator_typeisuser, this is the external ID of the Console user; Enterprise customers can get more details about the user with the Get user endpoint of the Provisioning API. Whencreator_typeisapi, this is the API key used to create the collection.example"usr_4a1b2c3d5e6f" - created_at string
When the collection was created.
formatdate-timeRFC 3339 date-timeexample"2026-03-14T10:15:00Z" - updated_at string
When the collection was last modified.
formatdate-timeRFC 3339 date-timeexample"2026-03-15T09:30:00Z" - description string
Optional description of the collection.
example"Approved photography for the summer campaign launch." - type string
The type of collection.
manualholds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint;dynamicis defined by a saved filter expression and is populated automatically.example"dynamic"enum"manual""dynamic" - configuration Entity.CollectionConfiguration
Configuration for a
dynamiccollection. Required when creating adynamiccollection, and not allowed for amanualcollection.ShowHide child attributes of configuration
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
- asset_count integernullable
Number of assets in the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example12 - cover_asset_url stringnullable
Delivery URL of an automatically selected cover asset for the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example"https://res.cloudinary.com/demo/image/upload/sample.jpg"
Show schema
Response returned by the Create a collection endpoint.
- data Entity.Collection
A collection resource.
ShowHide child attributes of data
- id string
The external ID of the collection.
example"col_8f3a2b1c9d4e" - name string
Name of the collection.
example"Summer Campaign Assets" - creator_type string
Indicates whether the collection was created by a Console user or through the API.
example"user"enum"user""api" - creator_id string
Who created the collection. When
creator_typeisuser, this is the external ID of the Console user; Enterprise customers can get more details about the user with the Get user endpoint of the Provisioning API. Whencreator_typeisapi, this is the API key used to create the collection.example"usr_4a1b2c3d5e6f" - created_at string
When the collection was created.
formatdate-timeRFC 3339 date-timeexample"2026-03-14T10:15:00Z" - updated_at string
When the collection was last modified.
formatdate-timeRFC 3339 date-timeexample"2026-03-15T09:30:00Z" - description string
Optional description of the collection.
example"Approved photography for the summer campaign launch." - type string
The type of collection.
manualholds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint;dynamicis defined by a saved filter expression and is populated automatically.example"dynamic"enum"manual""dynamic" - configuration Entity.CollectionConfiguration
Configuration for a
dynamiccollection. Required when creating adynamiccollection, and not allowed for amanualcollection.ShowHide child attributes of configuration
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
- asset_count integernullable
Number of assets in the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example12 - cover_asset_url stringnullable
Delivery URL of an automatically selected cover asset for the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example"https://res.cloudinary.com/demo/image/upload/sample.jpg"
Show schema
Response returned by the Get a collection endpoint.
- data Entity.Collection
A collection resource.
ShowHide child attributes of data
- id string
The external ID of the collection.
example"col_8f3a2b1c9d4e" - name string
Name of the collection.
example"Summer Campaign Assets" - creator_type string
Indicates whether the collection was created by a Console user or through the API.
example"user"enum"user""api" - creator_id string
Who created the collection. When
creator_typeisuser, this is the external ID of the Console user; Enterprise customers can get more details about the user with the Get user endpoint of the Provisioning API. Whencreator_typeisapi, this is the API key used to create the collection.example"usr_4a1b2c3d5e6f" - created_at string
When the collection was created.
formatdate-timeRFC 3339 date-timeexample"2026-03-14T10:15:00Z" - updated_at string
When the collection was last modified.
formatdate-timeRFC 3339 date-timeexample"2026-03-15T09:30:00Z" - description string
Optional description of the collection.
example"Approved photography for the summer campaign launch." - type string
The type of collection.
manualholds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint;dynamicis defined by a saved filter expression and is populated automatically.example"dynamic"enum"manual""dynamic" - configuration Entity.CollectionConfiguration
Configuration for a
dynamiccollection. Required when creating adynamiccollection, and not allowed for amanualcollection.ShowHide child attributes of configuration
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
- asset_count integernullable
Number of assets in the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example12 - cover_asset_url stringnullable
Delivery URL of an automatically selected cover asset for the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example"https://res.cloudinary.com/demo/image/upload/sample.jpg"
Show schema
The collection attributes to update. Only the fields you include are changed. A collection's type is set when the collection is created and can't be changed.
- name string
New name for the collection. Omit to leave the current name unchanged.
example"Summer Campaign Assets 2026" - description stringnullable
New description for the collection. Send
nullor an empty string to clear it. Omit to leave the current description unchanged.example"Approved photography for the 2026 summer campaign launch." - configuration Entity.CollectionConfiguration
Configuration for a
dynamiccollection. Required when creating adynamiccollection, and not allowed for amanualcollection.ShowHide child attributes of configuration
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
Show schema
Response returned by the Update a collection endpoint.
- data Entity.Collection
A collection resource.
ShowHide child attributes of data
- id string
The external ID of the collection.
example"col_8f3a2b1c9d4e" - name string
Name of the collection.
example"Summer Campaign Assets" - creator_type string
Indicates whether the collection was created by a Console user or through the API.
example"user"enum"user""api" - creator_id string
Who created the collection. When
creator_typeisuser, this is the external ID of the Console user; Enterprise customers can get more details about the user with the Get user endpoint of the Provisioning API. Whencreator_typeisapi, this is the API key used to create the collection.example"usr_4a1b2c3d5e6f" - created_at string
When the collection was created.
formatdate-timeRFC 3339 date-timeexample"2026-03-14T10:15:00Z" - updated_at string
When the collection was last modified.
formatdate-timeRFC 3339 date-timeexample"2026-03-15T09:30:00Z" - description string
Optional description of the collection.
example"Approved photography for the summer campaign launch." - type string
The type of collection.
manualholds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint;dynamicis defined by a saved filter expression and is populated automatically.example"dynamic"enum"manual""dynamic" - configuration Entity.CollectionConfiguration
Configuration for a
dynamiccollection. Required when creating adynamiccollection, and not allowed for amanualcollection.ShowHide child attributes of configuration
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
- asset_count integernullable
Number of assets in the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example12 - cover_asset_url stringnullable
Delivery URL of an automatically selected cover asset for the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example"https://res.cloudinary.com/demo/image/upload/sample.jpg"
Show schema
Response returned by the List collections endpoint. data and total_count are always present, so a search that matches nothing returns {"data": [], "total_count": 0} rather than an empty object. next_cursor follows the usual cursor convention and is omitted once there are no further pages.
- data Entity.Collection[]Required
The page of collections.
ShowHide child attributes of data
Items Entity.CollectionA collection resource.
- id string
The external ID of the collection.
example"col_8f3a2b1c9d4e" - name string
Name of the collection.
example"Summer Campaign Assets" - creator_type string
Indicates whether the collection was created by a Console user or through the API.
example"user"enum"user""api" - creator_id string
Who created the collection. When
creator_typeisuser, this is the external ID of the Console user; Enterprise customers can get more details about the user with the Get user endpoint of the Provisioning API. Whencreator_typeisapi, this is the API key used to create the collection.example"usr_4a1b2c3d5e6f" - created_at string
When the collection was created.
formatdate-timeRFC 3339 date-timeexample"2026-03-14T10:15:00Z" - updated_at string
When the collection was last modified.
formatdate-timeRFC 3339 date-timeexample"2026-03-15T09:30:00Z" - description string
Optional description of the collection.
example"Approved photography for the summer campaign launch." - type string
The type of collection.
manualholds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint;dynamicis defined by a saved filter expression and is populated automatically.example"dynamic"enum"manual""dynamic" - configuration Entity.CollectionConfiguration
Configuration for a
dynamiccollection. Required when creating adynamiccollection, and not allowed for amanualcollection.ShowHide child attributes of configuration
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
- asset_count integernullable
Number of assets in the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example12 - cover_asset_url stringnullable
Delivery URL of an automatically selected cover asset for the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example"https://res.cloudinary.com/demo/image/upload/sample.jpg"
- next_cursor stringnullable
Opaque cursor for the next page. Omitted when there are no further pages.
example"eyJsYXN0X21vZGlmaWVkX2F0IjoxNzQwNTg0MzAwfQ" - total_count integerRequired
Total number of collections matching the query across all pages.
example42
Show schema
An asset in a collection. Every field is always present in a response: an unset value (display_name, or width / height for assets without dimensions) is returned as null rather than being omitted, the same as on the public page entity.
- asset_id stringRequired
The immutable ID of the asset. This is the value the Add assets to a collection and Remove assets from a collection endpoints accept.
example"3515c6000a548515f1134043f9785c2f" - public_id stringRequired
The public ID of the asset.
example"summer/beach-hero" - display_name stringRequirednullable
The asset's display name, or null when it has none.
example"beach-hero" - resource_type stringRequired
The resource type of the asset (
image,video, orraw).example"image" - type stringRequired
The delivery type of the asset, e.g.
upload,private, orauthenticated.example"upload" - format stringRequired
The asset's file format. Empty for raw assets without an extension.
example"jpg" - bytes integerRequired
The asset's size in bytes.
formatint64Signed 64-bit integerexample482113 - width integerRequirednullable
Width in pixels, or null for assets without dimensions (e.g. raw files).
example1920 - height integerRequirednullable
Height in pixels, or null for assets without dimensions (e.g. raw files).
example1080 - secure_url stringRequired
The HTTPS delivery URL of the asset.
example"https://res.cloudinary.com/demo/image/upload/v1720000000/summer/beach-hero.jpg" - created_at stringRequired
When the asset was created.
formatdate-timeRFC 3339 date-timeexample"2026-03-14T10:15:00Z"
Show schema
Response returned by the List a collection's assets endpoint. data and total_count are always present, so a collection with no assets returns {"data": [], "total_count": 0}. next_cursor follows the usual cursor convention and is omitted once there are no further pages.
- data Entity.CollectionAsset[]Required
The page of assets.
ShowHide child attributes of data
Items Entity.CollectionAssetAn asset in a collection. Every field is always present in a response: an unset value (
display_name, orwidth/heightfor assets without dimensions) is returned asnullrather than being omitted, the same as on the public page entity.- asset_id stringRequired
The immutable ID of the asset. This is the value the Add assets to a collection and Remove assets from a collection endpoints accept.
example"3515c6000a548515f1134043f9785c2f" - public_id stringRequired
The public ID of the asset.
example"summer/beach-hero" - display_name stringRequirednullable
The asset's display name, or null when it has none.
example"beach-hero" - resource_type stringRequired
The resource type of the asset (
image,video, orraw).example"image" - type stringRequired
The delivery type of the asset, e.g.
upload,private, orauthenticated.example"upload" - format stringRequired
The asset's file format. Empty for raw assets without an extension.
example"jpg" - bytes integerRequired
The asset's size in bytes.
formatint64Signed 64-bit integerexample482113 - width integerRequirednullable
Width in pixels, or null for assets without dimensions (e.g. raw files).
example1920 - height integerRequirednullable
Height in pixels, or null for assets without dimensions (e.g. raw files).
example1080 - secure_url stringRequired
The HTTPS delivery URL of the asset.
example"https://res.cloudinary.com/demo/image/upload/v1720000000/summer/beach-hero.jpg" - created_at stringRequired
When the asset was created.
formatdate-timeRFC 3339 date-timeexample"2026-03-14T10:15:00Z"
- next_cursor stringnullable
Opaque cursor for the next page. Omitted when there are no further pages.
example"8edbc61040178db60b0973ca9494bf3a" - total_count integerRequired
Total number of assets in the collection that the caller may view.
example12
Show schema
A list of asset_id values of the assets to add to the collection.
Show schema
Response returned by the Add assets to a collection endpoint.
- data Entity.Collection
A collection resource.
ShowHide child attributes of data
- id string
The external ID of the collection.
example"col_8f3a2b1c9d4e" - name string
Name of the collection.
example"Summer Campaign Assets" - creator_type string
Indicates whether the collection was created by a Console user or through the API.
example"user"enum"user""api" - creator_id string
Who created the collection. When
creator_typeisuser, this is the external ID of the Console user; Enterprise customers can get more details about the user with the Get user endpoint of the Provisioning API. Whencreator_typeisapi, this is the API key used to create the collection.example"usr_4a1b2c3d5e6f" - created_at string
When the collection was created.
formatdate-timeRFC 3339 date-timeexample"2026-03-14T10:15:00Z" - updated_at string
When the collection was last modified.
formatdate-timeRFC 3339 date-timeexample"2026-03-15T09:30:00Z" - description string
Optional description of the collection.
example"Approved photography for the summer campaign launch." - type string
The type of collection.
manualholds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint;dynamicis defined by a saved filter expression and is populated automatically.example"dynamic"enum"manual""dynamic" - configuration Entity.CollectionConfiguration
Configuration for a
dynamiccollection. Required when creating adynamiccollection, and not allowed for amanualcollection.ShowHide child attributes of configuration
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
- asset_count integernullable
Number of assets in the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example12 - cover_asset_url stringnullable
Delivery URL of an automatically selected cover asset for the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example"https://res.cloudinary.com/demo/image/upload/sample.jpg"
Show schema
A list of asset_id values of the assets to remove from the collection.
Show schema
Response returned by the Remove assets from a collection endpoint.
- data Entity.Collection
A collection resource.
ShowHide child attributes of data
- id string
The external ID of the collection.
example"col_8f3a2b1c9d4e" - name string
Name of the collection.
example"Summer Campaign Assets" - creator_type string
Indicates whether the collection was created by a Console user or through the API.
example"user"enum"user""api" - creator_id string
Who created the collection. When
creator_typeisuser, this is the external ID of the Console user; Enterprise customers can get more details about the user with the Get user endpoint of the Provisioning API. Whencreator_typeisapi, this is the API key used to create the collection.example"usr_4a1b2c3d5e6f" - created_at string
When the collection was created.
formatdate-timeRFC 3339 date-timeexample"2026-03-14T10:15:00Z" - updated_at string
When the collection was last modified.
formatdate-timeRFC 3339 date-timeexample"2026-03-15T09:30:00Z" - description string
Optional description of the collection.
example"Approved photography for the summer campaign launch." - type string
The type of collection.
manualholds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint;dynamicis defined by a saved filter expression and is populated automatically.example"dynamic"enum"manual""dynamic" - configuration Entity.CollectionConfiguration
Configuration for a
dynamiccollection. Required when creating adynamiccollection, and not allowed for amanualcollection.ShowHide child attributes of configuration
- expression string
The search expression that defines which assets are included in a dynamic collection. Cloudinary evaluates the expression against your product environment's assets, so the collection's contents update as assets begin or stop matching the criteria. In the Media Library, a collection whose expression was set through the API shows it as a single Expression filter; any filters added to the collection there are combined with it using AND.
example"tags = \"summer-campaign\" AND resource_type:image"
- asset_count integernullable
Number of assets in the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example12 - cover_asset_url stringnullable
Delivery URL of an automatically selected cover asset for the collection. Returned by the
Get a collectionandList collectionsendpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.example"https://res.cloudinary.com/demo/image/upload/sample.jpg"
Show schema
Response returned by the Delete a collection endpoint.
- message stringRequired
Confirmation that the collection was deleted.
example"Collection deleted successfully."
Show schema
Settings for the public page. Every field is optional; omitted fields use their documented default.
- name stringnullable
Optional display name for the public page.
example"Summer Campaign Preview" - available_from stringnullable
When the page becomes active. If omitted or null, the page is active immediately.
formatdate-timeRFC 3339 date-timeexample"2026-03-20T00:00:00Z" - expires_at stringnullable
When the page expires. If omitted or null, the page never expires.
formatdate-timeRFC 3339 date-timeexample"2026-04-20T00:00:00Z" - show_download_original_option booleannullable
Whether viewers can download the original asset. Omit to use the account default set by an administrator in the Media Library Preferences.
exampletrue - download_transformations Entity.DownloadTransformationInput[]nullable
Named transformations that viewers of the public page can apply when downloading assets, referenced by name (see the Admin API's Get transformations endpoint to list the named transformations in your product environment). By default, each name must already be set as a transformation template; set
create_download_transformationstotrueto set any listed name that isn't one yet automatically. Omit or pass null to leave the page without download transformations. At most 200 entries.max items 200ShowHide child attributes of download_transformations
Items Entity.DownloadTransformationInputA named transformation to offer for download on a public page.
- name stringRequired
Name of an existing named transformation in this product environment.
example"thumbnail_400" - types string[]nullable
Asset types the transformation is offered for. Restrict this to the types the transformation actually produces correct results for (for example, a duration/trim transformation only makes sense for video), to avoid download errors for the other type. This is a property of the transformation template itself, shared by every public page in the product environment, not just this one: it can only be set the first time any public page offers this name for download. Omit
typeson that first request to make it available for bothimageandvideo. If the name is already available for download (set by an earlier request on this or another public page), omittypesto keep its existing setting, or send its exact current list; sending a different list fails withdownload_transformation_types_conflict. An empty list is rejected.min items 1example["video"]enum"image""video"
- create_download_transformations booleannullable
When
true, any name indownload_transformationsthat isn't yet set as a transformation template is set as one automatically. It then appears in the Console's templates list and counts toward your product environment's template limit. Whenfalseor omitted, the request instead fails withdownload_transformation_not_availableif any listed name isn't yet set as a transformation template, and nothing is changed.defaultfalseexampletrue
Show schema
A named transformation to offer for download on a public page.
- name stringRequired
Name of an existing named transformation in this product environment.
example"thumbnail_400" - types string[]nullable
Asset types the transformation is offered for. Restrict this to the types the transformation actually produces correct results for (for example, a duration/trim transformation only makes sense for video), to avoid download errors for the other type. This is a property of the transformation template itself, shared by every public page in the product environment, not just this one: it can only be set the first time any public page offers this name for download. Omit
typeson that first request to make it available for bothimageandvideo. If the name is already available for download (set by an earlier request on this or another public page), omittypesto keep its existing setting, or send its exact current list; sending a different list fails withdownload_transformation_types_conflict. An empty list is rejected.min items 1example["video"]enum"image""video"
Show schema
A transformation template offered for download on a public page.
- name string
Name of the transformation template.
example"thumbnail_400" - transformation string
The transformation definition behind the name.
example"c_thumb,w_400,g_face" - types string[]
Asset types the transformation is offered for.
example["image"]enum"image""video"
Show schema
A public page (shareable link) for a collection. Every field is always present in a response: an unset value is returned as null (or false / []) rather than being omitted, so a read-modify-write round-trip never has to guess what an absent field meant.
- id stringRequired
External ID of the public page.
example"pub_2c4d6e8f0a1b" - url stringRequired
The shareable URL of the public page, in the form
https://collection.cloudinary.com/<cloud_name>/<public_page_id>. It doesn't include the collection ID.example"https://collection.cloudinary.com/your-cloud-name/pub_2c4d6e8f0a1b" - name stringRequirednullable
Display name of the public page. May be null.
example"Summer Campaign Preview" - available_from stringRequirednullable
When the page becomes active. Null if the page is active immediately.
formatdate-timeRFC 3339 date-timeexample"2026-03-20T00:00:00Z" - expires_at stringRequirednullable
When the page expires. Null if the page never expires.
formatdate-timeRFC 3339 date-timeexample"2026-04-20T00:00:00Z" - show_download_original_option booleanRequired
Whether the option to download the original asset is shown.
exampletrue - download_transformations Entity.DownloadTransformation[]Required
Transformation templates that viewers of the public page can apply when downloading assets. Empty when the page offers none.
ShowHide child attributes of download_transformations
Items Entity.DownloadTransformationA transformation template offered for download on a public page.
- name string
Name of the transformation template.
example"thumbnail_400" - transformation string
The transformation definition behind the name.
example"c_thumb,w_400,g_face" - types string[]
Asset types the transformation is offered for.
example["image"]enum"image""video"
- protection_mode stringRequired
Secured-sharing protection mode of the public page.
nonemeans the page is unprotected;email_otpmeans viewers must verify an allowed email address with a one-time passcode before accessing the page.example"email_otp"enum"none""email_otp" - allowed_emails string[]Required
Email addresses allowed to access the page when it is protected, stored lowercased. Empty when the page is unprotected.
example["alice@example.com","bob@example.com"] - allowed_domains string[]Required
Email domains allowed to access the page when it is protected, stored lowercased and without a leading
@. Empty when the page is unprotected.example["example.com"] - allow_any booleanRequired
Whether any email address is allowed to access the page when it is protected.
examplefalse - custom_layout_url stringRequirednullable
URL of a custom HTML page in your product environment that replaces the public page's default design. Null when the page uses the default design. Only applied while the custom collection layout feature is on your plan.
example"https://res.cloudinary.com/demo/raw/upload/layouts/summer-page.html"
Show schema
Response returned by the Publish a collection endpoint.
- data Entity.PublicPage
A public page (shareable link) for a collection. Every field is always present in a response: an unset value is returned as
null(orfalse/[]) rather than being omitted, so a read-modify-write round-trip never has to guess what an absent field meant.ShowHide child attributes of data
- id stringRequired
External ID of the public page.
example"pub_2c4d6e8f0a1b" - url stringRequired
The shareable URL of the public page, in the form
https://collection.cloudinary.com/<cloud_name>/<public_page_id>. It doesn't include the collection ID.example"https://collection.cloudinary.com/your-cloud-name/pub_2c4d6e8f0a1b" - name stringRequirednullable
Display name of the public page. May be null.
example"Summer Campaign Preview" - available_from stringRequirednullable
When the page becomes active. Null if the page is active immediately.
formatdate-timeRFC 3339 date-timeexample"2026-03-20T00:00:00Z" - expires_at stringRequirednullable
When the page expires. Null if the page never expires.
formatdate-timeRFC 3339 date-timeexample"2026-04-20T00:00:00Z" - show_download_original_option booleanRequired
Whether the option to download the original asset is shown.
exampletrue - download_transformations Entity.DownloadTransformation[]Required
Transformation templates that viewers of the public page can apply when downloading assets. Empty when the page offers none.
ShowHide child attributes of download_transformations
Items Entity.DownloadTransformationA transformation template offered for download on a public page.
- name string
Name of the transformation template.
example"thumbnail_400" - transformation string
The transformation definition behind the name.
example"c_thumb,w_400,g_face" - types string[]
Asset types the transformation is offered for.
example["image"]enum"image""video"
- protection_mode stringRequired
Secured-sharing protection mode of the public page.
nonemeans the page is unprotected;email_otpmeans viewers must verify an allowed email address with a one-time passcode before accessing the page.example"email_otp"enum"none""email_otp" - allowed_emails string[]Required
Email addresses allowed to access the page when it is protected, stored lowercased. Empty when the page is unprotected.
example["alice@example.com","bob@example.com"] - allowed_domains string[]Required
Email domains allowed to access the page when it is protected, stored lowercased and without a leading
@. Empty when the page is unprotected.example["example.com"] - allow_any booleanRequired
Whether any email address is allowed to access the page when it is protected.
examplefalse - custom_layout_url stringRequirednullable
URL of a custom HTML page in your product environment that replaces the public page's default design. Null when the page uses the default design. Only applied while the custom collection layout feature is on your plan.
example"https://res.cloudinary.com/demo/raw/upload/layouts/summer-page.html"
Show schema
Response returned by the List a collection's public pages endpoint. data is always present; a collection with no public pages returns {"data": []}.
- data Entity.PublicPage[]Required
ShowHide child attributes of data
Items Entity.PublicPageA public page (shareable link) for a collection. Every field is always present in a response: an unset value is returned as
null(orfalse/[]) rather than being omitted, so a read-modify-write round-trip never has to guess what an absent field meant.- id stringRequired
External ID of the public page.
example"pub_2c4d6e8f0a1b" - url stringRequired
The shareable URL of the public page, in the form
https://collection.cloudinary.com/<cloud_name>/<public_page_id>. It doesn't include the collection ID.example"https://collection.cloudinary.com/your-cloud-name/pub_2c4d6e8f0a1b" - name stringRequirednullable
Display name of the public page. May be null.
example"Summer Campaign Preview" - available_from stringRequirednullable
When the page becomes active. Null if the page is active immediately.
formatdate-timeRFC 3339 date-timeexample"2026-03-20T00:00:00Z" - expires_at stringRequirednullable
When the page expires. Null if the page never expires.
formatdate-timeRFC 3339 date-timeexample"2026-04-20T00:00:00Z" - show_download_original_option booleanRequired
Whether the option to download the original asset is shown.
exampletrue - download_transformations Entity.DownloadTransformation[]Required
Transformation templates that viewers of the public page can apply when downloading assets. Empty when the page offers none.
ShowHide child attributes of download_transformations
Items Entity.DownloadTransformationA transformation template offered for download on a public page.
- name string
Name of the transformation template.
example"thumbnail_400" - transformation string
The transformation definition behind the name.
example"c_thumb,w_400,g_face" - types string[]
Asset types the transformation is offered for.
example["image"]enum"image""video"
- protection_mode stringRequired
Secured-sharing protection mode of the public page.
nonemeans the page is unprotected;email_otpmeans viewers must verify an allowed email address with a one-time passcode before accessing the page.example"email_otp"enum"none""email_otp" - allowed_emails string[]Required
Email addresses allowed to access the page when it is protected, stored lowercased. Empty when the page is unprotected.
example["alice@example.com","bob@example.com"] - allowed_domains string[]Required
Email domains allowed to access the page when it is protected, stored lowercased and without a leading
@. Empty when the page is unprotected.example["example.com"] - allow_any booleanRequired
Whether any email address is allowed to access the page when it is protected.
examplefalse - custom_layout_url stringRequirednullable
URL of a custom HTML page in your product environment that replaces the public page's default design. Null when the page uses the default design. Only applied while the custom collection layout feature is on your plan.
example"https://res.cloudinary.com/demo/raw/upload/layouts/summer-page.html"
Show schema
Response returned by the Get a public page endpoint.
- data Entity.PublicPage
A public page (shareable link) for a collection. Every field is always present in a response: an unset value is returned as
null(orfalse/[]) rather than being omitted, so a read-modify-write round-trip never has to guess what an absent field meant.ShowHide child attributes of data
- id stringRequired
External ID of the public page.
example"pub_2c4d6e8f0a1b" - url stringRequired
The shareable URL of the public page, in the form
https://collection.cloudinary.com/<cloud_name>/<public_page_id>. It doesn't include the collection ID.example"https://collection.cloudinary.com/your-cloud-name/pub_2c4d6e8f0a1b" - name stringRequirednullable
Display name of the public page. May be null.
example"Summer Campaign Preview" - available_from stringRequirednullable
When the page becomes active. Null if the page is active immediately.
formatdate-timeRFC 3339 date-timeexample"2026-03-20T00:00:00Z" - expires_at stringRequirednullable
When the page expires. Null if the page never expires.
formatdate-timeRFC 3339 date-timeexample"2026-04-20T00:00:00Z" - show_download_original_option booleanRequired
Whether the option to download the original asset is shown.
exampletrue - download_transformations Entity.DownloadTransformation[]Required
Transformation templates that viewers of the public page can apply when downloading assets. Empty when the page offers none.
ShowHide child attributes of download_transformations
Items Entity.DownloadTransformationA transformation template offered for download on a public page.
- name string
Name of the transformation template.
example"thumbnail_400" - transformation string
The transformation definition behind the name.
example"c_thumb,w_400,g_face" - types string[]
Asset types the transformation is offered for.
example["image"]enum"image""video"
- protection_mode stringRequired
Secured-sharing protection mode of the public page.
nonemeans the page is unprotected;email_otpmeans viewers must verify an allowed email address with a one-time passcode before accessing the page.example"email_otp"enum"none""email_otp" - allowed_emails string[]Required
Email addresses allowed to access the page when it is protected, stored lowercased. Empty when the page is unprotected.
example["alice@example.com","bob@example.com"] - allowed_domains string[]Required
Email domains allowed to access the page when it is protected, stored lowercased and without a leading
@. Empty when the page is unprotected.example["example.com"] - allow_any booleanRequired
Whether any email address is allowed to access the page when it is protected.
examplefalse - custom_layout_url stringRequirednullable
URL of a custom HTML page in your product environment that replaces the public page's default design. Null when the page uses the default design. Only applied while the custom collection layout feature is on your plan.
example"https://res.cloudinary.com/demo/raw/upload/layouts/summer-page.html"
Show schema
Partial-update payload. Only the fields you include are forwarded and changed; any field you omit is left unchanged. Sending null does not clear a value.
- name stringnullable
New display name for the public page. Omit to leave the current value unchanged.
example"Summer Campaign Preview" - available_from stringnullable
New activation time for the page. Omit to leave the current value unchanged.
formatdate-timeRFC 3339 date-timeexample"2026-03-20T00:00:00Z" - expires_at stringnullable
New expiry time for the page. Omit to leave the current value unchanged.
formatdate-timeRFC 3339 date-timeexample"2026-04-20T00:00:00Z" - show_download_original_option booleannullable
Whether viewers may download the original asset. Omit to leave the current value unchanged.
exampletrue - download_transformations Entity.DownloadTransformationInput[]nullable
Named transformations that viewers of the public page can apply when downloading assets, referenced by name (see the Admin API's Get transformations endpoint to list the named transformations in your product environment). The list replaces the page's current download transformations; pass an empty list to remove them all. Omit to leave the current value unchanged. At most 200 entries.
max items 200ShowHide child attributes of download_transformations
Items Entity.DownloadTransformationInputA named transformation to offer for download on a public page.
- name stringRequired
Name of an existing named transformation in this product environment.
example"thumbnail_400" - types string[]nullable
Asset types the transformation is offered for. Restrict this to the types the transformation actually produces correct results for (for example, a duration/trim transformation only makes sense for video), to avoid download errors for the other type. This is a property of the transformation template itself, shared by every public page in the product environment, not just this one: it can only be set the first time any public page offers this name for download. Omit
typeson that first request to make it available for bothimageandvideo. If the name is already available for download (set by an earlier request on this or another public page), omittypesto keep its existing setting, or send its exact current list; sending a different list fails withdownload_transformation_types_conflict. An empty list is rejected.min items 1example["video"]enum"image""video"
- create_download_transformations booleannullable
When
true, any name indownload_transformationsthat isn't yet set as a transformation template is set as one automatically. It then appears in the Console's templates list and counts toward your product environment's template limit. Whenfalseor omitted, the request instead fails withdownload_transformation_not_availableif any listed name isn't yet set as a transformation template, and nothing is changed.defaultfalseexampletrue - protection_mode stringnullable
Secured-sharing protection mode.
noneremoves protection and clears the allowed emails, domains andallow_any.email_otpprotects the page so viewers must verify an allowed email address with a one-time passcode; a protected page needs at least one allowed email or domain, orallow_any: true. Omit to leave the current mode unchanged: on a protected page the allowlist fields below then update its allowlist, but on an unprotected page they are ignored, so sendemail_otpto protect it.example"email_otp"enum"none""email_otp" - allowed_emails string[]nullable
Email addresses allowed to access the page when it is protected. The list replaces the current one; send an empty array to clear it (the page must still satisfy the
allow_anyrule). Together withallowed_domains, at most 500 entries. Omit to leave the current value unchanged.example["alice@example.com","bob@example.com"] - allowed_domains string[]nullable
Email domains allowed to access the page when it is protected, as bare lowercase domains such as
example.com. The list replaces the current one; send an empty array to clear it (the page must still satisfy theallow_anyrule). Together withallowed_emails, at most 500 entries. Omit to leave the current value unchanged.example["example.com"] - allow_any booleannullable
Whether any email address is allowed to access the page when it is protected. After the update, an
email_otppage needsallow_any: trueor at least one entry inallowed_emailsorallowed_domains; otherwise the request fails with 400invalid_protection_settings. Omit to leave the current value unchanged.examplefalse - custom_layout_url stringnullable
URL of a custom HTML page in your product environment to use in place of the public page's default design. It must be an
httpsURL on acloudinary.comhost that belongs to this product environment, at most 2048 bytes. Setting it requires the custom collection layout feature on your plan; otherwise the request fails with 403. Pass an empty string to return to the default design. Omit to leave the current value unchanged.max length 2048pattern^(|https://[A-Za-z0-9.-]+\.cloudinary\.com/.*)$example"https://res.cloudinary.com/demo/raw/upload/layouts/summer.html"
Show schema
Response returned by the Update a public page endpoint.
- data Entity.PublicPage
A public page (shareable link) for a collection. Every field is always present in a response: an unset value is returned as
null(orfalse/[]) rather than being omitted, so a read-modify-write round-trip never has to guess what an absent field meant.ShowHide child attributes of data
- id stringRequired
External ID of the public page.
example"pub_2c4d6e8f0a1b" - url stringRequired
The shareable URL of the public page, in the form
https://collection.cloudinary.com/<cloud_name>/<public_page_id>. It doesn't include the collection ID.example"https://collection.cloudinary.com/your-cloud-name/pub_2c4d6e8f0a1b" - name stringRequirednullable
Display name of the public page. May be null.
example"Summer Campaign Preview" - available_from stringRequirednullable
When the page becomes active. Null if the page is active immediately.
formatdate-timeRFC 3339 date-timeexample"2026-03-20T00:00:00Z" - expires_at stringRequirednullable
When the page expires. Null if the page never expires.
formatdate-timeRFC 3339 date-timeexample"2026-04-20T00:00:00Z" - show_download_original_option booleanRequired
Whether the option to download the original asset is shown.
exampletrue - download_transformations Entity.DownloadTransformation[]Required
Transformation templates that viewers of the public page can apply when downloading assets. Empty when the page offers none.
ShowHide child attributes of download_transformations
Items Entity.DownloadTransformationA transformation template offered for download on a public page.
- name string
Name of the transformation template.
example"thumbnail_400" - transformation string
The transformation definition behind the name.
example"c_thumb,w_400,g_face" - types string[]
Asset types the transformation is offered for.
example["image"]enum"image""video"
- protection_mode stringRequired
Secured-sharing protection mode of the public page.
nonemeans the page is unprotected;email_otpmeans viewers must verify an allowed email address with a one-time passcode before accessing the page.example"email_otp"enum"none""email_otp" - allowed_emails string[]Required
Email addresses allowed to access the page when it is protected, stored lowercased. Empty when the page is unprotected.
example["alice@example.com","bob@example.com"] - allowed_domains string[]Required
Email domains allowed to access the page when it is protected, stored lowercased and without a leading
@. Empty when the page is unprotected.example["example.com"] - allow_any booleanRequired
Whether any email address is allowed to access the page when it is protected.
examplefalse - custom_layout_url stringRequirednullable
URL of a custom HTML page in your product environment that replaces the public page's default design. Null when the page uses the default design. Only applied while the custom collection layout feature is on your plan.
example"https://res.cloudinary.com/demo/raw/upload/layouts/summer-page.html"