curl --request POST \
--url https://api.example.com/public/category/hierarchy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"publicSessionToken": "<string>",
"categoryID": null,
"levelsDeep": 2,
"includeCounts": true,
"languageID": 1,
"editionIDs": 1,
"returnOnlyCategory": false
}
'{
"success": true,
"data": "<unknown>"
}public gets the category hierarchy (roots, parents, children) down to seven levels and topics associated to the category.
curl --request POST \
--url https://api.example.com/public/category/hierarchy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"publicSessionToken": "<string>",
"categoryID": null,
"levelsDeep": 2,
"includeCounts": true,
"languageID": 1,
"editionIDs": 1,
"returnOnlyCategory": false
}
'{
"success": true,
"data": "<unknown>"
}The access token received from the authorization server in the OAuth 2.0 flow.