Skip to content
Dashboard
API Reference

Get Asset View URL ​

Get a short-lived signed viewing URL for an uploaded asset.

Returns a short-lived signed URL for viewing an uploaded asset (inline, not forced download).

Request ​

bash
curl -X POST "https://api.mosaic.so/uploads/get_view_url" \
  -H "Authorization: Bearer mk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "asset_type": "video",
    "asset_id": "7f8d9c2b-4a6e-8b3f-1d5c-9e2f3a4b5c6d"
  }'

Response ​

json
{
  "asset_type": "video",
  "asset_id": "7f8d9c2b-4a6e-8b3f-1d5c-9e2f3a4b5c6d",
  "signed_url": "https://storage.googleapis.com/...",
  "thumbnail_url": "https://storage.googleapis.com/..."
}

Notes ​

  • asset_type must be one of: video, audio, image
  • Asset must belong to your organization workspace scope