After an order is fulfilled, you can access your storage to download the delivered assets using the API.
You can also download orders through the console.
To download an asset from storage, call the /v2/assets/{asset-id}/ endpoint with the asset ID as a path parameter.
HTTP
GET /v2/assets/{asset-id} HTTP/1.1
Host: api.up42.com
Authorization: Bearer {token}
Shell
curl --location --request GET 'https://api.up42.com/v2/assets/{asset-id}' \
--header 'Authorization: Bearer {token}
If the response is successful, the response is the requested asset.
To generate a pre-signed URL that can be used to download an asset without authentication, call the /v2/assets/{asset-id}/download-url endpoint with the asset ID as a path parameter.
The generated URL is valid for 5 minutes.
HTTP
POST /v2/assets/{asset-id}/download-url HTTP/1.1
Host: api.up42.com
Content-Type: application/json
Authorization: Bearer {token}
Shell
curl --location --request POST 'https://api.up42.com/v2/assets/{asset-id}/download-url' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {token}
See response example
JSON
{
"url": "http://example.com"
}
Parameter | Overview |
---|---|
url | string A temporary pre-signed URL that can be used to download an asset without authentication. |