curl --request GET \
--url https://api.royalti.io/sources \
--header 'Authorization: Bearer <token>'{
"count": 1,
"rows": [
{
"id": "ts-1",
"settings": {},
"replacements": {},
"royaltySource": {
"id": "src-1",
"name": "Spotify",
"label": "Spotify",
"type": "DSP",
"format": "csv",
"public": true
}
}
]
}Retrieves a paginated list of all sources associated with the current tenant.
curl --request GET \
--url https://api.royalti.io/sources \
--header 'Authorization: Bearer <token>'{
"count": 1,
"rows": [
{
"id": "ts-1",
"settings": {},
"replacements": {},
"royaltySource": {
"id": "src-1",
"name": "Spotify",
"label": "Spotify",
"type": "DSP",
"format": "csv",
"public": true
}
}
]
}sources:read{ count: number, rows: TenantSource[] }RoyaltySource[] (direct array, not paginated)isActive=true and public=trueisActive=true)const response = await fetch('https://api.royalti.io/sources', {
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 all available public sources (non-paginated). If 'false', returns paginated tenant source associations.
true, false