Automattic Pages API

The pages API from Automattic — 6 operation(s) for pages.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 13

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /wp/v2/sites/{wpcom_site}/pages List pages on a site · GET /wp/v2/sites/{wpcom_site}/pages #
Ask an LLM
“What pages are published on my WordPress.com site?”
“Can I list only the pages with a certain status?”
Tell an agent
List pages on site {wpcom_site}.
Show {status} pages on site {wpcom_site}.
POST /wp/v2/sites/{wpcom_site}/pages Create a page on a site · POST /wp/v2/sites/{wpcom_site}/pages #
Ask an LLM
“How do I create a new page on my WordPress.com site?”
“Can I set the parent and status when creating a page?”
Tell an agent
Create a page titled {title} on site {wpcom_site}.
Create page {title} on site {wpcom_site} under parent {parent} with status {status}.
GET /wp/v2/sites/{wpcom_site}/pages/{id} Get a page on a site · GET /wp/v2/sites/{wpcom_site}/pages/{id} #
Ask an LLM
“What is the content of a specific page on my site?”
“Can I fetch a page by its slug?”
Tell an agent
Get page {id} on site {wpcom_site}.
Show page {id} on site {wpcom_site} with password {password}.
POST /wp/v2/sites/{wpcom_site}/pages/{id} Save a page as a draft on a site · POST /wp/v2/sites/{wpcom_site}/pages/{id} #
Ask an LLM
“How do I save a page as a draft without publishing it?”
“Can I set the date a page was published when saving it as a draft?”
Tell an agent
Save page {id} on site {wpcom_site} as a draft.
Save page {id} on site {wpcom_site} as a draft with status {status} and date {date}.
PUT /wp/v2/sites/{wpcom_site}/pages/{id} Replace a page on a site · PUT /wp/v2/sites/{wpcom_site}/pages/{id} #
Ask an LLM
“How do I overwrite an existing page's content?”
“Can I change the author and excerpt of a page in one call?”
Tell an agent
Replace page {id} on site {wpcom_site} with title {title} and content {content}.
Overwrite page {id} on site {wpcom_site} with excerpt {excerpt} and status {status}.
PATCH /wp/v2/sites/{wpcom_site}/pages/{id} Update a page on a site · PATCH /wp/v2/sites/{wpcom_site}/pages/{id} #
Ask an LLM
“How do I change just the title of an existing page?”
“Can I publish a page by updating its status?”
Tell an agent
Update page {id} on site {wpcom_site} to have title {title}.
Set the status of page {id} on site {wpcom_site} to {status}.
DELETE /wp/v2/sites/{wpcom_site}/pages/{id} Delete a page on a site · DELETE /wp/v2/sites/{wpcom_site}/pages/{id} #
Ask an LLM
“How do I permanently delete a page from my site?”
“Can I force-delete a page that is in the trash?”
Tell an agent destructive · confirm first
Delete page {id} from site {wpcom_site}.
Force-delete page {id} on site {wpcom_site} with force {force}.
GET /wp/v2/sites/{wpcom_site}/pages/{id}/autosaves List autosaves of a page · GET /wp/v2/sites/{wpcom_site}/pages/{id}/autosaves #
Ask an LLM
“What autosaves exist for a page I'm editing?”
“Can I see the autosave of a page by its parent?”
Tell an agent
List autosaves of page {id} on site {wpcom_site}.
Show autosaves of page {id} on site {wpcom_site} under parent {parent}.
POST /wp/v2/sites/{wpcom_site}/pages/{id}/autosaves Save an autosave of a page · POST /wp/v2/sites/{wpcom_site}/pages/{id}/autosaves #
Ask an LLM
“How do I save an autosave of a page I'm editing?”
“Can I set the author and featured image on an autosave?”
Tell an agent
Save an autosave of page {id} on site {wpcom_site}.
Save autosave of page {id} on site {wpcom_site} with author {author} and image {featured_media}.
GET /wp/v2/sites/{wpcom_site}/pages/{parent}/autosaves/{id} Get an autosave of a page · GET /wp/v2/sites/{wpcom_site}/pages/{parent}/autosaves/{id} #
Ask an LLM
“What did an autosave of my page contain?”
“Can I fetch a single autosave by its ID?”
Tell an agent
Get autosave {id} of page {parent} on site {wpcom_site}.
Show autosave {id} of page {parent} on site {wpcom_site}.
GET /wp/v2/sites/{wpcom_site}/pages/{parent}/revisions List a page's revisions · GET /wp/v2/sites/{wpcom_site}/pages/{parent}/revisions #
Ask an LLM
“How do I see every draft revision of a page on a site?”
“Can I search a page's revisions by their IDs?”
Tell an agent
List revisions of page {parent} on site {wpcom_site}.
Find revisions of page {parent} on site {wpcom_site} matching {search}.
GET /wp/v2/sites/{wpcom_site}/pages/{parent}/revisions/{id} Get a revision of a page · GET /wp/v2/sites/{wpcom_site}/pages/{parent}/revisions/{id} #
Ask an LLM
“What does a specific revision of my page look like?”
“Can I fetch one page revision by its ID?”
Tell an agent
Get revision {id} of page {parent} on site {wpcom_site}.
Show page {parent} revision {id} on site {wpcom_site}.
DELETE /wp/v2/sites/{wpcom_site}/pages/{parent}/revisions/{id} Remove a page revision · DELETE /wp/v2/sites/{wpcom_site}/pages/{parent}/revisions/{id} #
Ask an LLM
“How do I delete an old revision of a page?”
“Do I have to force-delete a revision?”
Tell an agent destructive · confirm first
Delete revision {id} of page {parent} on site {wpcom_site}.
Permanently remove page revision {id} on {wpcom_site} (force {force}).

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/automattic:automattic-pages-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

automattic-pages-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WordPress.com REST API — wp/v2 namespace Pages API
  version: v2
  description: Derived by API Evangelist from the WordPress.com REST API route index published at https://public-api.wordpress.com/wp/v2/. Paths, HTTP methods, and parameter names/types/descriptions/defaults are taken verbatim from that index. Response schemas are not published in the route index, so successful responses are described but not schematised; the error envelope was observed live on public-api.wordpress.com.
  contact:
    name: Automattic
    url: https://developer.wordpress.com/docs/api/
  x-derived-from: https://public-api.wordpress.com/wp/v2/
  x-derived-by: API Evangelist enrichment pipeline
servers:
- url: https://public-api.wordpress.com
security:
- bearerAuth: []
tags:


# --- truncated at 32 KB (35 KB total) ---
# Full source: https://artifacts.apis.io/automattic/openapi/automattic-pages-api-openapi.yml