Categories

Get categories and platform categories by platformId

Returns categories and platform categories by platform ID.

GET
/api/v2/categories/by-platform/{platformId}

Authorization

BearerAuthObject
AuthorizationBearer <token>

Machine tokens only: a personal API token or a product robot token (POST /api/v2/products/{uid}/robot-tokens). A session JWT here is 401 — the web app uses the b2t_access cookie.

In: header

Path Parameters

platformId*integer

Response Body

application/json

curl -X GET "https://example.com/api/v2/categories/by-platform/76"
{  "platformCategories": [    "default"  ],  "allCategories": [    "default, auth"  ]}
Empty
Empty
Empty