This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Path Parameters
Asset ID of the recording
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/asset/{assetId}/works \
  --header 'Authorization: Bearer <token>'{
  "recording": {
    "id": "4b8df17b-00d9-4970-a91b-720b0b507015",
    "title": "nkjn",
    "isrc": "US24R2500004",
    "artist": ""
  },
  "works": []
}Retrieve works associated with a specific recording.
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/asset/{assetId}/works \
  --header 'Authorization: Bearer <token>'{
  "recording": {
    "id": "4b8df17b-00d9-4970-a91b-720b0b507015",
    "title": "nkjn",
    "isrc": "US24R2500004",
    "artist": ""
  },
  "works": []
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/asset/example-id/works', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Asset ID of the recording