curl --request GET \
--url https://api.royalti.io/checklist/assetsplits \
--header 'Authorization: Bearer <token>'{
"all": [
{
"id": "b494ef80-3c3b-4f7c-9234-6ea714bc542e"
},
{
"id": "06489ec1-892b-4faf-b39a-dd5937e1c1a1"
}
],
"defaultset": [
{
"1": [
{
"id": "4639ea41-8609-4063-938c-1feca15db678,"
},
{
"isrc": "1234"
},
{
"title": "Asset"
},
{
"displayArtist": ""
},
{
"split": 100
}
]
},
{
"2": [
{
"id": "84cb7d2a-85c2-4338-861e-13e7b28fda98"
},
{
"isrc": "QZ5FN1758268"
},
{
"title": "My Place"
},
{
"displayArtist": "Star Girl"
},
{
"split": 15
}
]
}
]
}/checklist/assetsplits
curl --request GET \
--url https://api.royalti.io/checklist/assetsplits \
--header 'Authorization: Bearer <token>'{
"all": [
{
"id": "b494ef80-3c3b-4f7c-9234-6ea714bc542e"
},
{
"id": "06489ec1-892b-4faf-b39a-dd5937e1c1a1"
}
],
"defaultset": [
{
"1": [
{
"id": "4639ea41-8609-4063-938c-1feca15db678,"
},
{
"isrc": "1234"
},
{
"title": "Asset"
},
{
"displayArtist": ""
},
{
"split": 100
}
]
},
{
"2": [
{
"id": "84cb7d2a-85c2-4338-861e-13e7b28fda98"
},
{
"isrc": "QZ5FN1758268"
},
{
"title": "My Place"
},
{
"displayArtist": "Star Girl"
},
{
"split": 15
}
]
}
]
}all: List of all asset IDsdefaultset: Assets with default splits configuredx-tenant-id: Required. The tenant IDAuthorization: Required. Bearer token for authenticationconst response = await fetch('https://api.royalti.io/checklist/assetsplits', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);