GET
/
catalog
/
categories
/
{id}
/
tree
curl --request GET \
  --url https://sandbox-api.violet.io/v1/catalog/categories/{id}/tree
[
  {
    "id": "<string>",
    "name": "<string>",
    "slug": "<string>",
    "parent_id": "<string>",
    "depth": 123
  }
]

Retrieve the Category Tree for a given category_id. A category tree is a hierarchical structure used to organize items into nested categories and subcategories to facilitate easier navigation and management.

Headers

X-Violet-Token
string
X-Violet-App-Secret
string
X-Violet-App-Id
integer

Path Parameters

id
string
required

Response

default - application/json
default response
name
string
required

Category Name

slug
string
required

Category Slug

depth
integer
required

Category Depth

id
string
parent_id
string

Parent ID