---
updatedAt: 2026-06-09T10:44:05.000Z
agentTools:
  projectIndex: https://developer.phorest.com/llms.txt
---

# List service categories

Get a list of service categories for the specified business id and branch id

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Third Party API",
    "description": "This API allow third parties to integrate with Phorest internal core services such as core, online-booking, planner, etc. Please, see the <a href=\"http://dev-changelog.s3-website-eu-west-1.amazonaws.com/?prefix=/third-party-api-server/\" target=\"_blank\">CHANGELOG</a> for further information on API updates.",
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "1.42.1"
  },
  "servers": [
    {
      "url": "http://api-gateway-eu.phorest.com/third-party-api-server",
      "description": "If you are from Europe, use this server"
    },
    {
      "url": "http://api-gateway-us.phorest.com/third-party-api-server",
      "description": "If you are from United States, Canada or Australia, use this server"
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "tags": [
    {
      "name": "Service Category",
      "description": "Service Category Controller"
    }
  ],
  "paths": {
    "/api/business/{businessId}/branch/{branchId}/service-category": {
      "get": {
        "tags": [
          "Service Category"
        ],
        "summary": "List service categories",
        "description": "Get a list of service categories for the specified business id and branch id",
        "operationId": "getServiceCategories",
        "parameters": [
          {
            "name": "businessId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "branchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "size",
            "in": "query",
            "description": "number of service category records to return, max is 200",
            "content": {
              "*/*": {
                "schema": {
                  "type": "integer",
                  "default": "20"
                }
              }
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "page number, default is 0 and is optional",
            "content": {
              "*/*": {
                "schema": {
                  "type": "integer",
                  "default": "0"
                }
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Service categories listed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataPagedModelServiceCategoryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Business or branch with the specified ids don't exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Request rate limit exceeded. Current limit set to 100 rps.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "integer",
            "format": "int32"
          },
          "id": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "errorCode": {
            "type": "string"
          }
        }
      },
      "InternetServiceCategory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "readOnly": true,
            "example": "ab123"
          },
          "name": {
            "type": "string",
            "readOnly": true,
            "example": "Cut & Style"
          }
        },
        "description": "Contains list of the ID and name of an internet service category that a service belongs to. This data is available only if <code>fetch_online_category</code> parameter is set to true"
      },
      "PageMetadata": {
        "type": "object",
        "properties": {
          "size": {
            "type": "integer",
            "format": "int64"
          },
          "totalElements": {
            "type": "integer",
            "format": "int64"
          },
          "totalPages": {
            "type": "integer",
            "format": "int64"
          },
          "number": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "DataPagedModelServiceCategoryResponse": {
        "type": "object",
        "properties": {
          "_embedded": {
            "type": "object",
            "properties": {
              "serviceCategories": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ServiceCategoryResponse"
                }
              }
            }
          },
          "page": {
            "$ref": "#/components/schemas/PageMetadata"
          }
        }
      },
      "ServiceCategoryResponse": {
        "type": "object",
        "properties": {
          "categoryId": {
            "type": "string",
            "example": "ab123"
          },
          "name": {
            "type": "string",
            "example": "Make-up"
          },
          "description": {
            "type": "string",
            "example": "Make-up category"
          },
          "color": {
            "type": "integer",
            "format": "int32",
            "example": 105
          },
          "internetServiceCategories": {
            "type": "array",
            "description": "Contains list of the ID and name of an internet service category that a service belongs to.",
            "items": {
              "$ref": "#/components/schemas/InternetServiceCategory"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
```