---
title: "Create a new category"
method: POST
path: "/categories"
tags: ["Categories"]
---

# Create a new category

`POST /categories`

Create a new custom expense category for the organization.

## Request body

- CreateCategoryApiRequest — Request body for creating a new expense category
  - `name` string, required — Name of the category
  - `visibleForCardSpend` boolean, required — Whether this category is applicable to card transactions
  - `visibleForOther` boolean, required — Whether this category is applicable to all other transaction kinds
  - `visibleForReimbursements` boolean, required — Whether this category is applicable to expense reimbursement transactions

## Response `201`

- CategoryData — Represents an expense category for transaction classification.
  - `id` string, uuid, required — The ID of the category
  - `name` string, required — The name of the category
  - `visibleForCardSpend` boolean, required — Whether this category is applicable to card transactions
  - `visibleForOther` boolean, required — Whether this category is applicable to all other transaction kinds
  - `visibleForReimbursements` boolean, required — Whether this category is applicable to expense reimbursement transactions

## Other responses

- `400` — Invalid `body`

## Changes

- **2026-07-08** `57d0bcefe5d1` — 1 breaking, 1 info
  - removed the success response with the status `200`
  - added the success response with the status `201`
- **2026-05-21** `76f09f587b14` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/mercurytechnologies/apis/mercury-api/changes/categories/post.md)

---

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