Skip to main content
POST
Create categories

Authorizations

Authorization
string
header
required

Use a project API key from Settings > API Access. Send it as Authorization: Bearer wpk_.... See authentication and scopes for setup and permissions.

Headers

Idempotency-Key
string

Reuse this key for retries of the same write. Scoped to this API key; retained until key deletion. Different requests with the same key return 409.

Required string length: 1 - 128
Pattern: ^[!-~]+$

Body

application/json
name
string
required
Maximum string length: 255
parent
integer | null
Required range: x > 0
description
string | null
meta_title
string | null
Maximum string length: 255
meta_description
string | null
Maximum string length: 100000
meta_keywords
string | null
Maximum string length: 255
is_active
boolean
sort_order
integer
name_localized
Name Localized · object

Localized category names keyed by locale code

description_localized
Description Localized · object

Localized category descriptions keyed by locale code

meta_title_localized
Meta Title Localized · object

Localized meta titles keyed by locale code

meta_description_localized
Meta Description Localized · object

Localized meta descriptions keyed by locale code

meta_keywords_localized
Meta Keywords Localized · object

Localized meta keywords keyed by locale code

industry_slug
string | null

Optional industry override for scoring products under this category. Empty falls back to the project's primary_industry.

Maximum string length: 50
faqs
Faqs · object[] | null

Ordered FAQ items: [{"id", "question", "answer"}]. Answers are limited HTML.

faqs_localized
Faqs Localized · object | null

FAQ translations keyed by locale, then FAQ id

append_faqs_to_products
boolean

Append this category's FAQs to the FAQs of every product directly in it

Response

Created

id
integer
required
name
string
required
slug
string
required
level
integer
required
is_active
boolean
required
sort_order
integer
required
hierarchy_path
string
required
parent_id
integer | null
description
string | null
external_code
string | null
meta_title
string | null
meta_description
string | null
meta_keywords
string | null