Skip to content
Dashboard
API Reference

Create Image Upload URL ​

Create a signed upload URL for an image asset.

Limits: 50 MB

Request ​

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

Response ​

json
{
  "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.