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
| Parameter | Type | Required | Description |
|---|---|---|---|
public_id | string | Yes | The public ID of the asset to delete |
resource_type | string | No | [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
| Parameter | Type | Required | Description |
|---|---|---|---|
tag | string | Yes | The tag to filter assets by |
resource_type | string | No | Resource type to search (default: image). Options: image, video, raw. |
max_results | number | No | [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
| Parameter | Type | Required | Description |
|---|---|---|---|
image_url | string | Yes | The URL of the image to upload |
folder | string | No | [Optional] Folder path to organize the uploaded asset |
public_id | string | No | [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"
}