Upload Asset
The first step in uploading an asset to a site.
This endpoint generates a response with the following information: uploadUrl
and uploadDetails
.
Use these properties in the header of a POST request to Amazson s3 to complete the upload.
To learn more about how to upload assets to Webflow, see our assets guide.
Required scope | assets:write
Path parameters
site_id
Unique identifier for a Site
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
Information about the asset to create
fileName
File name including file extension. File names must be less than 100 characters.
fileHash
MD5 hash of the file
parentFolder
ID of the Asset folder (optional)
Response
Request was successful
uploadDetails
Metadata for uploading the asset binary
contentType
id
parentFolder
Parent folder for the asset
uploadUrl
assetUrl
S3 link to the asset
hostedUrl
Represents the link to the asset
originalFileName
Original file name when uploaded. If not specified at time of upload, it may be extracted from the raw file name
createdOn
Date the asset metadata was created
lastUpdated
Date the asset metadata was last updated