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 code | Description |
|---|---|
| 200 | Asset URL |
| 307 | Redirect to asset |
| 400 | Bad request error - the request contains invalid parameters or malformed data |
| 404 | Resource not found - the requested resource does not exist |
| 500 | Internal 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"}}}