Designer API
Control the Webflow Designer
webflow.getAllAssets()
Retrieve all assets on a site.
1webflow.getAllAssets(): Promise<Asset[]>
Promise<Asset[]>
A Promise that resolves to an array of Assets.
1// Get all assets2const assets = await webflow.getAllAssets()34// Loop to list assets in the console5for (const asset of assets) {6 const name = await asset.getName()7 const mimeType = await asset.getMimeType()8 console.log(name, mimeType)9}
Try this example
Checks for authorization only