Finalize Image Upload
Finalize a previously uploaded image asset.
Call after uploading the file bytes to the signed URL from Create Image Upload URL.
Request
bash
curl -X POST "https://api.mosaic.so/uploads/image/finalize_upload" \
-H "Authorization: Bearer mk_your_api_key" \
-H "Content-Type: application/json" \
-d '{"image_id": "img-1234-5678-90ab-cdef"}'Response
json
{
"image_id": "img-1234-5678-90ab-cdef"
}Use image_id in update_params when calling Run Agent.