Skip to main content
POST
Complete Image Upload
After uploading image bytes to the authenticated URL from Create Image Upload URL, register the returned company-scoped key. Completion is idempotent, so retrying the same key returns the existing asset instead of creating a duplicate. The response contains the permanent hosted URL to use as an image block’s src.

Request

key
string
required
Storage key returned by the upload-url endpoint. It must belong to the authenticated company.
filename
string
required
Hosted image file name.
contentType
string
required
Uploaded image MIME type: PNG, JPEG, GIF, or WebP.
fileSizeBytes
number
required
Exact uploaded image size in bytes.
width
integer
Optional intrinsic image width in pixels.
height
integer
Optional intrinsic image height in pixels.
altText
string
required
Accessible image description, or an empty string for a decorative image.

Responses