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.

v0.0.1OAS 3.0.3

Collections API

Download OpenAPI Document

The 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.

List collections

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, sum matches "Summer Campaign", and winter sale matches 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). field is one of name, created_at, or updated_at, the same field names the response uses, and direction is asc or desc. Defaults to updated_at desc.

    example "name asc"
  • max_results integer

    Maximum number of collections to return (1-100, default 20).

    min 1max 100example 20
  • next_cursor string

    Opaque cursor from a previous response's next_cursor to fetch the next page.

Responses

200 Collections listed successfully.
application/json
Contract.ListCollectionsResponse

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.Collection

    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_type is user, 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. When creator_type is api, this is the API key used to create the collection.

      example "usr_4a1b2c3d5e6f"
    • created_at string

      When the collection was created.

      format date-time RFC 3339 date-timeexample "2026-03-14T10:15:00Z"
    • updated_at string

      When the collection was last modified.

      format date-time RFC 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. manual holds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint; dynamic is defined by a saved filter expression and is populated automatically.

      example "dynamic"
      enum "manual" "dynamic"
    • configuration Entity.CollectionConfiguration

      Configuration for a dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.

      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 collection and List collections endpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.

      example 12
    • cover_asset_url stringnullable

      Delivery URL of an automatically selected cover asset for the collection. Returned by the Get a collection and List collections endpoints. 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.

    example 42
400 Bad request.
application/json
object
  • message string

    Human-readable description of the error.

    example "Bad Request. Please check your request for errors."
401 Unauthorized.
application/json
object
  • message string

    Human-readable description of the error.

    example "Invalid credentials"
403 Forbidden.
application/json
object
  • message string

    Human-readable description of the error.

    example "Forbidden."
500 Internal server error.
application/json
object
  • message string

    Human-readable description of the error.

    example "Internal server error. Please try again later."
GET/{cloud_name}/collections
curl 'https://api.cloudinary.com/v2/asset_management/CLOUD_NAME/collections' \
  -u 'API_KEY:API_SECRET'
Response
{
  "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
}

Create a collection

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

Contract.CreateCollectionRequestPayload
  • 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. manual holds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint; dynamic is defined by a saved filter expression and is populated automatically.

    default "manual"example "dynamic"
    enum "manual" "dynamic"
  • configuration Entity.CollectionConfiguration

    Configuration for a dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.

    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.
application/json
Contract.CreateCollectionResponse

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_type is user, 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. When creator_type is api, this is the API key used to create the collection.

      example "usr_4a1b2c3d5e6f"
    • created_at string

      When the collection was created.

      format date-time RFC 3339 date-timeexample "2026-03-14T10:15:00Z"
    • updated_at string

      When the collection was last modified.

      format date-time RFC 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. manual holds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint; dynamic is defined by a saved filter expression and is populated automatically.

      example "dynamic"
      enum "manual" "dynamic"
    • configuration Entity.CollectionConfiguration

      Configuration for a dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.

      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 collection and List collections endpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.

      example 12
    • cover_asset_url stringnullable

      Delivery URL of an automatically selected cover asset for the collection. Returned by the Get a collection and List collections endpoints. 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.
application/json
object
  • message string

    Human-readable description of the error.

    example "Bad Request. Please check your request for errors."
401 Unauthorized.
application/json
object
  • message string

    Human-readable description of the error.

    example "Invalid credentials"
403 Forbidden.
application/json
object
  • message string

    Human-readable description of the error.

    example "Forbidden."
500 Internal server error.
application/json
object
  • message string

    Human-readable description of the error.

    example "Internal server error. Please try again later."
POST/{cloud_name}/collections
curl -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"
  }
}'
Response
{
  "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"
  }
}

Get a collection

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.
application/json
Contract.GetCollectionResponse

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_type is user, 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. When creator_type is api, this is the API key used to create the collection.

      example "usr_4a1b2c3d5e6f"
    • created_at string

      When the collection was created.

      format date-time RFC 3339 date-timeexample "2026-03-14T10:15:00Z"
    • updated_at string

      When the collection was last modified.

      format date-time RFC 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. manual holds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint; dynamic is defined by a saved filter expression and is populated automatically.

      example "dynamic"
      enum "manual" "dynamic"
    • configuration Entity.CollectionConfiguration

      Configuration for a dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.

      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 collection and List collections endpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.

      example 12
    • cover_asset_url stringnullable

      Delivery URL of an automatically selected cover asset for the collection. Returned by the Get a collection and List collections endpoints. 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.
application/json
object
  • message string

    Human-readable description of the error.

    example "Invalid credentials"
403 Forbidden.
application/json
object
  • message string

    Human-readable description of the error.

    example "Forbidden."
404 Not found.
application/json
object
  • message string

    Human-readable description of the error.

    example "Not found."
500 Internal server error.
application/json
object
  • message string

    Human-readable description of the error.

    example "Internal server error. Please try again later."
GET/{cloud_name}/collections/{collection_id}
curl 'https://api.cloudinary.com/v2/asset_management/CLOUD_NAME/collections/col_8f3a2b1c9d4e' \
  -u 'API_KEY:API_SECRET'
Response
{
  "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"
  }
}

Update a collection

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

Contract.UpdateCollectionRequestPayload

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 null or 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 dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.

    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.
application/json
Contract.UpdateCollectionResponse

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_type is user, 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. When creator_type is api, this is the API key used to create the collection.

      example "usr_4a1b2c3d5e6f"
    • created_at string

      When the collection was created.

      format date-time RFC 3339 date-timeexample "2026-03-14T10:15:00Z"
    • updated_at string

      When the collection was last modified.

      format date-time RFC 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. manual holds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint; dynamic is defined by a saved filter expression and is populated automatically.

      example "dynamic"
      enum "manual" "dynamic"
    • configuration Entity.CollectionConfiguration

      Configuration for a dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.

      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 collection and List collections endpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.

      example 12
    • cover_asset_url stringnullable

      Delivery URL of an automatically selected cover asset for the collection. Returned by the Get a collection and List collections endpoints. 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.
application/json
object
  • message string

    Human-readable description of the error.

    example "Bad Request. Please check your request for errors."
401 Unauthorized.
application/json
object
  • message string

    Human-readable description of the error.

    example "Invalid credentials"
403 Forbidden.
application/json
object
  • message string

    Human-readable description of the error.

    example "Forbidden."
404 Not found.
application/json
object
  • message string

    Human-readable description of the error.

    example "Not found."
500 Internal server error.
application/json
object
  • message string

    Human-readable description of the error.

    example "Internal server error. Please try again later."
PUT/{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"
  }
}'
Response
{
  "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"
  }
}

Delete a collection

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.
application/json
Contract.DeleteCollectionResponse

Response returned by the Delete a collection endpoint.

  • message stringRequired

    Confirmation that the collection was deleted.

    example "Collection deleted successfully."
401 Unauthorized.
application/json
object
  • message string

    Human-readable description of the error.

    example "Invalid credentials"
403 Forbidden.
application/json
object
  • message string

    Human-readable description of the error.

    example "Forbidden."
404 Not found.
application/json
object
  • message string

    Human-readable description of the error.

    example "Not found."
500 Internal server error.
application/json
object
  • message string

    Human-readable description of the error.

    example "Internal server error. Please try again later."
DEL/{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'
Response
{
  "message": "Collection deleted successfully."
}

List a collection's assets

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). field is one of created_at, uploaded_at, public_id, display_name, or bytes, and direction is asc or desc. Defaults to created_at desc. When paging with next_cursor, send the same sort_by on 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 100example 20
  • next_cursor string

    Opaque cursor from a previous response's next_cursor to fetch the next page. Send it with the same sort_by (and max_results) as the request that returned it.

Responses

200 Assets listed successfully.
application/json
Contract.ListCollectionAssetsResponse

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.CollectionAsset

    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, or raw).

      example "image"
    • type stringRequired

      The delivery type of the asset, e.g. upload, private, or authenticated.

      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.

      format int64 Signed 64-bit integerexample 482113
    • width integerRequirednullable

      Width in pixels, or null for assets without dimensions (e.g. raw files).

      example 1920
    • height integerRequirednullable

      Height in pixels, or null for assets without dimensions (e.g. raw files).

      example 1080
    • 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.

      format date-time RFC 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.

    example 12
400 Bad request.
application/json
object
  • message string

    Human-readable description of the error.

    example "Bad Request. Please check your request for errors."
401 Unauthorized.
application/json
object
  • message string

    Human-readable description of the error.

    example "Invalid credentials"
403 Forbidden.
application/json
object
  • message string

    Human-readable description of the error.

    example "Forbidden."
404 Not found.
application/json
object
  • message string

    Human-readable description of the error.

    example "Not found."
500 Internal server error.
application/json
object
  • message string

    Human-readable description of the error.

    example "Internal server error. Please try again later."
GET/{cloud_name}/collections/{collection_id}/assets
curl 'https://api.cloudinary.com/v2/asset_management/CLOUD_NAME/collections/col_8f3a2b1c9d4e/assets' \
  -u 'API_KEY:API_SECRET'
Response
{
  "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
}

Add assets to a collection

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.
application/json
Contract.AddCollectionAssetsResponse

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_type is user, 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. When creator_type is api, this is the API key used to create the collection.

      example "usr_4a1b2c3d5e6f"
    • created_at string

      When the collection was created.

      format date-time RFC 3339 date-timeexample "2026-03-14T10:15:00Z"
    • updated_at string

      When the collection was last modified.

      format date-time RFC 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. manual holds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint; dynamic is defined by a saved filter expression and is populated automatically.

      example "dynamic"
      enum "manual" "dynamic"
    • configuration Entity.CollectionConfiguration

      Configuration for a dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.

      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 collection and List collections endpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.

      example 12
    • cover_asset_url stringnullable

      Delivery URL of an automatically selected cover asset for the collection. Returned by the Get a collection and List collections endpoints. 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.
application/json
object
  • message string

    Human-readable description of the error.

    example "Bad Request. Please check your request for errors."
401 Unauthorized.
application/json
object
  • message string

    Human-readable description of the error.

    example "Invalid credentials"
403 Forbidden.
application/json
object
  • message string

    Human-readable description of the error.

    example "Forbidden."
404 Not found.
application/json
object
  • message string

    Human-readable description of the error.

    example "Not found."
500 Internal server error.
application/json
object
  • message string

    Human-readable description of the error.

    example "Internal server error. Please try again later."
POST/{cloud_name}/collections/{collection_id}/assets
curl -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"
]'
Response
{
  "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"
  }
}

Remove assets from a collection

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.
application/json
Contract.RemoveCollectionAssetsResponse

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_type is user, 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. When creator_type is api, this is the API key used to create the collection.

      example "usr_4a1b2c3d5e6f"
    • created_at string

      When the collection was created.

      format date-time RFC 3339 date-timeexample "2026-03-14T10:15:00Z"
    • updated_at string

      When the collection was last modified.

      format date-time RFC 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. manual holds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint; dynamic is defined by a saved filter expression and is populated automatically.

      example "dynamic"
      enum "manual" "dynamic"
    • configuration Entity.CollectionConfiguration

      Configuration for a dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.

      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 collection and List collections endpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.

      example 12
    • cover_asset_url stringnullable

      Delivery URL of an automatically selected cover asset for the collection. Returned by the Get a collection and List collections endpoints. 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.
application/json
object
  • message string

    Human-readable description of the error.

    example "Bad Request. Please check your request for errors."
401 Unauthorized.
application/json
object
  • message string

    Human-readable description of the error.

    example "Invalid credentials"
403 Forbidden.
application/json
object
  • message string

    Human-readable description of the error.

    example "Forbidden."
404 Not found.
application/json
object
  • message string

    Human-readable description of the error.

    example "Not found."
500 Internal server error.
application/json
object
  • message string

    Human-readable description of the error.

    example "Internal server error. Please try again later."
DEL/{cloud_name}/collections/{collection_id}/assets
curl -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"
]'
Response
{
  "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"
  }
}

List a collection's public pages

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.
application/json
Contract.ListCollectionPublicPagesResponse

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.PublicPage

    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.

      format date-time RFC 3339 date-timeexample "2026-03-20T00:00:00Z"
    • expires_at stringRequirednullable

      When the page expires. Null if the page never expires.

      format date-time RFC 3339 date-timeexample "2026-04-20T00:00:00Z"
    • show_download_original_option booleanRequired

      Whether the option to download the original asset is shown.

      example true
    • 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.DownloadTransformation

      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"
    • protection_mode stringRequired

      Secured-sharing protection mode of the public page. none means the page is unprotected; email_otp means 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.

      example false
    • 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.
application/json
object
  • message string

    Human-readable description of the error.

    example "Invalid credentials"
403 Forbidden.
application/json
object
  • message string

    Human-readable description of the error.

    example "Forbidden."
404 Not found.
application/json
object
  • message string

    Human-readable description of the error.

    example "Not found."
500 Internal server error.
application/json
object
  • message string

    Human-readable description of the error.

    example "Internal server error. Please try again later."
GET/{cloud_name}/collections/{collection_id}/public_pages
curl 'https://api.cloudinary.com/v2/asset_management/CLOUD_NAME/collections/col_8f3a2b1c9d4e/public_pages' \
  -u 'API_KEY:API_SECRET'
Response
{
  "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
    }
  ]
}

Publish a collection

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

Contract.CreatePublicPageRequestPayload

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.

    format date-time RFC 3339 date-timeexample "2026-03-20T00:00:00Z"
  • expires_at stringnullable

    When the page expires. If omitted or null, the page never expires.

    format date-time RFC 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.

    example true
  • 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_transformations to true to 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 200
    ShowHide child attributes of download_transformations
    Items Entity.DownloadTransformationInput

    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 types on that first request to make it available for both image and video. If the name is already available for download (set by an earlier request on this or another public page), omit types to keep its existing setting, or send its exact current list; sending a different list fails with download_transformation_types_conflict. An empty list is rejected.

      min items 1example ["video"]
      enum "image" "video"
  • create_download_transformations booleannullable

    When true, any name in download_transformations that 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. When false or omitted, the request instead fails with download_transformation_not_available if any listed name isn't yet set as a transformation template, and nothing is changed.

    default falseexample true

Responses

201 Public page created successfully.
application/json
Contract.CreatePublicPageResponse

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 (or false / []) 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.

      format date-time RFC 3339 date-timeexample "2026-03-20T00:00:00Z"
    • expires_at stringRequirednullable

      When the page expires. Null if the page never expires.

      format date-time RFC 3339 date-timeexample "2026-04-20T00:00:00Z"
    • show_download_original_option booleanRequired

      Whether the option to download the original asset is shown.

      example true
    • 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.DownloadTransformation

      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"
    • protection_mode stringRequired

      Secured-sharing protection mode of the public page. none means the page is unprotected; email_otp means 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.

      example false
    • 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.
application/json
object
  • message string

    Human-readable description of the error.

    example "Bad Request. Please check your request for errors."
401 Unauthorized.
application/json
object
  • message string

    Human-readable description of the error.

    example "Invalid credentials"
403 Forbidden.
application/json
object
  • message string

    Human-readable description of the error.

    example "Forbidden."
404 Not found.
application/json
object
  • message string

    Human-readable description of the error.

    example "Not found."
500 Internal server error.
application/json
object
  • message string

    Human-readable description of the error.

    example "Internal server error. Please try again later."
POST/{cloud_name}/collections/{collection_id}/public_pages
curl -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
}'
Response
{
  "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"
  }
}

Get a public page

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.
application/json
Contract.GetCollectionPublicPageResponse

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 (or false / []) 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.

      format date-time RFC 3339 date-timeexample "2026-03-20T00:00:00Z"
    • expires_at stringRequirednullable

      When the page expires. Null if the page never expires.

      format date-time RFC 3339 date-timeexample "2026-04-20T00:00:00Z"
    • show_download_original_option booleanRequired

      Whether the option to download the original asset is shown.

      example true
    • 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.DownloadTransformation

      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"
    • protection_mode stringRequired

      Secured-sharing protection mode of the public page. none means the page is unprotected; email_otp means 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.

      example false
    • 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.
application/json
object
  • message string

    Human-readable description of the error.

    example "Invalid credentials"
403 Forbidden.
application/json
object
  • message string

    Human-readable description of the error.

    example "Forbidden."
404 Not found.
application/json
object
  • message string

    Human-readable description of the error.

    example "Not found."
500 Internal server error.
application/json
object
  • message string

    Human-readable description of the error.

    example "Internal server error. Please try again later."
GET/{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'
Response
{
  "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"
  }
}

Update a public page

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

Contract.UpdatePublicPageRequestPayload

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.

    format date-time RFC 3339 date-timeexample "2026-03-20T00:00:00Z"
  • expires_at stringnullable

    New expiry time for the page. Omit to leave the current value unchanged.

    format date-time RFC 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.

    example true
  • 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 200
    ShowHide child attributes of download_transformations
    Items Entity.DownloadTransformationInput

    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 types on that first request to make it available for both image and video. If the name is already available for download (set by an earlier request on this or another public page), omit types to keep its existing setting, or send its exact current list; sending a different list fails with download_transformation_types_conflict. An empty list is rejected.

      min items 1example ["video"]
      enum "image" "video"
  • create_download_transformations booleannullable

    When true, any name in download_transformations that 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. When false or omitted, the request instead fails with download_transformation_not_available if any listed name isn't yet set as a transformation template, and nothing is changed.

    default falseexample true
  • protection_mode stringnullable

    Secured-sharing protection mode. none removes protection and clears the allowed emails, domains and allow_any. email_otp protects 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, or allow_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 send email_otp to 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_any rule). Together with allowed_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 the allow_any rule). Together with allowed_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_otp page needs allow_any: true or at least one entry in allowed_emails or allowed_domains; otherwise the request fails with 400 invalid_protection_settings. Omit to leave the current value unchanged.

    example false
  • 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 https URL on a cloudinary.com host 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.
application/json
Contract.UpdatePublicPageResponse

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 (or false / []) 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.

      format date-time RFC 3339 date-timeexample "2026-03-20T00:00:00Z"
    • expires_at stringRequirednullable

      When the page expires. Null if the page never expires.

      format date-time RFC 3339 date-timeexample "2026-04-20T00:00:00Z"
    • show_download_original_option booleanRequired

      Whether the option to download the original asset is shown.

      example true
    • 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.DownloadTransformation

      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"
    • protection_mode stringRequired

      Secured-sharing protection mode of the public page. none means the page is unprotected; email_otp means 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.

      example false
    • 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.
application/json
object
  • message string

    Human-readable description of the error.

    example "Bad Request. Please check your request for errors."
401 Unauthorized.
application/json
object
  • message string

    Human-readable description of the error.

    example "Invalid credentials"
403 Forbidden.
application/json
object
  • message string

    Human-readable description of the error.

    example "Forbidden."
404 Not found.
application/json
object
  • message string

    Human-readable description of the error.

    example "Not found."
500 Internal server error.
application/json
object
  • message string

    Human-readable description of the error.

    example "Internal server error. Please try again later."
PUT/{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"
}'
Response
{
  "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"
  }
}

Unpublish a collection's public page

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.
application/json
Contract.DeletePublicPageResponse

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.
application/json
object
  • message string

    Human-readable description of the error.

    example "Invalid credentials"
403 Forbidden.
application/json
object
  • message string

    Human-readable description of the error.

    example "Forbidden."
404 Not found.
application/json
object
  • message string

    Human-readable description of the error.

    example "Not found."
500 Internal server error.
application/json
object
  • message string

    Human-readable description of the error.

    example "Internal server error. Please try again later."
DEL/{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'
Response
{
  "message": "Public page deleted successfully."
}

Models

Contract.CreateCollectionRequestPayload

Show schema
object
  • 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. manual holds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint; dynamic is defined by a saved filter expression and is populated automatically.

    default "manual"example "dynamic"
    enum "manual" "dynamic"
  • configuration Entity.CollectionConfiguration

    Configuration for a dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.

    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"

Entity.CollectionConfiguration

Show schema
object

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"

Entity.Collection

Show schema
object

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_type is user, 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. When creator_type is api, this is the API key used to create the collection.

    example "usr_4a1b2c3d5e6f"
  • created_at string

    When the collection was created.

    format date-time RFC 3339 date-timeexample "2026-03-14T10:15:00Z"
  • updated_at string

    When the collection was last modified.

    format date-time RFC 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. manual holds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint; dynamic is defined by a saved filter expression and is populated automatically.

    example "dynamic"
    enum "manual" "dynamic"
  • configuration Entity.CollectionConfiguration

    Configuration for a dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.

    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 collection and List collections endpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.

    example 12
  • cover_asset_url stringnullable

    Delivery URL of an automatically selected cover asset for the collection. Returned by the Get a collection and List collections endpoints. 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"

Contract.CreateCollectionResponse

Show schema
object

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_type is user, 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. When creator_type is api, this is the API key used to create the collection.

      example "usr_4a1b2c3d5e6f"
    • created_at string

      When the collection was created.

      format date-time RFC 3339 date-timeexample "2026-03-14T10:15:00Z"
    • updated_at string

      When the collection was last modified.

      format date-time RFC 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. manual holds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint; dynamic is defined by a saved filter expression and is populated automatically.

      example "dynamic"
      enum "manual" "dynamic"
    • configuration Entity.CollectionConfiguration

      Configuration for a dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.

      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 collection and List collections endpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.

      example 12
    • cover_asset_url stringnullable

      Delivery URL of an automatically selected cover asset for the collection. Returned by the Get a collection and List collections endpoints. 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"

Contract.GetCollectionResponse

Show schema
object

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_type is user, 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. When creator_type is api, this is the API key used to create the collection.

      example "usr_4a1b2c3d5e6f"
    • created_at string

      When the collection was created.

      format date-time RFC 3339 date-timeexample "2026-03-14T10:15:00Z"
    • updated_at string

      When the collection was last modified.

      format date-time RFC 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. manual holds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint; dynamic is defined by a saved filter expression and is populated automatically.

      example "dynamic"
      enum "manual" "dynamic"
    • configuration Entity.CollectionConfiguration

      Configuration for a dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.

      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 collection and List collections endpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.

      example 12
    • cover_asset_url stringnullable

      Delivery URL of an automatically selected cover asset for the collection. Returned by the Get a collection and List collections endpoints. 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"

Contract.UpdateCollectionRequestPayload

Show schema
object

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 null or 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 dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.

    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"

Contract.UpdateCollectionResponse

Show schema
object

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_type is user, 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. When creator_type is api, this is the API key used to create the collection.

      example "usr_4a1b2c3d5e6f"
    • created_at string

      When the collection was created.

      format date-time RFC 3339 date-timeexample "2026-03-14T10:15:00Z"
    • updated_at string

      When the collection was last modified.

      format date-time RFC 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. manual holds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint; dynamic is defined by a saved filter expression and is populated automatically.

      example "dynamic"
      enum "manual" "dynamic"
    • configuration Entity.CollectionConfiguration

      Configuration for a dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.

      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 collection and List collections endpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.

      example 12
    • cover_asset_url stringnullable

      Delivery URL of an automatically selected cover asset for the collection. Returned by the Get a collection and List collections endpoints. 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"

Contract.ListCollectionsResponse

Show schema
object

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.Collection

    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_type is user, 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. When creator_type is api, this is the API key used to create the collection.

      example "usr_4a1b2c3d5e6f"
    • created_at string

      When the collection was created.

      format date-time RFC 3339 date-timeexample "2026-03-14T10:15:00Z"
    • updated_at string

      When the collection was last modified.

      format date-time RFC 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. manual holds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint; dynamic is defined by a saved filter expression and is populated automatically.

      example "dynamic"
      enum "manual" "dynamic"
    • configuration Entity.CollectionConfiguration

      Configuration for a dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.

      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 collection and List collections endpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.

      example 12
    • cover_asset_url stringnullable

      Delivery URL of an automatically selected cover asset for the collection. Returned by the Get a collection and List collections endpoints. 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.

    example 42

Entity.CollectionAsset

Show schema
object

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, or raw).

    example "image"
  • type stringRequired

    The delivery type of the asset, e.g. upload, private, or authenticated.

    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.

    format int64 Signed 64-bit integerexample 482113
  • width integerRequirednullable

    Width in pixels, or null for assets without dimensions (e.g. raw files).

    example 1920
  • height integerRequirednullable

    Height in pixels, or null for assets without dimensions (e.g. raw files).

    example 1080
  • 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.

    format date-time RFC 3339 date-timeexample "2026-03-14T10:15:00Z"

Contract.ListCollectionAssetsResponse

Show schema
object

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.CollectionAsset

    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, or raw).

      example "image"
    • type stringRequired

      The delivery type of the asset, e.g. upload, private, or authenticated.

      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.

      format int64 Signed 64-bit integerexample 482113
    • width integerRequirednullable

      Width in pixels, or null for assets without dimensions (e.g. raw files).

      example 1920
    • height integerRequirednullable

      Height in pixels, or null for assets without dimensions (e.g. raw files).

      example 1080
    • 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.

      format date-time RFC 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.

    example 12

Contract.AddCollectionAssetsRequestPayload

Show schema
string[]

A list of asset_id values of the assets to add to the collection.

Contract.AddCollectionAssetsResponse

Show schema
object

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_type is user, 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. When creator_type is api, this is the API key used to create the collection.

      example "usr_4a1b2c3d5e6f"
    • created_at string

      When the collection was created.

      format date-time RFC 3339 date-timeexample "2026-03-14T10:15:00Z"
    • updated_at string

      When the collection was last modified.

      format date-time RFC 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. manual holds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint; dynamic is defined by a saved filter expression and is populated automatically.

      example "dynamic"
      enum "manual" "dynamic"
    • configuration Entity.CollectionConfiguration

      Configuration for a dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.

      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 collection and List collections endpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.

      example 12
    • cover_asset_url stringnullable

      Delivery URL of an automatically selected cover asset for the collection. Returned by the Get a collection and List collections endpoints. 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"

Contract.RemoveCollectionAssetsRequestPayload

Show schema
string[]

A list of asset_id values of the assets to remove from the collection.

Contract.RemoveCollectionAssetsResponse

Show schema
object

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_type is user, 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. When creator_type is api, this is the API key used to create the collection.

      example "usr_4a1b2c3d5e6f"
    • created_at string

      When the collection was created.

      format date-time RFC 3339 date-timeexample "2026-03-14T10:15:00Z"
    • updated_at string

      When the collection was last modified.

      format date-time RFC 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. manual holds an explicit asset list and starts empty until you add assets with the Add assets to a collection endpoint; dynamic is defined by a saved filter expression and is populated automatically.

      example "dynamic"
      enum "manual" "dynamic"
    • configuration Entity.CollectionConfiguration

      Configuration for a dynamic collection. Required when creating a dynamic collection, and not allowed for a manual collection.

      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 collection and List collections endpoints. Omitted from the responses of the endpoints that create, update, or change the assets of a collection.

      example 12
    • cover_asset_url stringnullable

      Delivery URL of an automatically selected cover asset for the collection. Returned by the Get a collection and List collections endpoints. 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"

Contract.DeleteCollectionResponse

Show schema
object

Response returned by the Delete a collection endpoint.

  • message stringRequired

    Confirmation that the collection was deleted.

    example "Collection deleted successfully."

Contract.CreatePublicPageRequestPayload

Show schema
object

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.

    format date-time RFC 3339 date-timeexample "2026-03-20T00:00:00Z"
  • expires_at stringnullable

    When the page expires. If omitted or null, the page never expires.

    format date-time RFC 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.

    example true
  • 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_transformations to true to 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 200
    ShowHide child attributes of download_transformations
    Items Entity.DownloadTransformationInput

    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 types on that first request to make it available for both image and video. If the name is already available for download (set by an earlier request on this or another public page), omit types to keep its existing setting, or send its exact current list; sending a different list fails with download_transformation_types_conflict. An empty list is rejected.

      min items 1example ["video"]
      enum "image" "video"
  • create_download_transformations booleannullable

    When true, any name in download_transformations that 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. When false or omitted, the request instead fails with download_transformation_not_available if any listed name isn't yet set as a transformation template, and nothing is changed.

    default falseexample true

Entity.DownloadTransformationInput

Show schema
object

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 types on that first request to make it available for both image and video. If the name is already available for download (set by an earlier request on this or another public page), omit types to keep its existing setting, or send its exact current list; sending a different list fails with download_transformation_types_conflict. An empty list is rejected.

    min items 1example ["video"]
    enum "image" "video"

Entity.DownloadTransformation

Show schema
object

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"

Entity.PublicPage

Show schema
object

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.

    format date-time RFC 3339 date-timeexample "2026-03-20T00:00:00Z"
  • expires_at stringRequirednullable

    When the page expires. Null if the page never expires.

    format date-time RFC 3339 date-timeexample "2026-04-20T00:00:00Z"
  • show_download_original_option booleanRequired

    Whether the option to download the original asset is shown.

    example true
  • 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.DownloadTransformation

    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"
  • protection_mode stringRequired

    Secured-sharing protection mode of the public page. none means the page is unprotected; email_otp means 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.

    example false
  • 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"

Contract.CreatePublicPageResponse

Show schema
object

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 (or false / []) 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.

      format date-time RFC 3339 date-timeexample "2026-03-20T00:00:00Z"
    • expires_at stringRequirednullable

      When the page expires. Null if the page never expires.

      format date-time RFC 3339 date-timeexample "2026-04-20T00:00:00Z"
    • show_download_original_option booleanRequired

      Whether the option to download the original asset is shown.

      example true
    • 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.DownloadTransformation

      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"
    • protection_mode stringRequired

      Secured-sharing protection mode of the public page. none means the page is unprotected; email_otp means 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.

      example false
    • 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"

Contract.ListCollectionPublicPagesResponse

Show schema
object

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.PublicPage

    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.

      format date-time RFC 3339 date-timeexample "2026-03-20T00:00:00Z"
    • expires_at stringRequirednullable

      When the page expires. Null if the page never expires.

      format date-time RFC 3339 date-timeexample "2026-04-20T00:00:00Z"
    • show_download_original_option booleanRequired

      Whether the option to download the original asset is shown.

      example true
    • 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.DownloadTransformation

      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"
    • protection_mode stringRequired

      Secured-sharing protection mode of the public page. none means the page is unprotected; email_otp means 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.

      example false
    • 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"

Contract.GetCollectionPublicPageResponse

Show schema
object

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 (or false / []) 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.

      format date-time RFC 3339 date-timeexample "2026-03-20T00:00:00Z"
    • expires_at stringRequirednullable

      When the page expires. Null if the page never expires.

      format date-time RFC 3339 date-timeexample "2026-04-20T00:00:00Z"
    • show_download_original_option booleanRequired

      Whether the option to download the original asset is shown.

      example true
    • 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.DownloadTransformation

      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"
    • protection_mode stringRequired

      Secured-sharing protection mode of the public page. none means the page is unprotected; email_otp means 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.

      example false
    • 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"

Contract.UpdatePublicPageRequestPayload

Show schema
object

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.

    format date-time RFC 3339 date-timeexample "2026-03-20T00:00:00Z"
  • expires_at stringnullable

    New expiry time for the page. Omit to leave the current value unchanged.

    format date-time RFC 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.

    example true
  • 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 200
    ShowHide child attributes of download_transformations
    Items Entity.DownloadTransformationInput

    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 types on that first request to make it available for both image and video. If the name is already available for download (set by an earlier request on this or another public page), omit types to keep its existing setting, or send its exact current list; sending a different list fails with download_transformation_types_conflict. An empty list is rejected.

      min items 1example ["video"]
      enum "image" "video"
  • create_download_transformations booleannullable

    When true, any name in download_transformations that 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. When false or omitted, the request instead fails with download_transformation_not_available if any listed name isn't yet set as a transformation template, and nothing is changed.

    default falseexample true
  • protection_mode stringnullable

    Secured-sharing protection mode. none removes protection and clears the allowed emails, domains and allow_any. email_otp protects 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, or allow_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 send email_otp to 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_any rule). Together with allowed_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 the allow_any rule). Together with allowed_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_otp page needs allow_any: true or at least one entry in allowed_emails or allowed_domains; otherwise the request fails with 400 invalid_protection_settings. Omit to leave the current value unchanged.

    example false
  • 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 https URL on a cloudinary.com host 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"

Contract.UpdatePublicPageResponse

Show schema
object

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 (or false / []) 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.

      format date-time RFC 3339 date-timeexample "2026-03-20T00:00:00Z"
    • expires_at stringRequirednullable

      When the page expires. Null if the page never expires.

      format date-time RFC 3339 date-timeexample "2026-04-20T00:00:00Z"
    • show_download_original_option booleanRequired

      Whether the option to download the original asset is shown.

      example true
    • 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.DownloadTransformation

      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"
    • protection_mode stringRequired

      Secured-sharing protection mode of the public page. none means the page is unprotected; email_otp means 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.

      example false
    • 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"

Contract.DeletePublicPageResponse

Show schema
object

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."