---
title: "List Categories"
method: GET
path: "/categories"
tags: ["Products"]
---

# List Categories

`GET /categories`

List a project's product categories. Each row carries its full `path` and its `parent_id`, so the flat list reconstructs the category tree. Use the returned `id` as a `category_id` when creating, updating, or assigning products.

## Query parameters

- `project_id` string — Required if using a company api key

## Response `200`

The project's categories as a flat tree

- object — The project's categories as a flat tree
  - `data` object[], required
    - `id` string, uuid, required
    - `name` string, required
    - `path` string, required
    - `parent_id` string, uuid, nullable, required — The parent category id, or null at the top level.
  - `total_count` number, required

---

[API](https://skmtc.net/peec/apis/peec-ai-customer-api.md) · [All operations](https://skmtc.net/peec/apis/peec-ai-customer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/peec/peec-ai-customer-api/versions/92840a1bffa7/schema)
