---
title: "Create a CMS category"
method: POST
path: "/cms/categories"
tags: ["CMS"]
---

# Create a CMS category

`POST /cms/categories`

## Request

- Base URL: `https://next.frase.io/api/v1`
- URL: `https://next.frase.io/api/v1/cms/categories`
- Auth: API key in header `X-API-KEY`

Create a FraseCMS category on a site. Pass `parent_id` to nest it under another category.

## Request body

- object
  - `site_id` string, uuid, required: Required. The site to create the category on.
  - `name` string, required: Required. Category name.
  - `description` string, nullable
  - `parent_id` string, uuid, nullable: Optional parent category for nesting.

## Response `201`

Category created

- object
  - `data` object
    - `category` object
      - `id` string, uuid
      - `name` string
      - `slug` string
      - `description` string, nullable
      - `parent_id` string, uuid, nullable
      - `post_count` integer
  - `request_id` string

## Other responses

- `400`: Validation failed
- `401`: Authentication failed
- `404`: Resource not found
- `429`: Rate limited, or the org's monthly brief limit blocked minting the refreshed brief (only the FIRST supersession of a brief is billing-exempt; repeats meter normally)

---

[API](https://skmtc.dev/frase/apis/frase-api.md) · [All operations](https://skmtc.dev/frase/apis/frase-api/llms.txt) · [OpenAPI document](https://skmtc.dev/frase/apis/frase-api/revisions/7fb75d89f7a4?raw)
