Skip to main content
POST
/
uploads
/
image
/
get_upload_url
Create Image Upload URL
curl --request POST \
  --url https://api.example.com/uploads/image/get_upload_url
Limits: 50 MB

Request

curl -X POST "https://api.mosaic.so/uploads/image/get_upload_url" \
  -H "Authorization: Bearer mk_your_api_key"

Response

{
  "image_id": "img-1234-5678-90ab-cdef",
  "upload_url": "https://storage.googleapis.com/...",
  "upload_fields": {
    "key": "...",
    "policy": "...",
    "x-goog-signature": "..."
  },
  "max_file_size_bytes": 52428800
}
Use image_id in update_params after finalizing the upload.