Get Category Details

Get the details for a given category.


  • Method: GET
  • Server: https://[app key here]-[site_ID here] Take a look at the Authorize your API calls document for more info on how this URL is formed.
    • Note: When building apps always use relative request URLs. Do not use the "full" URL above because you might have problems running your app on a different site as the site_ID parameter will be different.
  • Path: /api/v2/admin/sites/[siteID]/categories/[categoryId]
    • Alternatively use "current" in place of siteId for current login token's site
  • Authorization header: This should contain the authorization token. Here is how to obtain the token.
  • Required Permissions: View Category (3100)


A category object with the following properties:

  • links - a collection of links (array)
    • parent - the API URL for the parent category, if it's not under the root (string)
  • id - the ID of the category for the current site (integer)
  • name - the name of the category (string)
  • parent - the ID of the parent category, if this is a sub-category (integer, nullable)
  • publicAccess - whether or not the category is visible to front-end users (boolean)
  • fullPath - the full hierarchy for the current category (string)

Accepts and returns JSON as Content-Type.


GET /api/v2/admin/sites/current/categories/123456
Authorization: 7e04176165cd4df7b628cc8ad022a8becf3bb84de44d480aadfae75e4fa07b56
Content-Type: application/json


HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: {length}

    "links": [{
        "rel": "parent",
        "uri": ""
    "id": 155310,
    "name": "Company1 Private",
    "parentId": 14606,
    "publicAccess": false,
    "fullPath": "/Company/Company1 Private"

Sample code

var request = $.ajax({
    url: "/api/v2/admin/sites/current/categories/123456",
    type: "GET",
    headers: {
        "Authorization": $.cookie('access_token')
    contentType: "application/json"
request.done(function (msg) {
    console.log('Request successful, response is: ')
}) (jqXHR) {
    console.log("Request failed. Error code: " + jqXHR.status);

Error codes

This method will return the following error codes:

  • 200 - success
  • 400 - bad request
    • 220000 - unknown error
  • 401 - unauthorized - when the Authorization header is not present, or contains an invalid site token
    • 101000 - sub-error code
  • 403 - forbidden - this is returned when the user trying to access the API does not have the proper permissions
  • 404 - not found - this is returned when the given category does not exist