curl --request GET \
--url https://api.royalti.io/sources/{id} \
--header 'Authorization: Bearer <token>'{
"id": "ts-1",
"settings": {},
"replacements": {},
"royaltySource": {
"id": "src-1",
"name": "Spotify",
"label": "Spotify",
"type": "DSP",
"format": "csv",
"public": true
}
}Retrieves a tenant source association by the RoyaltySource ID.
curl --request GET \
--url https://api.royalti.io/sources/{id} \
--header 'Authorization: Bearer <token>'{
"id": "ts-1",
"settings": {},
"replacements": {},
"royaltySource": {
"id": "src-1",
"name": "Spotify",
"label": "Spotify",
"type": "DSP",
"format": "csv",
"public": true
}
}sources:readid parameter represents the RoyaltySource ID, not the TenantSource association ID.
This endpoint finds the tenant’s source association WHERE RoyaltySourceId = id AND TenantId = authenticated_tenant.
Since the composite key is (TenantId, RoyaltySourceId), this uniquely identifies the association.
isActive=true in RoyaltySource)const response = await fetch('https://api.royalti.io/sources/example-id', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
RoyaltySource ID (not TenantSource ID)
"src-1"
Tenant source details
Association between a tenant and a royalty source. Note: The composite key is (TenantId, RoyaltySourceId).
Tenant ID (automatically set from authenticated user)
1
Royalty source ID
"src-1"
Whether this source association is active for the tenant
true
Tenant-specific settings for this source
{}Tenant-specific field replacements/mappings
{}Show child attributes