Skip to main content
GET
Create an upload URL
Create a short-lived upload URL that can receive files without exposing the service key. The URL is managed by the FiveMesh API. Uploads still enforce path scope, file limits, MIME allow-lists and metadata rules. Requires cdn:write.
The upload URL is not a direct storage URL. Send the upload request to the returned uploadUrl.
number
Optional lifetime in seconds. The API clamps it to the workspace maximum.
string
Optional path lock and default upload folder. Uploaded files must stay under this folder. If the upload request omits path, files are stored here.
number
Optional maximum number of files accepted by the URL. Defaults to 1.
number
Optional maximum size per file, in bytes.
string
Optional comma-separated allow-list, such as image/png,image/jpeg.
boolean
Optional flag that allows the upload request to include metadata.
The response uses Cache-Control: no-store because the upload URL is a credential.