Automattic Knowledge API

The knowledge API from Automattic — 7 operation(s) for knowledge.

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 14

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}/knowledge List knowledge articles on a site · GET /wp/v2/sites/{wpcom_site}/knowledge #
Ask an LLM
“How do I list the knowledge articles on a WordPress.com site?”
“Can I search a site's knowledge articles by keyword?”
Tell an agent
List knowledge articles on site {wpcom_site}.
Find knowledge articles on {wpcom_site} matching {search}.
POST /wp/v2/sites/{wpcom_site}/knowledge Create a knowledge article · POST /wp/v2/sites/{wpcom_site}/knowledge #
Ask an LLM
“How do I add a new knowledge article to a site?”
“Can I set the knowledge type when creating a knowledge article?”
Tell an agent
Create a knowledge article on {wpcom_site} titled {title}.
Add a {wp_knowledge_type} knowledge article {title} to site {wpcom_site}.
GET /wp/v2/sites/{wpcom_site}/knowledge/guideline-scopes List knowledge guideline scopes · GET /wp/v2/sites/{wpcom_site}/knowledge/guideline-scopes #
Ask an LLM
“What guideline scopes exist for a site's knowledge articles?”
“Which knowledge guideline scopes can I assign to articles?”
Tell an agent
List knowledge guideline scopes for site {wpcom_site}.
Show the knowledge guideline scopes available on {wpcom_site}.
GET /wp/v2/sites/{wpcom_site}/knowledge/{id} Get a knowledge article · GET /wp/v2/sites/{wpcom_site}/knowledge/{id} #
Ask an LLM
“How do I read one knowledge article by ID?”
“Can I fetch a knowledge article with its excerpt?”
Tell an agent
Get knowledge article {id} on site {wpcom_site}.
Show knowledge article {id} from {wpcom_site} with excerpt length {excerpt_length}.
POST /wp/v2/sites/{wpcom_site}/knowledge/{id} Replace a knowledge article by ID · POST /wp/v2/sites/{wpcom_site}/knowledge/{id} #
Ask an LLM
“Is there a POST method to replace a knowledge article by its ID?”
“Can I POST a full knowledge article replacement by ID?”
Tell an agent
POST a full replacement of knowledge article {id} on {wpcom_site}.
POST knowledge article {id} on {wpcom_site} with title {title} and content {content}.
PUT /wp/v2/sites/{wpcom_site}/knowledge/{id} Replace a knowledge article · PUT /wp/v2/sites/{wpcom_site}/knowledge/{id} #
Ask an LLM
“How do I overwrite a knowledge article's content?”
“Can I change the knowledge type of an existing article?”
Tell an agent
Replace knowledge article {id} on {wpcom_site} with {title}.
Overwrite knowledge article {id} on {wpcom_site} as type {wp_knowledge_type}.
PATCH /wp/v2/sites/{wpcom_site}/knowledge/{id} Update a knowledge article · PATCH /wp/v2/sites/{wpcom_site}/knowledge/{id} #
Ask an LLM
“How do I change the status of a knowledge article?”
“Can I edit just the excerpt of an existing knowledge article?”
Tell an agent
Set the status of knowledge article {id} on {wpcom_site} to {status}.
Update the excerpt of knowledge article {id} on {wpcom_site} to {excerpt}.
DELETE /wp/v2/sites/{wpcom_site}/knowledge/{id} Delete a knowledge article · DELETE /wp/v2/sites/{wpcom_site}/knowledge/{id} #
Ask an LLM
“How do I delete a knowledge article from a site?”
“Can I force-delete a knowledge article instead of trashing it?”
Tell an agent destructive · confirm first
Delete knowledge article {id} from site {wpcom_site}.
Force-delete knowledge article {id} on {wpcom_site} with force {force}.
GET /wp/v2/sites/{wpcom_site}/knowledge/{id}/autosaves List autosaves of a knowledge article · GET /wp/v2/sites/{wpcom_site}/knowledge/{id}/autosaves #
Ask an LLM
“What autosaves exist for a knowledge article?”
“Can I list only the autosaves of one article?”
Tell an agent
List autosaves of knowledge article {id} on site {wpcom_site}.
Show autosaves of knowledge article {id} on {wpcom_site} under parent {parent}.
POST /wp/v2/sites/{wpcom_site}/knowledge/{id}/autosaves Save an autosave of a knowledge article · POST /wp/v2/sites/{wpcom_site}/knowledge/{id}/autosaves #
Ask an LLM
“How do I save an autosave of a knowledge article?”
“Can I create a new autosave of an article by its parent ID?”
Tell an agent
Save an autosave of knowledge article {id} on {wpcom_site} with title {title}.
Create a new autosave of knowledge article {id} on {wpcom_site} under parent {parent}.
GET /wp/v2/sites/{wpcom_site}/knowledge/{parent}/autosaves/{id} Get one autosave of a knowledge article · GET /wp/v2/sites/{wpcom_site}/knowledge/{parent}/autosaves/{id} #
Ask an LLM
“How do I read a single autosave of a knowledge article?”
“Can I fetch an autosave by its ID?”
Tell an agent
Get autosave {id} of knowledge article {parent} on {wpcom_site}.
Show autosave {id} of knowledge article {parent} on {wpcom_site} with context {context}.
GET /wp/v2/sites/{wpcom_site}/knowledge/{parent}/revisions List revisions of a knowledge article · GET /wp/v2/sites/{wpcom_site}/knowledge/{parent}/revisions #
Ask an LLM
“What revisions exist for a knowledge article?”
“Can I list revisions of an article by page?”
Tell an agent
List revisions of knowledge article {parent} on site {wpcom_site}.
Show page {page} of revisions for knowledge article {parent} on {wpcom_site}.
GET /wp/v2/sites/{wpcom_site}/knowledge/{parent}/revisions/{id} Get one revision of a knowledge article · GET /wp/v2/sites/{wpcom_site}/knowledge/{parent}/revisions/{id} #
Ask an LLM
“How do I read a single revision of a knowledge article?”
“Can I fetch a knowledge article revision by ID?”
Tell an agent
Get revision {id} of knowledge article {parent} on {wpcom_site}.
Show knowledge article {parent} revision {id} on {wpcom_site} with context {context}.
DELETE /wp/v2/sites/{wpcom_site}/knowledge/{parent}/revisions/{id} Permanently delete a knowledge article revision · DELETE /wp/v2/sites/{wpcom_site}/knowledge/{parent}/revisions/{id} #
Ask an LLM
“Can I delete an outdated revision of a knowledge article?”
“Does deleting a knowledge revision support trashing?”
Tell an agent destructive · confirm first
Permanently delete revision {id} of knowledge article {parent} on site {wpcom_site}.
Delete knowledge revision {id} of {parent} 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-knowledge-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-knowledge-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WordPress.com REST API — wp/v2 namespace Knowledge 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 (32 KB total) ---
# Full source: https://artifacts.apis.io/automattic/openapi/automattic-knowledge-api-openapi.yml