Automattic · OpenAPI Overlay 1.0.0

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

8 actions 8 updates phrasing extends openapi/automattic-widgets-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 8

$.info
$.paths['/wp/v2/sites/{wpcom_site}/widgets'].get
$.paths['/wp/v2/sites/{wpcom_site}/widgets'].post
$.paths['/wp/v2/sites/{wpcom_site}/widgets/{id}'].get
$.paths['/wp/v2/sites/{wpcom_site}/widgets/{id}'].put
$.paths['/wp/v2/sites/{wpcom_site}/widgets/{id}'].post
$.paths['/wp/v2/sites/{wpcom_site}/widgets/{id}'].delete
$.paths['/wp/v2/sites/{wpcom_site}/widgets/{id}'].patch

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 Widgets API
  version: 1.0.0
extends: openapi/automattic-widgets-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}/widgets'].get
  update:
    x-apievangelist-phrasing:
      intent: List widgets on a site
      effect: read
      questions:
      - Which widgets are on my WordPress.com site?
      - Can I list only the widgets in one sidebar?
      instructions:
      - text: List the widgets on site {wpcom_site}.
        slots:
          wpcom_site: path.wpcom_site
      - text: Show the widgets in sidebar {sidebar} on site {wpcom_site}.
        slots:
          sidebar: query.sidebar
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/widgets'].post
  update:
    x-apievangelist-phrasing:
      intent: Add a widget to a sidebar
      effect: write
      questions:
      - How do I add a new widget to a sidebar?
      - Can I set a widget's instance settings when adding it?
      instructions:
      - text: Add widget {id_base} to sidebar {sidebar} on site {wpcom_site}.
        slots:
          id_base: requestBody.id_base
          sidebar: requestBody.sidebar
          wpcom_site: path.wpcom_site
      - text: Place a new {id_base} widget on {wpcom_site} in {sidebar} with instance {instance}.
        slots:
          id_base: requestBody.id_base
          wpcom_site: path.wpcom_site
          sidebar: requestBody.sidebar
          instance: requestBody.instance
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/widgets/{id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a widget
      effect: read
      questions:
      - What type and instance does a specific widget have?
      - Can I look up one widget by its ID?
      instructions:
      - text: Get widget {id} on site {wpcom_site}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
      - text: Show the settings of widget {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}/widgets/{id}'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace a widget
      effect: write
      questions:
      - Can I overwrite a widget's type and settings in one call?
      - What happens to a widget's instance when I replace it?
      instructions:
      - text: Replace widget {id} on site {wpcom_site} with type {id_base} in {sidebar}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          id_base: requestBody.id_base
          sidebar: requestBody.sidebar
      - text: Overwrite widget {id} on {wpcom_site} with instance {instance}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          instance: requestBody.instance
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/widgets/{id}'].post
  update:
    x-apievangelist-phrasing:
      intent: Update a widget with form data
      effect: write
      questions:
      - How do I update a widget that doesn't support instance settings?
      - Can I send widget form data to change a widget's settings?
      instructions:
      - text: Update widget {id} on site {wpcom_site} using form data {form_data}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          form_data: requestBody.form_data
      - text: Submit the widget admin form {form_data} for widget {id} on {wpcom_site}.
        slots:
          form_data: requestBody.form_data
          id: path.id
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wp/v2/sites/{wpcom_site}/widgets/{id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Remove a widget
      effect: destructive
      questions:
      - How do I remove a widget from a sidebar?
      - Can I force-delete a widget instead of moving it to inactive?
      instructions:
      - text: Remove widget {id} from site {wpcom_site}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
      - text: Delete widget {id} from {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}/widgets/{id}'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a widget's instance
      effect: write
      questions:
      - Can I change just a widget's instance settings?
      - How do I move a widget to another sidebar?
      instructions:
      - text: Update the instance of widget {id} on site {wpcom_site} to {instance}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          instance: requestBody.instance
      - text: Move widget {id} on {wpcom_site} to sidebar {sidebar}.
        slots:
          id: path.id
          wpcom_site: path.wpcom_site
          sidebar: requestBody.sidebar
      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-widgets-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.