Marketing API
Assets

Asset Object

Attributes

id string A unique identifier for the asset.



object string The value is always asset.



filename string The name of the file.



status string The possible values are active or pending.



filesize integer The size of the file in bytes.



extension string The extension of the file such as pdf or doc. Images are always converted to webp.



type string The possible values are folder, image and file.



version string The file's current version (if any).



created_at timestamp The date the file was created as a Unix timestamp.



updated_at timestamp The date the file was updated as a Unix timestamp.



folder string The id of the folder that the asset is located in.



number_of_children integer The total number of assets located in this folder. Available for assets with type folder.



number_of_downloads integer The total number of times this asset has been downloaded.



alt_text string The alt text of the asset used for SEO purposes. Available for assets with type image.



public_url string The public URL of the asset. Available for public assets with type image.



width integer The width of the asset. Available for assets with type image.



height integer The height of the asset. Available for assets with type image.



thumbnails array of objects An array of objects container the thumbnail configuration for the asset. Available for public assets with type image. Private images received a single thumbnail with width of 100px.

JSON

  • url string The public URL of the thumbnail.
  • size integer The filesize of the thumbnails in bytes.
  • width integer The width of the image in pixels.
  • height integer The height of the image in pixels.