---
title: "Get a category"
method: GET
path: "/categories/{code}"
tags: ["Categories"]
---

# Get a category

`GET /categories/{code}`

## Path parameters

- `code` string, required

## Response `200`

OK

- object
  - `message` string, required
  - `status` boolean, required
  - `error` boolean, required
  - `data` object
    - `category` Category — Expense category
      - `code` string
      - `name` string
      - `description` string, nullable
      - `slug` string, nullable
      - `status` string
      - `isSubCategory` boolean
      - `parent` Category — recursive
      - `children` Category[]

## Other responses

- `401` — Unauthorized
- `404` — Not found

---

[API](https://skmtc.dev/bujeti/apis/bujeti-public-api.md) · [All operations](https://skmtc.dev/bujeti/apis/bujeti-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bujeti/bujeti-public-api/revisions/d2850fc5f576/schema)
