Begin an asset upload
Step 1 of the two-step upload: validates kind, mimeType, and byteSize, creates the asset as pending, and returns presigned upload instructions. Include a one-line description (and category for images) so the asset can be found later. PUT the raw bytes to upload.url with exactly upload.headers within 15 minutes, then finalize. image accepts PNG, JPEG, WebP, GIF, AVIF, SVG, BMP, and ICO up to 10 MiB; file accepts documents, fonts, audio, video, images, ZIP, .riv, and .lottie up to 100 MiB. Unfinalized uploads are cleaned up after about an hour.
Request
- Base URL: https://api.cactal.ai/v1
- URL: https://api.cactal.ai/v1/websiteAssets
- Auth: HTTP bearer
Request body
Response
The pending asset id and presigned upload instructions. Next: PUT the file bytes to upload.url, then call websiteAssets.finalize with assetId.
Changes
No recorded changes to this operation across all 1 revision of this API.