Skip to main content
GET
/
sources
List Tenant Sources
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/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
      }
    }
  ]
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/sources', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Query Parameters

page
integer
default:1

Page number for pagination

Example:

1

size
integer
default:100

Page size for pagination

Example:

100

distinct
enum<string>
default:false

If true, only distinct public sources are returned

Available options:
true,
false

Response

List of tenant sources

count
integer
Example:

1

rows
object[]