Assets
The Asset APIs enable you to manage and interact with your site’s media files through the Designer’s Assets panel. These APIs allow you to:
- Upload new assets to your Webflow site
- Retrieve existing assets and their metadata
- Update asset properties like names and alt text
- Organize assets into folders
- Get direct URLs to hosted assets
Using assets on a site
To display an asset on a page, you can:
- Create or select an asset
- Create an image element using the
webflow.elementPresets.Image
element preset - Set the asset on the image element
- Optionally set additional properties like alt text for accessibility
Example
Supported file types
The Asset APIs support various file types including images, documents, and Lottie animations. Refer to the accepted MIME types listed below for compatibility. Lottie files should be passed as application/json
MIME types.
MIME Types
Files upload to the Assets panel are not restricted — that is, they are publicly available and discoverable, but won’t necessarily be discovered or indexed by search engines if the file isn’t on a publicly viewable webpage or linked elsewhere. Learn more about asset privacy in Webflow.