GET
/
v1
/
objects
/
{id}
/
download
JavaScript
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: 'My Bearer Token',
});

const objectDownloadURLView = await client.objects.download('id');

console.log(objectDownloadURLView.download_url);
{
  "download_url": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The unique identifier of the Object to generate download URL for.

Query Parameters

duration_seconds
integer

Duration in seconds for the presigned URL validity (default: 3600).

Response

200
application/json

Download URL generated successfully.

A response containing a presigned download URL for an Object.