Skip to main content
GET
/
labels
/
hierarchy
Get Label Hierarchy
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": [
        {}
      ]
    }
  ]
}
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/labels/hierarchy', {
  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}"

Response

Success

status
string
data
object[]