Get Taxonomy Tree
curl --request GET \
--url https://api.legitmark.com/api/v2/categories/tree \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.legitmark.com/api/v2/categories/tree', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.legitmark.com/api/v2/categories/tree"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.legitmark.com/api/v2/categories/tree"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"message": "Catalog tree fetched successfully",
"category": "SUCCESS",
"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"
}
]
}
]
}
]
}
]
}Taxonomy
Get Taxonomy Tree
Returns the complete taxonomy hierarchy in a nested tree structure for efficient partner caching with enhanced filtering options.
GET
https://api.legitmark.com
/
api
/
v2
/
categories
/
tree
Get Taxonomy Tree
curl --request GET \
--url https://api.legitmark.com/api/v2/categories/tree \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.legitmark.com/api/v2/categories/tree', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.legitmark.com/api/v2/categories/tree"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.legitmark.com/api/v2/categories/tree"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"message": "Catalog tree fetched successfully",
"category": "SUCCESS",
"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"
}
]
}
]
}
]
}
]
}Authorizations
Bearer token authentication. Use your API key in the format: Bearer leo_xxxxxxxx
Query Parameters
Filter to only active items
Include item counts for each taxonomy level
Response
200 - application/json
Category tree retrieved successfully
Example:
"Catalog tree fetched successfully"
Available options:
SUCCESS Example:
"SUCCESS"
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
⌘I