API 参考
Product categories
Management API: GET /sites/{id}/product-categories
List product categories
GET
/sites/{id}/product-categoriesbetastore:viewdefault (120/minute per token)
List product categories (id, slug, name, sortOrder). Category assignment is managed in the console. Errors: FORBIDDEN, INVALID_CURSOR.
Parameters
idstring · pathrequiredWebsite id. Get it from sites.list or from sites.create.
limitinteger · queryMaximum number of items to return, 1–100. Defaults to 20.
cursorstring · queryOpaque cursor from the previous page's nextCursor. Omit for the first page.
Response 200
dataobject[]requireddata[].idstringrequireddata[].slugstringrequireddata[].namestringrequireddata[].descriptionstring | nullrequireddata[].sortOrderintegerrequiredhasMorebooleanrequiredTrue when another page exists; pass nextCursor to fetch it.
nextCursorstring | nullrequiredCursor for the next page, or null on the last page.
Errors
FORBIDDEN403INVALID_CURSOR400
MCP tool product_categories_list
curl -X GET "https://app.kanorio.com/api/v1/sites/{id}/product-categories" \
-H "Authorization: Bearer $KANORIO_TOKEN"Response
{
"data": [
{
"id": "pcat_example01",
"slug": "cakes",
"name": "Cakes",
"description": null,
"sortOrder": 0
}
],
"hasMore": false,
"nextCursor": null
}