Automattic · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for WordPress.com REST API — wp/v2 namespace Template Parts API

15 actions 15 updates phrasing extends openapi/automattic-template-parts-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 15

$.info
$.paths['/wp/v2/sites/{wpcom_site}/template-parts'].get
$.paths['/wp/v2/sites/{wpcom_site}/template-parts'].post
$.paths['/wp/v2/sites/{wpcom_site}/template-parts/lookup'].get
$.paths['/wp/v2/sites/{wpcom_site}/template-parts/{id}'].get
$.paths['/wp/v2/sites/{wpcom_site}/template-parts/{id}'].put
$.paths['/wp/v2/sites/{wpcom_site}/template-parts/{id}'].post
$.paths['/wp/v2/sites/{wpcom_site}/template-parts/{id}'].delete
$.paths['/wp/v2/sites/{wpcom_site}/template-parts/{id}'].patch
$.paths['/wp/v2/sites/{wpcom_site}/template-parts/{id}/autosaves'].get
$.paths['/wp/v2/sites/{wpcom_site}/template-parts/{id}/autosaves'].post
$.paths['/wp/v2/sites/{wpcom_site}/template-parts/{parent}/autosaves/{id}'].get
$.paths['/wp/v2/sites/{wpcom_site}/template-parts/{parent}/revisions'].get
$.paths['/wp/v2/sites/{wpcom_site}/template-parts/{parent}/revisions/{id}'].get
$.paths['/wp/v2/sites/{wpcom_site}/template-parts/{parent}/revisions/{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 — wp/v2 namespace Template Parts API
  version: 1.0.0
extends: openapi/automattic-template-parts-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: 14
- target: $.paths['/wp/v2/sites/{wpcom_site}/template-parts'].get
  update:
    x-apievangelist-phrasing:
      intent: List a site's template parts
      effect: read
      questions:
      - What custom template parts exist on my WordPress.com site?
      - Can I list only the template parts in a specific area like the header?
      instructions:
      - text: List template parts on site {wpcom_site}.
        slots:
          wpcom_site: path.wpcom_site
      - text: Show {area} template parts for site {wpcom_site}.
        slots:
          area: query.area
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/template-parts'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a template part
      effect: write
      questions:
      - How do I add a reusable template part to my site?
      - Can I create a template part in a particular area like the footer?
      instructions:
      - text: Create template part {slug} on site {wpcom_site}.
        slots:
          slug: requestBody.slug
          wpcom_site: path.wpcom_site
      - text: Add a {area} template part {slug} to site {wpcom_site}.
        slots:
          area: requestBody.area
          slug: requestBody.slug
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/template-parts/lookup'].get
  update:
    x-apievangelist-phrasing:
      intent: Look up a template part's fallback
      effect: read
      questions:
      - Which template part is used when a custom one is missing?
      - Can I find the fallback for a template part by its slug?
      instructions:
      - text: Look up the fallback for template part {slug} on site {wpcom_site}.
        slots:
          slug: query.slug
          wpcom_site: path.wpcom_site
      - text: Find the fallback template part {slug} for site {wpcom_site}.
        slots:
          slug: query.slug
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/template-parts/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a template part
      effect: read
      questions:
      - How do I read one template part's content?
      - What area and status does a specific template part have?
      instructions:
      - text: Get template part {id} on site {wpcom_site}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
      - text: Show the content of template part {id} for site {wpcom_site}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/template-parts/{id}'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace a template part
      effect: write
      questions:
      - How do I overwrite a template part's content in full?
      - Can I replace a template part with a new slug and area?
      instructions:
      - text: Replace template part {id} on site {wpcom_site} with {content}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          content: requestBody.content
      - text: Overwrite template part {id} on site {wpcom_site} as {area} with {content}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          area: requestBody.area
          content: requestBody.content
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/template-parts/{id}'].post
  update:
    x-apievangelist-phrasing:
      intent: Duplicate a template part
      effect: write
      questions:
      - How do I duplicate an existing template part?
      - Can I make a copy of a template part with a new slug?
      instructions:
      - text: Duplicate template part {id} on site {wpcom_site} as {slug}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          slug: requestBody.slug
      - text: Copy template part {id} from site {wpcom_site} into a new {type} template {slug}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          type: requestBody.type
          slug: requestBody.slug
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/template-parts/{id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a template part
      effect: destructive
      questions:
      - How do I permanently delete a template part?
      - Can I force-delete a template part instead of trashing it?
      instructions:
      - text: Delete template part {id} from site {wpcom_site}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
      - text: Force-delete template part {id} on site {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}/template-parts/{id}'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a template part
      effect: write
      questions:
      - How do I change the content of an existing template part?
      - Can I move a template part to a different area?
      instructions:
      - text: Update template part {id} on site {wpcom_site} with {content}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          content: requestBody.content
      - text: Move template part {id} on site {wpcom_site} to area {area}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          area: requestBody.area
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/template-parts/{id}/autosaves'].get
  update:
    x-apievangelist-phrasing:
      intent: List autosaved template parts
      effect: read
      questions:
      - Where can I see a template part's autosaved versions?
      - Can I retrieve earlier autosaves of a WordPress.com block template part?
      instructions:
      - text: List autosaved versions of template part {id} on site {wpcom_site}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
      - text: Show previous autosaves for template part {id} of {wpcom_site}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/template-parts/{id}/autosaves'].post
  update:
    x-apievangelist-phrasing:
      intent: Save an autosave of a template part
      effect: write
      questions:
      - How do I save an autosave of a template part?
      - Can I create a new autosave version of a template part?
      instructions:
      - text: Save an autosave of template part {id} on site {wpcom_site} with {content}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          content: requestBody.content
      - text: Create a new autosave for template part {id} on site {wpcom_site}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/template-parts/{parent}/autosaves/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get one autosave of a template part
      effect: read
      questions:
      - How do I read a single autosave of a template part?
      - What content did a template part have in one autosave?
      instructions:
      - text: Get autosave {id} of template part {parent} on site {wpcom_site}.
        slots:
          id: path.id
          parent: path.parent
          wpcom_site: path.wpcom_site
      - text: Show the content of autosave {id} for template part {parent} on site {wpcom_site}.
        slots:
          id: path.id
          parent: path.parent
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/template-parts/{parent}/revisions'].get
  update:
    x-apievangelist-phrasing:
      intent: List a template part's revisions
      effect: read
      questions:
      - What revisions have been made to a template part?
      - Can I search a template part's revision history?
      instructions:
      - text: List revisions of template part {parent} on site {wpcom_site}.
        slots:
          parent: path.parent
          wpcom_site: path.wpcom_site
      - text: Find revisions of template part {parent} on site {wpcom_site} matching {search}.
        slots:
          parent: path.parent
          wpcom_site: path.wpcom_site
          search: query.search
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/template-parts/{parent}/revisions/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a template part revision
      effect: read
      questions:
      - How do I read one revision of a template part?
      - What did a template part look like in a specific revision?
      instructions:
      - text: Get revision {id} of template part {parent} on site {wpcom_site}.
        slots:
          id: path.id
          parent: path.parent
          wpcom_site: path.wpcom_site
      - text: Show the content of revision {id} for template part {parent} on site {wpcom_site}.
        slots:
          id: path.id
          parent: path.parent
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/template-parts/{parent}/revisions/{id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a template part revision
      effect: destructive
      questions:
      - How do I permanently delete a revision of a template part?
      - Can I force-delete a template part revision?
      instructions:
      - text: Delete revision {id} of template part {parent} on site {wpcom_site}.
        slots:
          id: path.id
          parent: path.parent
          wpcom_site: path.wpcom_site
      - text: Force-delete revision {id} of template part {parent} on site {wpcom_site} with force {force}.
        slots:
          id: path.id
          parent: path.parent
          wpcom_site: path.wpcom_site
          force: query.force
      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-template-parts-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.