Skip to main content
GET
/
sources
/
admin
/
{id}
Get Royalty Source by ID (Admin)
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/sources/admin/{id} \
  --header 'Authorization: Bearer <token>'
{
  "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/admin/example-id', {
  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}"

Path Parameters

id
string
required

Royalty source ID

Example:

"src-1"

Response

Royalty source details

id
string
Example:

"src-1"

name
string
Example:

"Spotify"

label
string
Example:

"Spotify"

type
string
Example:

"DSP"

format
string
Example:

"csv"

public
boolean
Example:

true

startDate
string<date>
Example:

"2020-01-01"

endDate
string<date>
Example:

"2025-01-01"

dataQuery
string | null
Example:

"SELECT * FROM ..."

fileNameFormat
string | null
Example:

"royalty_{date}.csv"

schema
object | null
Example:
{}
delimiter
string | null
Example:

","

tableNameFormat
string | null
Example:

"royalty_{tenant}"

headerRows
integer | null
Example:

1