Skip to main content
POST
/
uploads
/
image
/
finalize_upload
Finalize Image Upload
curl --request POST \
  --url https://api.example.com/uploads/image/finalize_upload
Call after uploading the file bytes to the signed URL from Create Image Upload URL.

Request

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

{
  "image_id": "img-1234-5678-90ab-cdef"
}
Use image_id in update_params when calling Run Agent.