Download asset

Download a specific asset by its unique identifier. This endpoint provides direct access to the asset file content, either through a redirect to the asset URL or by returning the asset URL directly based on the noRedirect parameter.

GET

Parameters

Path Parameters

AssetId
REQUIRED
Unique identifier of the asset

Query Parameters

NoRedirect
If true, returns the asset URL instead of redirecting to it
Status codeDescription
200Asset URL
307Redirect to asset
400Bad request error - the request contains invalid parameters or malformed data
404Resource not found - the requested resource does not exist
500Internal server error - an unexpected error occurred on the server
cURL
curl -L \
"https://blockv-labs.io/assets/{assetId}/download?noRedirect={noRedirect}" \
-H 'Accept: application/json'
Response
{
"url": "string"
}
json
{
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string"
}
}
}