---
title: "Create a category group"
method: POST
path: "/api/external/v2/category_groups"
tags: ["Category Groups"]
---

# Create a category group

`POST /api/external/v2/category_groups`

## Request

- Base URL: `https://app.pennylane.com`
- URL: `https://app.pennylane.com/api/external/v2/category_groups`
- Auth: OAuth 2
  - Authorization code: `https://app.pennylane.com/oauth/authorize`
  - Token URL: `https://app.pennylane.com/oauth/oauth/token` scopes: `categories:all`

Create a category group

> ℹ️
> This endpoint requires the following scope: `categories:all`

## Headers

- `X-Company-Id` string

## Request body

- object
  - `label` string, required
  - `kind` 'profit_and_loss' | 'treasury' | 'building'

## Response `201`

Returns the created category group

- object
  - `id` integer, required
  - `label` string, required
  - `categories` object, required
    - `url` string, required: URL to get the categories of the group.
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Bad request
- `401`: Access token is missing or invalid
- `403`: Access to this resource forbidden
- `422`: Unprocessable content

## Changes

- **2026-11-03** `871f863307e5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pennylane/apis/company-v2/changes/api/external/v2/category_groups/post.md)

---

[API](https://skmtc.dev/pennylane/apis/company-v2.md) - [All operations](https://skmtc.dev/pennylane/apis/company-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/pennylane/apis/company-v2/revisions/871f863307e5?raw)
