UploadImage
Uploads an image to the Klaviyo account and returns metadata including the file URL and Id.
Input
| Name | Type | Required | Description |
| Name | String | False | Specifies a name for the uploaded image. Defaults to the filename if not provided. If the name matches an existing image, a suffix is automatically appended to ensure uniqueness. |
| ImageURL | String | False | Specifies an existing image URL to import the image from, or a base64-encoded data URI (data:image/...). Supported image formats include jpeg, png, and gif. The maximum supported file size is 5 MB. |
| ImageFile | String | False | Specifies the local image file to upload. Supported image formats include jpeg, png, and gif. The maximum supported file size is 5 MB. |
| IsHidden | Bool | False | Indicates whether the uploaded image should be hidden from the asset library. Defaults to false.
The allowed values are true, false. |
Result Set Columns
| Name | Type | Description |
| Id | String | The unique identifier assigned to the uploaded image. |
| Name | String | The name of the uploaded image. Defaults to the filename if not provided. If the name matches an existing image, a suffix is automatically appended. |
| ImageUrl | String | The accessible URL of the uploaded image in Klaviyo's asset library. |
| Format | String | Specifies the image file format. Supported formats include jpeg, png, and gif. |
| Size | Int | The size of the uploaded image file, measured in bytes. The maximum supported file size is 5 MB. |
| IsHidden | Bool | Indicates whether the image is hidden from display in the asset library. Defaults to false. |
| UpdatedAt | Datetime | The date and time when the image was last updated in the Klaviyo asset library, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm). |