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}"
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/labels/hierarchy \
  --header 'Authorization: Bearer <token>'{
  "status": "<string>",
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "logo": "<string>",
      "parentLabelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "isActive": true,
      "children": [
        {}
      ]
    }
  ]
}Returns the hierarchical label structure (imprints/parent-child relationships) for the tenant.
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/labels/hierarchy \
  --header 'Authorization: Bearer <token>'{
  "status": "<string>",
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "logo": "<string>",
      "parentLabelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "isActive": true,
      "children": [
        {}
      ]
    }
  ]
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/labels/hierarchy', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"