Automattic · OpenAPI Overlay 1.0.0

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

15 actions 15 updates phrasing extends openapi/automattic-templates-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}/templates'].get
$.paths['/wp/v2/sites/{wpcom_site}/templates'].post
$.paths['/wp/v2/sites/{wpcom_site}/templates/lookup'].get
$.paths['/wp/v2/sites/{wpcom_site}/templates/{id}'].get
$.paths['/wp/v2/sites/{wpcom_site}/templates/{id}'].put
$.paths['/wp/v2/sites/{wpcom_site}/templates/{id}'].post
$.paths['/wp/v2/sites/{wpcom_site}/templates/{id}'].delete
$.paths['/wp/v2/sites/{wpcom_site}/templates/{id}'].patch
$.paths['/wp/v2/sites/{wpcom_site}/templates/{id}/autosaves'].get
$.paths['/wp/v2/sites/{wpcom_site}/templates/{id}/autosaves'].post
$.paths['/wp/v2/sites/{wpcom_site}/templates/{parent}/autosaves/{id}'].get
$.paths['/wp/v2/sites/{wpcom_site}/templates/{parent}/revisions'].get
$.paths['/wp/v2/sites/{wpcom_site}/templates/{parent}/revisions/{id}'].get
$.paths['/wp/v2/sites/{wpcom_site}/templates/{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 Templates API
  version: 1.0.0
extends: openapi/automattic-templates-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}/templates'].get
  update:
    x-apievangelist-phrasing:
      intent: List a site's custom templates
      effect: read
      questions:
      - What custom templates are saved on my site?
      - Can I list only the templates for one post type?
      instructions:
      - text: List the templates on site {wpcom_site}.
        slots:
          wpcom_site: path.wpcom_site
      - text: Show {post_type} templates for site {wpcom_site}.
        slots:
          post_type: query.post_type
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/templates'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a custom template
      effect: write
      questions:
      - How do I save a new custom template on my site?
      - Can I set a theme and status when creating a template?
      instructions:
      - text: Create a template {slug} on site {wpcom_site}.
        slots:
          slug: requestBody.slug
          wpcom_site: path.wpcom_site
      - text: Save {slug} on {wpcom_site} as a {type} template with status {status}.
        slots:
          slug: requestBody.slug
          wpcom_site: path.wpcom_site
          type: requestBody.type
          status: requestBody.status
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/templates/lookup'].get
  update:
    x-apievangelist-phrasing:
      intent: Look up a template's fallback
      effect: read
      questions:
      - Which template does WordPress fall back to for a given slug?
      - Can I check whether a template is custom or part of the hierarchy?
      instructions:
      - text: Look up the fallback template for {slug} on site {wpcom_site}.
        slots:
          slug: query.slug
          wpcom_site: path.wpcom_site
      - text: 'Check whether {slug} on {wpcom_site} is custom: {is_custom}.'
        slots:
          slug: query.slug
          wpcom_site: path.wpcom_site
          is_custom: query.is_custom
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/templates/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a custom template
      effect: read
      questions:
      - How do I read one custom template by its ID?
      - What content does a specific template hold?
      instructions:
      - text: Get template {id} on site {wpcom_site}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
      - text: Show the content of template {id} for {wpcom_site}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/templates/{id}'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace a custom template
      effect: write
      questions:
      - How do I overwrite a custom template's content entirely?
      - Can I replace a template with a new slug and theme?
      instructions:
      - text: Replace template {id} on site {wpcom_site} with content {content}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          content: requestBody.content
      - text: Overwrite template {id} on {wpcom_site} as {slug} in theme {theme}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          slug: requestBody.slug
          theme: requestBody.theme
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/templates/{id}'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a duplicate of a template
      effect: write
      questions:
      - How do I duplicate a template with a new slug?
      - Can I create a copy of a template on another site?
      instructions:
      - text: Duplicate template {id} on site {wpcom_site} as {slug}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          slug: requestBody.slug
      - text: Create a copy of template {id} for {wpcom_site} titled {title}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          title: requestBody.title
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/templates/{id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a custom template
      effect: destructive
      questions:
      - How do I permanently delete a custom template?
      - Can I force-delete a template instead of trashing it?
      instructions:
      - text: Delete template {id} from site {wpcom_site}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
      - text: Force-delete template {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}/templates/{id}'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a custom template
      effect: write
      questions:
      - How do I edit the content of an existing custom template?
      - Can I change just a template's title or status?
      instructions:
      - text: Update template {id} on site {wpcom_site} with content {content}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          content: requestBody.content
      - text: Change the status of template {id} on {wpcom_site} to {status}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          status: requestBody.status
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/templates/{id}/autosaves'].get
  update:
    x-apievangelist-phrasing:
      intent: List a template's autosaves
      effect: read
      questions:
      - What autosaves exist for a template?
      - Can I see the autosave history of one template?
      instructions:
      - text: List autosaves of template {id} on site {wpcom_site}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
      - text: Show the autosave history for template {id} on {wpcom_site}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/templates/{id}/autosaves'].post
  update:
    x-apievangelist-phrasing:
      intent: Save an autosave of a template
      effect: write
      questions:
      - How do I save an autosave of a template?
      - Can I create a new autosave entry for a template?
      instructions:
      - text: Save an autosave of template {id} on site {wpcom_site}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
      - text: Create a new autosave for template {id} on {wpcom_site} with content {content}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          content: requestBody.content
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/templates/{parent}/autosaves/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get one autosave of a template
      effect: read
      questions:
      - How do I read a single autosave of a template?
      - What content was saved in one autosave entry?
      instructions:
      - text: Get autosave {id} of template {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 {parent} on {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}/templates/{parent}/revisions'].get
  update:
    x-apievangelist-phrasing:
      intent: List a template's revisions
      effect: read
      questions:
      - What revisions have been made to a template?
      - Can I search a template's revision history?
      instructions:
      - text: List revisions of template {parent} on site {wpcom_site}.
        slots:
          parent: path.parent
          wpcom_site: path.wpcom_site
      - text: Find revisions of template {parent} on {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}/templates/{parent}/revisions/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get one template revision
      effect: read
      questions:
      - How do I read a single revision of a template?
      - What did a template look like in one revision?
      instructions:
      - text: Get revision {id} of template {parent} on site {wpcom_site}.
        slots:
          id: path.id
          parent: path.parent
          wpcom_site: path.wpcom_site
      - text: Show the content of revision {id} of template {parent} on {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}/templates/{parent}/revisions/{id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a template revision
      effect: destructive
      questions:
      - How do I permanently delete a template revision?
      - Does deleting a template revision support trashing?
      instructions:
      - text: Delete revision {id} of template {parent} on site {wpcom_site}.
        slots:
          id: path.id
          parent: path.parent
          wpcom_site: path.wpcom_site
      - text: Permanently remove revision {id} from template {parent} on {wpcom_site}.
        slots:
          id: path.id
          parent: path.parent
          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-templates-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.