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
/assets/{assetId}/download
AuthorizationBearer <token>

In: header

Path Parameters

assetId*string

Unique identifier of the asset

Query Parameters

noRedirect?boolean

If true, returns the asset URL instead of redirecting to it

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://api-testnet.dual.network/assets/string/download"
{
  "url": "string"
}
Empty
{
  "code": 0,
  "message": "string",
  "details": {}
}
{
  "code": 0,
  "message": "string",
  "details": {}
}
{
  "code": 0,
  "message": "string",
  "details": {}
}