Nurama Developers
Assets

Download assets

Generate download links for the specified assets/files. Requires `canDownloadAssets`. Side effect: a `download` event is recorded in each asset's access activity with the `visibility` given in the request body (defaults to `creator`). Recording the activity never affects the download response. Note: the request body is currently accepted without validation; the limits below reflect the intended contract.

POST
/assets/download

Generate download links for the specified assets/files. Requires canDownloadAssets. Side effect: a download event is recorded in each asset's access activity with the visibility given in the request body (defaults to creator). Recording the activity never affects the download response.

Note: the request body is currently accepted without validation; the limits below reflect the intended contract.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

assetIds*array<>
Itemsitems <= 100

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/assets/download" \  -H "Content-Type: application/json" \  -d '{    "assetIds": [      "96fa1cd8-4f1c-475e-ac07-c52694e711b7"    ]  }'
[  {    "fileName": "file1.png",    "ownerAssetId": "65af4c7b22ac19c0b1648241",    "key": "/workspaces/ws-65af4c7b22ac19c0b1648226/projects/pr...",    "url": "https://s3.eu-west-1.amazonaws.com/files-test.nurama.io...",    "mimeType": "image/png",    "expires": 1705988395,    "status": "success"  }]