curl --request GET \
--url https://api.example.com/api/v2/categories/tree \
--header 'x-api-key: <api-key>'{
"success": true,
"message": "Category tree fetched successfully.",
"data": [
{
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Bags",
"types": [
{
"uuid": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"name": "Tote Bags",
"brands": [
{
"uuid": "e5f6a7b8-c9d0-1234-efab-567890123456",
"name": "Louis Vuitton",
"models": [
{
"uuid": "f6a7b8c9-d0e1-2345-fabc-678901234567",
"name": "Neverfull MM"
},
{
"uuid": "a7b8c9d0-e1f2-3456-abcd-789012345678",
"name": "Neverfull GM"
}
]
}
]
}
]
},
{
"uuid": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"name": "Watches",
"types": [
{
"uuid": "d4e5f6a7-b8c9-0123-defa-456789012345",
"name": "Luxury Watches",
"brands": [
{
"uuid": "b8c9d0e1-f2a3-4567-bcde-890123456789",
"name": "Rolex",
"models": [
{
"uuid": "c9d0e1f2-a3b4-5678-cdef-901234567890",
"name": "Submariner"
}
]
}
]
}
]
}
]
}Returns the complete taxonomy hierarchy in a nested tree structure for efficient actor caching with enhanced filtering options.
curl --request GET \
--url https://api.example.com/api/v2/categories/tree \
--header 'x-api-key: <api-key>'{
"success": true,
"message": "Category tree fetched successfully.",
"data": [
{
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Bags",
"types": [
{
"uuid": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"name": "Tote Bags",
"brands": [
{
"uuid": "e5f6a7b8-c9d0-1234-efab-567890123456",
"name": "Louis Vuitton",
"models": [
{
"uuid": "f6a7b8c9-d0e1-2345-fabc-678901234567",
"name": "Neverfull MM"
},
{
"uuid": "a7b8c9d0-e1f2-3456-abcd-789012345678",
"name": "Neverfull GM"
}
]
}
]
}
]
},
{
"uuid": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"name": "Watches",
"types": [
{
"uuid": "d4e5f6a7-b8c9-0123-defa-456789012345",
"name": "Luxury Watches",
"brands": [
{
"uuid": "b8c9d0e1-f2a3-4567-bcde-890123456789",
"name": "Rolex",
"models": [
{
"uuid": "c9d0e1f2-a3b4-5678-cdef-901234567890",
"name": "Submariner"
}
]
}
]
}
]
}
]
}API key for application authentication (format: leo_xxxxxxxxx)
Filter to only active items
Include item counts for each taxonomy level
Category tree retrieved successfully
The response is of type any.