---
updatedAt: 2026-05-11T06:52:59.000Z
agentTools:
  projectIndex: https://platform.simpplr.com/llms.txt
---

# Get page categories

This API allows us to obtain list of page categories

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "version": "1.0.0",
    "title": "Simpplr B2B API Documentation",
    "description": "API documentation for Simpplr B2B integration services",
    "contact": {
      "name": "Simpplr Support"
    }
  },
  "x-proxy-enabled": true,
  "tags": [
    {
      "name": "Content",
      "description": "Everything about Content"
    },
    {
      "name": "Feed",
      "description": "Everything about Feed"
    }
  ],
  "servers": [
    {
      "url": "https://{endpoint}/v1",
      "variables": {
        "env": {
          "default": "app"
        },
        "endpoint": {
          "default": "platform.app.simpplr.com"
        }
      }
    }
  ],
  "paths": {
    "/b2b/content/sites/{site_id}/page-categories": {
      "get": {
        "operationId": "getPageCategoriesB2b",
        "tags": [
          "Content"
        ],
        "summary": "Get page categories",
        "description": "This API allows us to obtain list of page categories",
        "parameters": [
          {
            "name": "site_id",
            "in": "path",
            "description": "ID of the site",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "550e8400-e29b-41d4-a716-446655440000"
            },
            "required": true
          },
          {
            "name": "size",
            "in": "query",
            "description": "Number of page categories to return per page",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 50
            },
            "required": false
          },
          {
            "name": "nextPageToken",
            "in": "query",
            "description": "Token for fetching the next page of results",
            "schema": {
              "type": "integer"
            },
            "required": false
          },
          {
            "name": "sortBy",
            "in": "query",
            "description": "Sorting method for page categories",
            "schema": {
              "type": "string",
              "enum": [
                "displayOrder",
                "createdNewest",
                "createdOldest",
                "nameAscending",
                "nameDescending",
                "contentCountAscending",
                "contentCountDescending",
                "subCategoryCountAscending",
                "subCategoryCountDescending"
              ],
              "default": "createdNewest"
            },
            "required": false
          },
          {
            "name": "term",
            "in": "query",
            "description": "Search term for filtering page categories",
            "schema": {
              "type": "string",
              "maxLength": 255
            },
            "required": false
          },
          {
            "name": "includeDeleted",
            "in": "query",
            "description": "Whether to include deleted page categories in the response",
            "schema": {
              "type": "boolean",
              "example": false,
              "default": false
            },
            "required": false
          },
          {
            "name": "skipEmptyPageCategories",
            "in": "query",
            "description": "Whether to skip empty page categories in the response",
            "schema": {
              "type": "boolean",
              "default": false
            },
            "required": false
          },
          {
            "name": "modifiedAfter",
            "in": "query",
            "description": "Filter content modified after this date-time. Must be in ISO 8601 UTC format (e.g. 2025-04-09T18:30:00.000Z)",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "required": false
          },
          {
            "name": "useMultilevelVersion",
            "in": "query",
            "description": "When true, uses the multilevel list implementation. Event and album published counts (publishAlbumCount, publishEventCount, publishContentCount) are returned on this path when event and album category is enabled. Required for includeRootCategoriesPages, includeHierarchy, and parentCategoryId to take effect.\n",
            "schema": {
              "type": "boolean",
              "default": false
            },
            "required": false
          },
          {
            "name": "includeRootCategoriesPages",
            "in": "query",
            "description": "Only effective when useMultilevelVersion is true. When true, returns nested child categories (listOfItems) and content under each root (listOfPages), matching the intranet multilevel list behavior.\n",
            "schema": {
              "type": "boolean",
              "default": false
            },
            "required": false
          },
          {
            "name": "parentCategoryId",
            "in": "query",
            "description": "Only effective when useMultilevelVersion is true. Filter categories under the specified parent category.\n",
            "schema": {
              "type": "string"
            },
            "required": false
          },
          {
            "name": "includeHierarchy",
            "in": "query",
            "description": "Only effective when useMultilevelVersion is true. When true, returns categories in a hierarchical tree (nested listOfItems).\n",
            "schema": {
              "type": "boolean"
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success",
                      "description": "Response status",
                      "enum": [
                        "success",
                        "error"
                      ]
                    },
                    "result": {
                      "type": "object",
                      "description": "Contains page categories data",
                      "properties": {
                        "nextPageToken": {
                          "type": "integer",
                          "example": 3,
                          "description": "Token for fetching the next page of results"
                        },
                        "listOfItems": {
                          "type": "array",
                          "description": "Array containing the collection of page categories matching the filter criteria",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid",
                                "example": "e8381029-7ca2-441f-86db-ba5430f03d5a",
                                "description": "Unique identifier for the page category"
                              },
                              "name": {
                                "type": "string",
                                "example": "Test",
                                "description": "Name of the page category"
                              },
                              "contentCount": {
                                "type": "integer",
                                "example": 5,
                                "description": "Total non-deleted content in the category (pages, events, and albums). Mapped from pageCount when multilevel list is not used.\n"
                              },
                              "pageCount": {
                                "type": "integer",
                                "example": 0,
                                "description": "Legacy total content count (same as contentCount)"
                              },
                              "publishPageCount": {
                                "type": "integer",
                                "example": 5,
                                "description": "Published page count. Mapped from publishedPageCount when multilevel list is not used."
                              },
                              "publishedPageCount": {
                                "type": "integer",
                                "example": 0,
                                "description": "Legacy published count"
                              },
                              "publishAlbumCount": {
                                "type": "integer",
                                "example": 1,
                                "description": "Published album count. Present when useMultilevelVersion is true and event and album category is enabled.\n"
                              },
                              "publishEventCount": {
                                "type": "integer",
                                "example": 2,
                                "description": "Published event count. Present when useMultilevelVersion is true and event and album category is enabled.\n"
                              },
                              "publishContentCount": {
                                "type": "integer",
                                "example": 8,
                                "description": "Total published content (pages + albums + events). Present when useMultilevelVersion is true.\n"
                              },
                              "isUncategorized": {
                                "type": "boolean",
                                "description": "True when this is the site Uncategorized category"
                              },
                              "childCategoryCount": {
                                "type": "integer",
                                "description": "Direct child category count. Present when useMultilevelVersion is true (enriched for hierarchy / includeRootCategoriesPages).\n"
                              },
                              "childCategoryDepth": {
                                "type": "integer",
                                "description": "Depth of the category subtree. Present when useMultilevelVersion is true (enriched for hierarchy / includeRootCategoriesPages).\n"
                              },
                              "listOfItems": {
                                "type": "array",
                                "description": "Nested child categories. Present when useMultilevelVersion is true and includeRootCategoriesPages or includeHierarchy is true.\n",
                                "items": {
                                  "type": "object"
                                }
                              },
                              "listOfPages": {
                                "type": "array",
                                "description": "Content under this category. Present when useMultilevelVersion is true and includeRootCategoriesPages is true (or includeHierarchy with parentCategoryId).\n",
                                "items": {
                                  "type": "object"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error",
                      "description": "Response status",
                      "enum": [
                        "success",
                        "error"
                      ]
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "seq_id": {
                            "type": "integer",
                            "example": 0,
                            "description": "Sequence identifier for the error"
                          },
                          "field_name": {
                            "type": "string",
                            "example": "sortBy",
                            "description": "Name of the field that caused the error"
                          },
                          "error_code": {
                            "type": "integer",
                            "example": 1004,
                            "description": "Numeric code identifying the type of error"
                          },
                          "message": {
                            "type": "string",
                            "example": "Invalid sort parameter. Must be one of: createdNewest, createdOldest",
                            "description": "Human-readable error message"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/paths/~1b2b~1rfeed~1feeds/get/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1b2b~1rfeed~1feeds/get/responses/403"
          }
        }
      }
    },
    "/b2b/rfeed/feeds": {
      "get": {
        "operationId": "getFeedsUser",
        "tags": [
          "Feed"
        ],
        "summary": "Get feeds",
        "description": "This API allows you to retrieve all feeds",
        "parameters": [
          {
            "name": "nextPageToken",
            "in": "query",
            "required": true,
            "description": "Token for pagination. \n- For initial request, send empty string \"\"\n- For subsequent requests, use the nextPageToken returned as integer from previous response\n",
            "schema": {
              "type": "string",
              "example": "1759911721822"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": true,
            "description": "The number of feeds to return per page",
            "schema": {
              "type": "string",
              "example": "16"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "createdAt",
                "lastActivityAt"
              ],
              "default": "createdAt"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all"
              ],
              "default": "all"
            },
            "description": "The filter to apply to the feeds"
          },
          {
            "name": "feedContext",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "home",
                "site",
                "content"
              ],
              "default": "home"
            },
            "description": "The context of the feeds. \n- When set to \"site\", siteId parameter is required\n- When set to \"content\", both siteId and contentId parameters are required\n"
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "post",
                "question"
              ],
              "example": "post",
              "description": "The type of feed to return"
            }
          },
          {
            "name": "siteId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
            },
            "description": "The ID of the site. \nRequired when feedContext is \"site\" or \"content\"\n"
          },
          {
            "name": "contentId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
            },
            "description": "The ID of the content.\nRequired when feedContext is \"content\"\n"
          },
          {
            "name": "feedIds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "97576a5d-4362-40cb-b8ac-5418b64bf84f,6d54cb3d-da29-461b-8019-3dfb8aa8afe2"
            },
            "description": "The IDs of the feeds to return (send comma-separated list of feed IDs without spaces)"
          },
          {
            "name": "exemptFeedIds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "97576a5d-4362-40cb-b8ac-5418b64bf84f,6d54cb3d-da29-461b-8019-3dfb8aa8afe2"
            },
            "description": "The IDs of the feeds to exempt from the search (send comma-separated list of feed IDs without spaces)"
          },
          {
            "name": "isSearchForMarkDuplicate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "example": false
            },
            "description": "Whether to search for mark duplicate feeds(questions)"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "nextPageToken": {
                          "type": "integer",
                          "example": 1759911721822
                        },
                        "size": {
                          "type": "integer",
                          "example": 10
                        },
                        "total": {
                          "type": "integer",
                          "example": 11
                        },
                        "listOfItems": {
                          "type": "array",
                          "items": {
                            "$ref": "#/paths/~1b2b~1rfeed~1feeds~1{feedId}/get/responses/200/content/application~1json/schema/properties/result"
                          }
                        },
                        "sortBy": {
                          "type": "string",
                          "example": "lastActivityAt"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error"
                    },
                    "message": {
                      "type": "string",
                      "example": "Failed to get feeds"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "example": "INVALID_INPUT"
                          },
                          "message": {
                            "type": "string",
                            "example": "An error occurred while processing the request"
                          },
                          "cause": {
                            "type": "string",
                            "example": "size is required"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authorize error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Missing/Invalid authentication token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_code": {
                      "type": "integer",
                      "example": 2001
                    },
                    "message": {
                      "type": "string",
                      "example": "Something went wrong, please try again"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "OAuth2ClientCredentials": {
        "type": "oauth2",
        "description": "This API uses OAuth 2 with the implicit grant flow.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://platform.{env}.simpplr.xyz/v1/identity/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "OAuth2ClientCredentials": []
    }
  ]
}
```