curl --request GET \
--url https://api.royalti.io/sources/admin \
--header 'Authorization: Bearer <token>'{
"count": 2,
"rows": [
{
"id": "src-1",
"name": "Spotify",
"label": "Spotify",
"type": "DSP",
"format": "csv",
"public": true
},
{
"id": "src-2",
"name": "Apple Music",
"label": "Apple Music",
"type": "DSP",
"format": "csv",
"public": true
}
]
}Retrieves a paginated list of all royalty sources in the system.
curl --request GET \
--url https://api.royalti.io/sources/admin \
--header 'Authorization: Bearer <token>'{
"count": 2,
"rows": [
{
"id": "src-1",
"name": "Spotify",
"label": "Spotify",
"type": "DSP",
"format": "csv",
"public": true
},
{
"id": "src-2",
"name": "Apple Music",
"label": "Apple Music",
"type": "DSP",
"format": "csv",
"public": true
}
]
}sources:admin:read{ count: number, rows: RoyaltySource[] }RoyaltySource[] (direct array, not paginated)isActive=true and public=trueisActive=trueconst response = await fetch('https://api.royalti.io/sources/admin', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Page number for pagination (ignored when distinct=true)
1
Page size for pagination (ignored when distinct=true)
100
If 'true', returns array of distinct public sources (non-paginated). If 'false', returns paginated response with all active sources.
true, false