---
title: "Get SubCategories and AdditionalCategories"
method: GET
path: "/sub-categories"
tags: ["Locations"]
---

# Get SubCategories and AdditionalCategories

`GET /sub-categories`

## Request

- Base URL: `https://api.synup.com/api/v4`
- URL: `https://api.synup.com/api/v4/sub-categories`
- Auth: none required
- TypeScript: <https://skmtc.dev/synup/apis/synup-api/docs/sub-categories/get.ts> (a function with typed inputs; its response is checked against the schema)

This API retrieves a list of the latest subcategories and additional categories available in the system.

## Headers

- `Authorization` string, required

## Response `200`

Successfully retrieved categories.

- object
  - `data` object, required
    - `subcategories` object[], required
      - `databaseId` integer, required: Subcategory ID.
      - `id` string, required: Base64 encoded value of subcategory ID.
      - `name` string, required: Name of the subcategory.
      - `primary` boolean, required: If true, it is a subcategory that can be used as a primary category. If false, it is an additional category and cannot be used as a primary category.

## Other responses

- `401`: Unauthorized. Invalid or missing API key.
- `500`: Internal Server Error.

---

[API](https://skmtc.dev/synup/apis/synup-api.md) - [All operations](https://skmtc.dev/synup/apis/synup-api/llms.txt) - [OpenAPI document](https://skmtc.dev/synup/apis/synup-api/revisions/67de2d51c22e?raw)
