Skip to main content
POST
/
asset
/
download
/
csv
Download asset data as CSV
curl --request POST \
  --url https://api.royalti.io/asset/download/csv \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "assetIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'
"<string>"
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

Request Body:
  • assetIds (array): Array of asset IDs to include in the export

Code Examples

const response = await fetch('https://api.royalti.io/asset/download/csv', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "assetIds": [
      {}
    ]
  })
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json
assetIds
string<uuid>[]

Response

CSV file download

The response is of type file.