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

# Create category

`POST /api/categories`

Creates a custom category under an existing group.

## Request body

- object
  - `excludeFromInsights` boolean
  - `groupId` string, uuid, required
  - `iconKey` string, required
  - `name` string, required

## Response `201`

Category created

- Category
  - `createdAt` string, required
  - `excludeFromInsights` boolean, required
  - `groupId` string, uuid, required
  - `hidden` boolean, required
  - `iconKey` string, required
  - `id` string, uuid, required
  - `name` string, required
  - `order` integer, required
  - `systemKey` string, nullable, required
  - `updatedAt` string, required

## Other responses

- `401` — Unauthorized
- `403` — Subscription required
- `404` — Group not found
- `422` — Validation failed

---

[API](https://skmtc.net/cobaltpf/apis/cobalt-api.md) · [All operations](https://skmtc.net/cobaltpf/apis/cobalt-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cobaltpf/cobalt-api/revisions/8ef0dfb5d23c/schema)
