Skip to content

Generate A Secure Download Link

GET /videos/[id]/download

Generate a unique and secure download link for a video with the given id. Returns a signed SpatialGen link which can be used to download the file

Example request for a video

downloadlink.js
fetch('https://spatialgen.com/api/videos/<yourvideoid>/download', {
method: 'GET',
headers: {
'X-SPATIALGEN-APPKEY': apiKey,
}
})

Example Response

response.json
{
"sasUrl": string; // The signed url from the SpatialGen CDN
}