Skip to main content
GET
/
v1
/
storage
/
objects
/
{id}
/
presign-download
Get Object Download URL
curl --request GET \
  --url https://api.bctrl.ai/v1/storage/objects/{id}/presign-download \
  --header 'Authorization: Bearer <token>'
{
  "url": "<string>",
  "expiresIn": 123
}
id
string
required
Object catalog ID.

Examples

const url = await storage.getObjectDownloadUrl('obj_abc123');

Response

url
string
required
Presigned download URL.
expiresIn
number
required
Seconds until the URL expires.