curl --request GET \
--url https://api.royalti.io/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": "<array>"
}
]
}Returns the hierarchical label structure (imprints/parent-child relationships) for the tenant.
curl --request GET \
--url https://api.royalti.io/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": "<array>"
}
]
}const response = await fetch('https://api.royalti.io/labels/hierarchy', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);