---
title: "Create Category"
method: POST
path: "/consent-hosting/categories"
tags: ["consent-hosting"]
---

# Create Category

`POST /consent-hosting/categories`

## Request

- Base URL: `https://api.openproof.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openproof.io/consent-hosting/categories`
- Auth: HTTP bearer

Add a consent category. Editor+ role required. Plan check uses
the BUSINESS OWNER's plan.

## Request body

- CategoryCreate
  - `name` string, required
  - `description` string, nullable
  - `purpose` string, nullable
  - `data_collected` string, nullable
  - `necessary` boolean, nullable
  - `validity_days` integer, nullable
  - `requires_guardian` boolean, nullable
  - `translations` object, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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