Get Category Tree
Get hierarchical category structure.
Endpoint
GET /v1/workspaces/{workspaceId}/category/treeRequest
curl -X GET \
'https://api.sharely.ai/v1/workspaces/{workspaceId}/category/tree' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'organizationid: your-organization-id'Response
{
"tree": [
{
"id": "parent-uuid",
"name": "Medical",
"children": [
{
"id": "child-uuid",
"name": "Cardiology",
"children": []
}
]
}
]
}