---
title: "Create Catalog Category"
description: "How to call Create Catalog Category (POST /api/catalog-categories) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/create_catalog_category"
revision: "2026-10-15"
operationId: "create_catalog_category"
method: "POST"
endpoint: "https://a.klaviyo.com/api/catalog-categories"
authentication: "privateKey"
scopes: ["catalogs:write"]
rateLimits: {"burst":"75/s","steady":"750/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_catalog_category.json"
jsonApi: {"fields":{"catalog-category":["external_id","id","name","updated"]}}
related: ["https://developers.klaviyo.com/en/reference/catalogs/llms.txt","https://developers.klaviyo.com/en/reference/get_catalog_categories.md","https://developers.klaviyo.com/en/reference/get_catalog_category.md","https://developers.klaviyo.com/en/reference/update_catalog_category.md","https://developers.klaviyo.com/en/reference/delete_catalog_category.md","https://developers.klaviyo.com/en/reference/get_bulk_create_categories_jobs.md","https://developers.klaviyo.com/en/reference/get_bulk_create_categories_job.md","https://developers.klaviyo.com/en/reference/bulk_create_catalog_categories.md","https://developers.klaviyo.com/en/reference/get_bulk_update_categories_jobs.md","https://developers.klaviyo.com/en/reference/get_bulk_update_categories_job.md","https://developers.klaviyo.com/en/reference/bulk_update_catalog_categories.md","https://developers.klaviyo.com/en/reference/get_bulk_delete_categories_jobs.md","https://developers.klaviyo.com/en/reference/get_bulk_delete_categories_job.md","https://developers.klaviyo.com/en/reference/bulk_delete_catalog_categories.md","https://developers.klaviyo.com/en/reference/get_categories_for_catalog_item.md","https://developers.klaviyo.com/en/reference/get_item_ids_for_catalog_category.md","https://developers.klaviyo.com/en/reference/add_items_to_catalog_category.md","https://developers.klaviyo.com/en/reference/update_items_for_catalog_category.md","https://developers.klaviyo.com/en/reference/remove_items_from_catalog_category.md"]
---

# Create Catalog Category

> This is the Markdown version of https://developers.klaviyo.com/en/reference/create_catalog_category

```http
POST https://a.klaviyo.com/api/catalog-categories
```

Create a new catalog category.

- Revision header: `revision: 2026-10-15` (required)
- Scopes: `catalogs:write`
- Rate limits: Burst: `75/s`, Steady: `750/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_catalog_category.json)

## Example request

### curl

```bash
curl --request POST \
     --url 'https://a.klaviyo.com/api/catalog-categories' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "catalog-category",
    "attributes": {
      "external_id": "SAMPLE-DATA-CATEGORY-APPAREL",
      "name": "Sample Data Category Apparel",
      "integration_type": "$custom",
      "catalog_type": "$default"
    }
  }
}'
```

### CLI

```bash
klaviyo catalogs create-catalog-category \
  -d '{
  "data": {
    "type": "catalog-category",
    "attributes": {
      "external_id": "SAMPLE-DATA-CATEGORY-APPAREL",
      "name": "Sample Data Category Apparel",
      "integration_type": "$custom",
      "catalog_type": "$default"
    }
  }
}'
```

Sign in first with `klaviyo auth login`. [Install the Klaviyo CLI](https://developers.klaviyo.com/en/docs/klaviyo_cli.md)

### Python

```python
from klaviyo_api import KlaviyoAPI

klaviyo = KlaviyoAPI("your-private-api-key")

response = klaviyo.Catalogs.create_catalog_category(
    {
        "data": {
            "type": "catalog-category",
            "attributes": {
                "external_id": "SAMPLE-DATA-CATEGORY-APPAREL",
                "name": "Sample Data Category Apparel",
                "integration_type": "$custom",
                "catalog_type": "$default",
            },
        },
    },
)
```

Install it with `pip install klaviyo-api`. [The Python SDK on GitHub](https://github.com/klaviyo/klaviyo-api-python)

### Node.js

```javascript
import { ApiKeySession, CatalogsApi } from 'klaviyo-api'

const session = new ApiKeySession('your-private-api-key')
const catalogsApi = new CatalogsApi(session)

const response = await catalogsApi.createCatalogCategory(
  {
    data: {
      type: 'catalog-category',
      attributes: {
        externalId: 'SAMPLE-DATA-CATEGORY-APPAREL',
        name: 'Sample Data Category Apparel',
        integrationType: '$custom',
        catalogType: '$default',
      },
    },
  },
)
```

Install it with `npm install klaviyo-api`. [The Node.js SDK on GitHub](https://github.com/klaviyo/klaviyo-api-node)

### Ruby

```ruby
require 'klaviyo-api-sdk'

KlaviyoAPI.configure do |config|
  config.api_key['Klaviyo-API-Key'] = 'Klaviyo-API-Key your-private-api-key'
end

response = KlaviyoAPI::Catalogs.create_catalog_category(
  {
    data: {
      type: 'catalog-category',
      attributes: {
        external_id: 'SAMPLE-DATA-CATEGORY-APPAREL',
        name: 'Sample Data Category Apparel',
        integration_type: '$custom',
        catalog_type: '$default',
      },
    },
  },
)
```

Install it with `gem install klaviyo-api-sdk`. [The Ruby SDK on GitHub](https://github.com/klaviyo/klaviyo-api-ruby)

### PHP

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

use KlaviyoAPI\KlaviyoAPI;

$klaviyo = new KlaviyoAPI('your-private-api-key');

$response = $klaviyo->Catalogs->createCatalogCategory(
    [
        'data' => [
            'type' => 'catalog-category',
            'attributes' => [
                'external_id' => 'SAMPLE-DATA-CATEGORY-APPAREL',
                'name' => 'Sample Data Category Apparel',
                'integration_type' => '$custom',
                'catalog_type' => '$default',
            ],
        ],
    ],
);
```

Install it with `composer require klaviyo/api`. [The PHP SDK on GitHub](https://github.com/klaviyo/klaviyo-api-php)

## Query parameters

- `fields[catalog-category]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `external_id`, `id`, `name`, `updated`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-10-15`

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `catalog-category`
  - `attributes` (object, required)
    - `external_id` (string, required): The ID of the catalog category in an external system. Example: `SAMPLE-DATA-CATEGORY-APPAREL`
    - `name` (string, required): The name of the catalog category. Example: `Sample Data Category Apparel`
    - `integration_type` (string, nullable): The integration type. Currently only "$custom" is supported. Allowed values: `$custom` Default: `$custom` Example: `$custom`
    - `catalog_type` (string, nullable): The type of catalog. Currently only "$default" is supported. Default: `$default` Example: `$default`
  - `relationships` (object)
    - `items` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_catalog_category.json).

### Example request body

```json
{
  "data": {
    "type": "catalog-category",
    "attributes": {
      "external_id": "SAMPLE-DATA-CATEGORY-APPAREL",
      "name": "Sample Data Category Apparel",
      "integration_type": "$custom",
      "catalog_type": "$default"
    }
  }
}
```

## Responses

### 201: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `catalog-category`
  - `id` (string, required): The catalog category ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`. Example: `$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL`
  - `attributes` (object, required)
    - `external_id` (string, nullable): The ID of the catalog category in an external system. Example: `SAMPLE-DATA-CATEGORY-APPAREL`
    - `name` (string, nullable): The name of the catalog category. Example: `Sample Data Category Apparel`
    - `updated` (string<date-time>, nullable): Date and time when the catalog category was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm). Example: `2022-11-08T00:00:00+00:00`
  - `relationships` (object)
    - `items` (object)
      - `data` (object[]): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_catalog_category.json).
      - `links` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_catalog_category.json).
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (ObjectLinks): Same fields as the first ObjectLinks above.
- `meta` (object): Response-level metadata
  - `agent_hints` (object): Optional hints emitted by the API for agent callers
    - `next_steps` (string[]): Suggested follow-up actions for agents to take after this response

#### Example response body

```json
{
  "data": {
    "type": "catalog-category",
    "id": "$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL",
    "attributes": {
      "external_id": "SAMPLE-DATA-CATEGORY-APPAREL",
      "name": "Sample Data Category Apparel",
      "updated": "2022-11-08T00:00:00+00:00"
    },
    "relationships": {
      "items": {
        "data": [
          {
            "type": "catalog-item",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "links": {
    "self": "https://www.example.com"
  },
  "meta": {
    "agent_hints": {
      "next_steps": [
        "string"
      ]
    }
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
