cURL
curl --request POST \ --url https://api.example.com/uploads/get_view_url
Get a short-lived signed viewing URL for an uploaded asset.
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" }'
{ "asset_type": "video", "asset_id": "7f8d9c2b-4a6e-8b3f-1d5c-9e2f3a4b5c6d", "signed_url": "https://storage.googleapis.com/...", "thumbnail_url": "https://storage.googleapis.com/..." }
asset_type
video
audio
image
Was this page helpful?