Automattic · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for WordPress.com REST API — wpcom/v2 namespace Newsletter…

10 actions 10 updates phrasing extends openapi/automattic-newsletter-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.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 10

$.info
$.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories'].get
$.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories/count'].get
$.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories/subscriptions'].get
$.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories/subscriptions'].put
$.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories/subscriptions'].post
$.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories/subscriptions'].patch
$.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories/subscriptions/{subscription_id}'].get
$.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories/{term_id}'].post
$.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories/{term_id}'].delete

OpenAPI Overlay

Raw ↑
# 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 — wpcom/v2 namespace Newsletter…
  version: 1.0.0
extends: openapi/automattic-newsletter-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: 9
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories'].get
  update:
    x-apievangelist-phrasing:
      intent: List newsletter categories on a site
      effect: read
      questions:
      - What newsletter categories are available on my site?
      - Can I see the newsletter categories a site offers?
      instructions:
      - text: List newsletter categories for site {wpcom_site}.
        slots:
          wpcom_site: path.wpcom_site
      - text: Show the newsletter categories on {wpcom_site}.
        slots:
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories/count'].get
  update:
    x-apievangelist-phrasing:
      intent: Count newsletter categories on a site
      effect: read
      questions:
      - How many newsletter categories does my site have?
      - Can I count newsletter categories for a site?
      instructions:
      - text: Count newsletter categories for site {wpcom_site}.
        slots:
          wpcom_site: path.wpcom_site
      - text: Count newsletter categories on {wpcom_site} matching terms {term_ids}.
        slots:
          wpcom_site: path.wpcom_site
          term_ids: query.term_ids
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories/subscriptions'].get
  update:
    x-apievangelist-phrasing:
      intent: List newsletter category subscriptions
      effect: read
      questions:
      - Which newsletter categories is my site subscribed to?
      - Can I see a site's newsletter category subscriptions?
      instructions:
      - text: List newsletter category subscriptions for site {wpcom_site}.
        slots:
          wpcom_site: path.wpcom_site
      - text: Show which newsletter categories {wpcom_site} subscribes to.
        slots:
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories/subscriptions'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace a site's newsletter category subscriptions
      effect: write
      questions:
      - How do I replace a site's newsletter category subscriptions in one go?
      - Can I overwrite a site's newsletter category subscriptions with a new list?
      instructions:
      - text: Replace newsletter category subscriptions for site {wpcom_site} with {categories}.
        slots:
          wpcom_site: path.wpcom_site
          categories: requestBody.categories
      - text: Overwrite {wpcom_site}'s newsletter category subscriptions to {categories} using token {token}.
        slots:
          wpcom_site: path.wpcom_site
          categories: requestBody.categories
          token: requestBody.token
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories/subscriptions'].post
  update:
    x-apievangelist-phrasing:
      intent: Subscribe a site to newsletter categories
      effect: write
      questions:
      - How do I subscribe my site to newsletter categories?
      - Can I add newsletter category subscriptions for a site?
      instructions:
      - text: Subscribe site {wpcom_site} to newsletter categories {categories}.
        slots:
          wpcom_site: path.wpcom_site
          categories: requestBody.categories
      - text: Add newsletter category subscriptions {categories} to {wpcom_site} with token {token}.
        slots:
          wpcom_site: path.wpcom_site
          categories: requestBody.categories
          token: requestBody.token
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories/subscriptions'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a site's newsletter category subscriptions
      effect: write
      questions:
      - Can I add or remove newsletter categories from a site's subscriptions?
      - How do I partially update a site's newsletter category subscriptions?
      instructions:
      - text: Update newsletter category subscriptions on {wpcom_site} to {categories}.
        slots:
          wpcom_site: path.wpcom_site
          categories: requestBody.categories
      - text: Patch {wpcom_site}'s newsletter category subscriptions with {categories} using token {token}.
        slots:
          wpcom_site: path.wpcom_site
          categories: requestBody.categories
          token: requestBody.token
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories/subscriptions/{subscription_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a newsletter category subscription
      effect: read
      questions:
      - What are the details of one newsletter category subscription?
      - Can I look up a single newsletter category subscription by ID?
      instructions:
      - text: Get newsletter category subscription {subscription_id} on site {wpcom_site}.
        slots:
          subscription_id: path.subscription_id
          wpcom_site: path.wpcom_site
      - text: Show newsletter category subscription {subscription_id} for {wpcom_site}.
        slots:
          subscription_id: path.subscription_id
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories/{term_id}'].post
  update:
    x-apievangelist-phrasing:
      intent: Subscribe a site to a newsletter category
      effect: write
      questions:
      - How do I subscribe my site to one newsletter category?
      - Can I add a single newsletter category to a site's subscriptions?
      instructions:
      - text: Subscribe site {wpcom_site} to newsletter category {term_id}.
        slots:
          wpcom_site: path.wpcom_site
          term_id: path.term_id
      - text: Add newsletter category {term_id} to {wpcom_site}'s subscriptions.
        slots:
          term_id: path.term_id
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/newsletter-categories/{term_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Unsubscribe a site from a newsletter category
      effect: destructive
      questions:
      - How do I unsubscribe my site from a newsletter category?
      - Can I remove a single newsletter category from a site's subscriptions?
      instructions:
      - text: Unsubscribe site {wpcom_site} from newsletter category {term_id}.
        slots:
          wpcom_site: path.wpcom_site
          term_id: path.term_id
      - text: Remove newsletter category {term_id} from {wpcom_site}'s subscriptions.
        slots:
          term_id: path.term_id
          wpcom_site: path.wpcom_site
      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.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/automattic-newsletter-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.