Nurama Developers
Assets

Get files by function type

Retrieve all files from an asset filtered by function type. Requires `canGetAsset`. Private fields (`bucketName`, `tags`, `postProcessingTasks`) are stripped from each file.

GET
/assets/{assetId}/function-type/{functionType}

Retrieve all files from an asset filtered by function type. Requires canGetAsset. Private fields (bucketName, tags, postProcessingTasks) are stripped from each file.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

assetId*string

ID of the asset to retrieve files from.

Formatuuid
functionType*string

The function type of files to filter by.

Value in

  • "original"
  • "thumbnail"
  • "stream"
  • "media"
  • "customThumbnailOriginal"
  • "customThumbnail"
  • "documentText"

Response Body

application/json

application/json

curl -X GET "https://example.com/assets/497f6eca-6276-4993-bfeb-53cbbbba6f08/function-type/original"
[  {    "assetId": "9179b887-04ef-4ce5-ab3a-b5bbd39ea3c8",    "keyPath": "/project/asset/file123.jpg",    "checksum": "string",    "checksumAlgorithm": "md5",    "name": "string",    "functionType": "original",    "sizeInBytes": 0,    "status": "active",    "meta": {},    "createdAt": 1678886400000,    "updatedAt": 1678886400000  }]