Automattic · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for WordPress.com REST API — wp/v2 namespace Categories API
8 actions
8 updates
phrasing
extends
openapi/automattic-categories-api-openapi.yml
Generated by API Evangelist
Written by API Evangelist tooling for Automattic's API. It is a proposal applied on top of the contract, not a document Automattic publishes.
What the actions change
x-apievangelist-phrasing
Targets 8
$.info
$.paths['/wp/v2/sites/{wpcom_site}/categories'].get
$.paths['/wp/v2/sites/{wpcom_site}/categories'].post
$.paths['/wp/v2/sites/{wpcom_site}/categories/{id}'].get
$.paths['/wp/v2/sites/{wpcom_site}/categories/{id}'].put
$.paths['/wp/v2/sites/{wpcom_site}/categories/{id}'].post
$.paths['/wp/v2/sites/{wpcom_site}/categories/{id}'].delete
$.paths['/wp/v2/sites/{wpcom_site}/categories/{id}'].patch
OpenAPI Overlay
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for WordPress.com REST API — wp/v2 namespace Categories API
version: 1.0.0
extends: openapi/automattic-categories-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-12-02'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 7
- target: $.paths['/wp/v2/sites/{wpcom_site}/categories'].get
update:
x-apievangelist-phrasing:
intent: List a site's categories
effect: read
questions:
- What categories are set up on my WordPress.com site?
- Can I list only the categories assigned to a particular post?
- Is it possible to hide categories that no posts are assigned to?
instructions:
- text: List the categories on site {wpcom_site}.
slots:
wpcom_site: path.wpcom_site
- text: Show categories on {wpcom_site} assigned to post {post}.
slots:
wpcom_site: path.wpcom_site
post: query.post
- text: List categories on {wpcom_site} under parent category {parent}.
slots:
wpcom_site: path.wpcom_site
parent: query.parent
method: generated
generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/categories'].post
update:
x-apievangelist-phrasing:
intent: Create a category on a site
effect: write
questions:
- How do I add a new category to my WordPress.com site?
- Can a new category be a subcategory of an existing one?
instructions:
- text: Create a category named {name} on site {wpcom_site}.
slots:
name: requestBody.name
wpcom_site: path.wpcom_site
- text: Add category {name} under parent {parent} on {wpcom_site}.
slots:
name: requestBody.name
parent: requestBody.parent
wpcom_site: path.wpcom_site
method: generated
generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/categories/{id}'].get
update:
x-apievangelist-phrasing:
intent: Get a post category
effect: read
questions:
- How do I look up one category on a WordPress.com site?
- Can I fetch a single category by its ID?
instructions:
- text: Show category {id} on site {wpcom_site}.
slots:
id: path.id
wpcom_site: path.wpcom_site
- text: Get the {context} category {id} of site {wpcom_site}.
slots:
context: query.context
id: path.id
wpcom_site: path.wpcom_site
method: generated
generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/categories/{id}'].put
update:
x-apievangelist-phrasing:
intent: Replace a category on a site
effect: write
questions:
- How do I overwrite a category's name and description on my site?
- Can I change a category's parent in one full update?
instructions:
- text: Replace category {id} on site {wpcom_site} with name {name}.
slots:
id: path.id
wpcom_site: path.wpcom_site
name: requestBody.name
- text: Overwrite category {id} on {wpcom_site} with parent {parent}.
slots:
id: path.id
wpcom_site: path.wpcom_site
parent: requestBody.parent
method: generated
generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/categories/{id}'].post
update:
x-apievangelist-phrasing:
intent: Replace a category on a site (POST)
effect: write
questions:
- Is there a POST method that fully replaces a category by ID?
- Can I rename a category using a POST request to its category ID?
instructions:
- text: POST a full replacement of category {id} on site {wpcom_site} as {name}.
slots:
id: path.id
wpcom_site: path.wpcom_site
name: requestBody.name
- text: Use the POST category-by-id endpoint to set category {id} on {wpcom_site} to parent {parent}.
slots:
id: path.id
wpcom_site: path.wpcom_site
parent: requestBody.parent
method: generated
generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/categories/{id}'].delete
update:
x-apievangelist-phrasing:
intent: Delete a category from a site
effect: destructive
questions:
- How do I permanently remove a category from my site?
- Why does deleting a category require force set to true?
instructions:
- text: Delete category {id} from site {wpcom_site}.
slots:
id: path.id
wpcom_site: path.wpcom_site
- text: Permanently remove category {id} on {wpcom_site} with force {force}.
slots:
id: path.id
wpcom_site: path.wpcom_site
force: query.force
method: generated
generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/categories/{id}'].patch
update:
x-apievangelist-phrasing:
intent: Update a category on a site
effect: write
questions:
- Can I change just a category's description without resending everything?
- How do I move an existing category under a different parent?
instructions:
- text: Update the description of category {id} on site {wpcom_site} to {description}.
slots:
id: path.id
wpcom_site: path.wpcom_site
description: requestBody.description
- text: Move category {id} on {wpcom_site} under parent {parent}.
slots:
id: path.id
wpcom_site: path.wpcom_site
parent: requestBody.parent
method: generated
generated: '2026-12-02'
Work with this as data
Every overlay here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for openapi overlays
4 MCP tools reach this
find_overlaysBrowse and filter every overlay in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/automattic-categories-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.