Webflow’s asset APIs enable apps to upload and manage a site’s assets. Learn more about assets in Webflow in the support documentation.
These APIs enable developers to create integrations that sync with external file management systems like Digital Asset Managers (DAMs). Keeping these systems in sync ensures that site designers and content managers have the assets they need when working in Webflow.
Files you upload to the assets panel aren’t restricted — that is, they’re 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.
Yes, uploaded assets must adhere to specific size limitations:
When uploading a file, Webflow requires an MD5 hash generated from the contents of the file to ensure data integrity and manage duplicate assets.
A cryptographic hash, also often referred to as a “digest”, “fingerprint” or “signature”, is an almost perfectly unique string of characters that is generated from a separate piece of input text. —boot.dev
A cryptographic hash is the result of a hashing algorithm, which deterministically converts input data into an output of fixed length, regardless of input size.
Hashes serve a range of purposes, from verifying data integrity and enabling fast lookups in databases, to efficiently identifying duplicates. Let’s break down what that looks like when uploading a file to Webflow and including an MD5 hash:
Before uploading, use the MD5 hashing algorithm to convert the binary contents of your file into a 128-bit hash. This hash will serve as the fileHash value.
When creating a new asset in Webflow, include this generated fileHash with a request to the Create Asset Metadata endpoint.
In this tutorial, you’ll build an example script that:
assets:read, assets:writeCongratulations! You’ve just programmatically created asset folders and uploaded assets to a Webflow site. These assets can now be organized and used across the site by designers and editors of Webflow projects.
Looking for more things to try with the API? Check out: