Get detailed product page information
Returns product page data (including optional project type, category and buttons). The «Edit product» buttons — ProductUpdateButton, ProductDeleteButton, ProductBucketCreateButton, ProductRobotTokenIndexButton, ProductRobotTokenCreateButton, ProductRobotTokenRenewButton, ProductRobotTokenDeleteButton, ProductRobotTokenRevealButton, ProductLanguageAddButton, ProductAutoTranslateButton — are each present exactly when the endpoint behind it would allow the caller.
Authorization
BearerAuthObject 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
The product ID
uuidQuery Parameters
Optional project type ID
Optional category ID
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v2/page-information/product/6f8a1d2c-1345-4a5c-8bde-3fef13a0c123?projectTypeId=12&categoryId=4"{ "product": { "id": "6f8a1d2c-1345-4a5c-8bde-3fef13a0c123", "name": "B2Core", "iconName": "b2core.svg", "languageId": 1, "languages": [ 1, 2 ], "platforms": [ "web" ] }, "projectType": { "id": 12, "name": "Broker", "languageId": 1, "lang": "en", "platform": "web" }, "category": { "id": 4, "name": "General", "projectTypeId": 12 }, "buttons": [ "CategoryCreateButton", "ProductBucketCreateButton", "ProductRobotTokenIndexButton", "ProductRobotTokenCreateButton" ]}{ "message": { "error": "Your request was made with invalid credentials." }}{ "message": { "error": "You are not allowed to perform this action." }}{ "message": { "error": "Page not found" }}{ "message": { "error": "Oops! Something went wrong! Write to administrator. Your Request Id {f1177aee-9a99-42f0-a23f-4dd29fc39b65-672e0df972ccb}" }}