curl --request GET \
--url https://api.royalti.io/asset/summary \
--header 'Authorization: Bearer <token>'{
"message": "success",
"summary": {
"total": 500,
"byType": {
"Audio": 450,
"Video": 40,
"Ringtone": 10
},
"byExplicit": {
"explicit": 120,
"clean": 380
},
"revenue": {
"totalCount": 123,
"totalRoyalty": 123
}
}
}Returns aggregated asset statistics with role-based scoping. Admins see all assets, users see only their artists’ assets.
curl --request GET \
--url https://api.royalti.io/asset/summary \
--header 'Authorization: Bearer <token>'{
"message": "success",
"summary": {
"total": 500,
"byType": {
"Audio": 450,
"Video": 40,
"Ringtone": 10
},
"byExplicit": {
"explicit": 120,
"clean": 380
},
"revenue": {
"totalCount": 123,
"totalRoyalty": 123
}
}
}const response = await fetch('https://api.royalti.io/asset/summary', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);