Lodol Docs

Cloudinary

API actions for the Cloudinary integration.

Cloudinary

Upload and manage media assets with Cloudinary.


Delete asset

Delete an asset from Cloudinary by its public ID.

Parameters

ParameterTypeRequiredDescription
public_idstringYesThe public ID of the asset to delete
resource_typestringNo[Optional] The resource type (default: image)

Response

{
  "public_id": "mock_public_id",
  "result": "deleted"
}

List assets by tag

List all Cloudinary assets that have a specific tag.

Parameters

ParameterTypeRequiredDescription
tagstringYesThe tag to filter assets by
resource_typestringNoResource type to search (default: image). Options: image, video, raw.
max_resultsnumberNo[Optional] Maximum number of assets to return

Response

{
  "assets": [
    {
      "format": "jpg",
      "public_id": "mock_asset_id",
      "resource_type": "image",
      "secure_url": "https://res.cloudinary.com/demo/image/upload/mock_asset_id.jpg",
      "type": "upload"
    }
  ],
  "count": 1
}

Upload image from URL

Upload an image to Cloudinary from a remote URL.

Parameters

ParameterTypeRequiredDescription
image_urlstringYesThe URL of the image to upload
folderstringNo[Optional] Folder path to organize the uploaded asset
public_idstringNo[Optional] Custom public ID for the asset

Response

{
  "bytes": 12345,
  "public_id": "mock_public_id",
  "secure_url": "https://res.cloudinary.com/demo/image/upload/v1234567890/mock_public_id.jpg",
  "version": "1234567890"
}

On this page