curl --request GET \
--url https://api.royalti.io/labels/{id} \
--header 'Authorization: Bearer <token>'{
"status": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"TenantId": 123,
"name": "<string>",
"logo": "<string>",
"website": "<string>",
"country": "US",
"foundedDate": "2023-12-25",
"labelCode": "<string>",
"dpid": "<string>",
"contacts": {},
"socialLinks": {},
"distributionSettings": {},
"catalogSettings": {},
"ddexSettings": {},
"parentLabelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"distribution": "<string>",
"genres": [
"<string>"
],
"isActive": true,
"metadata": {},
"tradingName": "<string>",
"pLinePrefix": "<string>",
"cLinePrefix": "<string>",
"isrcPrefix": "<string>",
"upcPrefix": "<string>",
"defaultReleaseType": "full",
"parentLabel": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"logo": "<string>"
},
"childLabels": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"logo": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"artists": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"artistName": "<string>",
"LabelArtist": {
"contractType": "recording",
"contractStartDate": "2023-12-25",
"contractEndDate": "2023-12-25",
"territories": [
"<string>"
],
"exclusivity": "exclusive"
}
}
],
"products": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"LabelProduct": {
"releaseType": "full"
}
}
]
}
}Get Label by ID
curl --request GET \
--url https://api.royalti.io/labels/{id} \
--header 'Authorization: Bearer <token>'{
"status": "<string>",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"TenantId": 123,
"name": "<string>",
"logo": "<string>",
"website": "<string>",
"country": "US",
"foundedDate": "2023-12-25",
"labelCode": "<string>",
"dpid": "<string>",
"contacts": {},
"socialLinks": {},
"distributionSettings": {},
"catalogSettings": {},
"ddexSettings": {},
"parentLabelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"distribution": "<string>",
"genres": [
"<string>"
],
"isActive": true,
"metadata": {},
"tradingName": "<string>",
"pLinePrefix": "<string>",
"cLinePrefix": "<string>",
"isrcPrefix": "<string>",
"upcPrefix": "<string>",
"defaultReleaseType": "full",
"parentLabel": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"logo": "<string>"
},
"childLabels": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"logo": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"artists": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"artistName": "<string>",
"LabelArtist": {
"contractType": "recording",
"contractStartDate": "2023-12-25",
"contractEndDate": "2023-12-25",
"territories": [
"<string>"
],
"exclusivity": "exclusive"
}
}
],
"products": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"LabelProduct": {
"releaseType": "full"
}
}
]
}
}const response = await fetch('https://api.royalti.io/labels/example-id', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);