How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Automattic Comments API

The comments API from Automattic — 14 operation(s) for comments.

Automattic Comments API is one of 385 APIs that Automattic publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Comments. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and a getting-started guide.

This API exposes 20 operations across 14 paths, and defines 2 schemas. It is described by OpenAPI 3.2.0, at version 1.0.

Requests are made against 3 base URLs: https://public-api.wordpress.com/rest/v1.1, https://public-api.wordpress.com/rest/v1.2, https://public-api.wordpress.com.

20 operations 14 paths 2 schemas 1 DELETE9 GET1 PATCH8 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0
Base URL
https://public-api.wordpress.com/rest/v1.1
Authentication
OAuth 2.0, HTTP Bearer
Resource Areas
1

Authentication & Security 2

Automattic Comments API declares 2 security schemes for authenticating requests. It supports OAuth 2.0 (oauth2) using the authorizationCode flow, exposing 21 scopes. It accepts HTTP bearer tokens (bearerAuth). By default, every request must be authenticated.

  • oauth2 — WordPress.com OAuth 2.1 (see /.well-known/openid-configuration).
  • bearerAuth — Authorization: Bearer

Paths & Operations 20

Across 14 paths, the API surfaces 20 operations — 1 DELETE, 9 GET, 1 PATCH, 8 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

comments 20
GET
/sites/{site}/comment-counts
Get comment counts for each available status
getSitesBySiteCommentCounts 8 params → 200400401403404
GET
/sites/{site}/comment-history/{comment_ID}
Get the audit history for given comment
getSitesBySiteCommentHistoryByCommentId 8 params → 200400401403404
GET
/sites/{site}/comments/
Get a list of recent comments.
getSitesBySiteComments 17 params → 200400401403404
GET
/sites/{site}/comments/{comment_ID}
Get a single comment.
getSitesBySiteCommentsByCommentId 8 params → 200400401403404
POST
/sites/{site}/comments/{comment_ID}
Edit a comment.
postSitesBySiteCommentsByCommentId 8 params body → 200400401403404
POST
/sites/{site}/comments/{comment_ID}/delete
Delete a comment.
postSitesBySiteCommentsByCommentIdDelete 8 params → 200400401403404
GET
/sites/{site}/comments/{comment_ID}/likes/
Get the likes for a comment.
getSitesBySiteCommentsByCommentIdLikes 7 params → 200400401403404
GET
/sites/{site}/comments/{comment_ID}/likes/mine/
Get your like status for a comment.
getSitesBySiteCommentsByCommentIdLikesMine 7 params → 200400401403404
POST
/sites/{site}/comments/{comment_ID}/likes/mine/delete
Remove your like from a comment.
postSitesBySiteCommentsByCommentIdLikesMineDelete 7 params → 200400401403404
POST
/sites/{site}/comments/{comment_ID}/likes/new
Like a comment.
postSitesBySiteCommentsByCommentIdLikesNew 7 params → 200400401403404
POST
/sites/{site}/comments/{comment_ID}/replies/new
Create a comment as a reply to another comment.
postSitesBySiteCommentsByCommentIdRepliesNew 8 params body → 200400401403404
GET
/sites/{site}/posts/{post_ID}/replies/
Get a list of recent comments on a post.
getSitesBySitePostsByPostIdReplies 18 params → 200400401403404
POST
/sites/{site}/posts/{post_ID}/replies/new
Create a comment on a post.
postSitesBySitePostsByPostIdRepliesNew 8 params body → 200400401403404
GET
/wp/v2/sites/{wpcom_site}/comments
GET /wp/v2/sites/{wpcomsite}/comments
getWpV2SitesbyWpcomSiteComments 21 params → 200401404
POST
/wp/v2/sites/{wpcom_site}/comments
POST /wp/v2/sites/{wpcomsite}/comments
postWpV2SitesbyWpcomSiteComments 1 param body → 200401404
GET
/wp/v2/sites/{wpcom_site}/comments/{id}
GET /wp/v2/sites/{wpcomsite}/comments/{id}
getWpV2SitesbyWpcomSiteCommentsbyId 4 params → 200401404
POST
/wp/v2/sites/{wpcom_site}/comments/{id}
POST /wp/v2/sites/{wpcomsite}/comments/{id}
postWpV2SitesbyWpcomSiteCommentsbyId 2 params body → 200401404
PUT
/wp/v2/sites/{wpcom_site}/comments/{id}
PUT /wp/v2/sites/{wpcomsite}/comments/{id}
putWpV2SitesbyWpcomSiteCommentsbyId 2 params body → 200401404
PATCH
/wp/v2/sites/{wpcom_site}/comments/{id}
PATCH /wp/v2/sites/{wpcomsite}/comments/{id}
patchWpV2SitesbyWpcomSiteCommentsbyId 2 params body → 200401404
DELETE
/wp/v2/sites/{wpcom_site}/comments/{id}
DELETE /wp/v2/sites/{wpcomsite}/comments/{id}
deleteWpV2SitesbyWpcomSiteCommentsbyId 4 params → 200401404

Schemas 2

The contract defines 2 schemas that model the data the API accepts and returns. The most detailed are WPRestError (3 properties), Error (2 properties). Each schema is shown below with its type and property counts.

Error
object
WordPress.com REST API error envelope (observed live).
2 properties
WPRestError
object
WordPress REST API error envelope (observed on public-api.wordpress.com).
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

automattic-comments-api-openapi.yml Raw ↑

Other APIs Automattic publishes across the network.

WordPress.com MCP Server
WordPress VIP Platform API
Automattic A8c Lore API
Automattic A8cmentorship API
Automattic Abilities API
Automattic Activity API
Automattic Activity Log Events API
Automattic Activitypub API
Automattic Adflow API
Automattic Admin Bar API
Automattic Admin Color API
Automattic Admin Menu API
Where this information came from

This is an independent, third-party profile of Automattic Comments API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.