Automattic Alerts API

The alerts API from Automattic — 3 operation(s) for alerts.

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 12

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 /wpcom/v2/sites/{wpcom_site}/alerts List security alerts for a site · GET /wpcom/v2/sites/{wpcom_site}/alerts #
Ask an LLM
“What security alerts are raised on my site?”
“Which threats are currently active for a WordPress.com site?”
Tell an agent
List the security alerts for site {wpcom_site}.
Show every alert raised on {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/alerts Create a site security alert · POST /wpcom/v2/sites/{wpcom_site}/alerts #
Ask an LLM
“How do I add a new security alert to a site?”
“Can I create a site alert with a specific slug and version?”
Tell an agent
Create a {type} alert on {wpcom_site}.
Add a {type} alert with slug {slug} to {wpcom_site}.
PUT /wpcom/v2/sites/{wpcom_site}/alerts Replace a site's security alerts · PUT /wpcom/v2/sites/{wpcom_site}/alerts #
Ask an LLM
“How do I overwrite all security alerts on a site in one request?”
“Can I set a site's alert list to a known type and slug?”
Tell an agent
Replace the security alerts on {wpcom_site} with type {type}.
Overwrite {wpcom_site}'s alerts with type {type} and slug {slug}.
PATCH /wpcom/v2/sites/{wpcom_site}/alerts Update a site's security alerts · PATCH /wpcom/v2/sites/{wpcom_site}/alerts #
Ask an LLM
“How do I change the type of a site's existing security alerts?”
“Can I update a site's alert list without replacing it?”
Tell an agent
Update the security alerts on {wpcom_site} to type {type}.
Patch {wpcom_site}'s alert list to type {type} and version {version}.
GET /wpcom/v2/sites/{wpcom_site}/alerts/fix Get fix suggestions for threats · GET /wpcom/v2/sites/{wpcom_site}/alerts/fix #
Ask an LLM
“What fixes are suggested for a list of threats?”
“Can I get remediation steps for several threats at once?”
Tell an agent
Get fix suggestions for threats {threat_ids} on {wpcom_site}.
Show remediation fixes for threat {threat_ids} on {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/alerts/fix Mark security threats as fixed on a site · POST /wpcom/v2/sites/{wpcom_site}/alerts/fix #
Ask an LLM
“How do I mark a list of security threats on my site as fixed?”
“Can I tell WordPress.com a threat is fixed by its threat ID?”
Tell an agent
Mark threats {threat_ids} as fixed on site {wpcom_site}.
Fix the security threats {threat_ids} on site {wpcom_site}.
PUT /wpcom/v2/sites/{wpcom_site}/alerts/fix Apply fixes to threats · PUT /wpcom/v2/sites/{wpcom_site}/alerts/fix #
Ask an LLM
“How do I apply a batch of fixes to threats on a site?”
“Can I overwrite a site's threat fixes in one request?”
Tell an agent
Apply fixes {threat_ids} to {wpcom_site}.
Overwrite {wpcom_site}'s threat fixes with {threat_ids}.
PATCH /wpcom/v2/sites/{wpcom_site}/alerts/fix Patch fixes for threats on a site · PATCH /wpcom/v2/sites/{wpcom_site}/alerts/fix #
Ask an LLM
“Can I submit a partial update to the fixes recorded for several threats on my WordPress.com site?”
“What happens when I send a PATCH with a list of threat IDs to a site's alerts fix endpoint?”
Tell an agent
Patch the fix status for threat IDs {threat_ids} on site {wpcom_site}.
Send a PATCH to the alerts fix endpoint of {wpcom_site} with threat IDs {threat_ids}.
GET /wpcom/v2/sites/{wpcom_site}/alerts/{id} Get a site security alert · GET /wpcom/v2/sites/{wpcom_site}/alerts/{id} #
Ask an LLM
“What is the status of one security alert on a site?”
“Can I fetch a single site alert by ID?”
Tell an agent
Get alert {id} on {wpcom_site}.
Show the details of site {wpcom_site} alert {id}.
POST /wpcom/v2/sites/{wpcom_site}/alerts/{id} Acknowledge or fix a single security alert · POST /wpcom/v2/sites/{wpcom_site}/alerts/{id} #
Ask an LLM
“Can I acknowledge a specific security alert on my site?”
“Is there a way to fix one security alert by its ID?”
Tell an agent
Acknowledge alert {id} on site {wpcom_site}.
Mark alert {id} on site {wpcom_site} as fixed with a fix.
PUT /wpcom/v2/sites/{wpcom_site}/alerts/{id} Acknowledge or fix a site alert · PUT /wpcom/v2/sites/{wpcom_site}/alerts/{id} #
Ask an LLM
“How do I acknowledge a security alert on a site?”
“Can I mark a site alert as fixed?”
Tell an agent
Mark alert {id} on {wpcom_site} as ignored.
Set alert {id} on {wpcom_site} to ignore {ignore} and fix {fix}.
PATCH /wpcom/v2/sites/{wpcom_site}/alerts/{id} Ignore or unignore a single security alert · PATCH /wpcom/v2/sites/{wpcom_site}/alerts/{id} #
Ask an LLM
“Can I ignore a specific security alert on my site?”
“How do I stop ignoring one alert I already ignored?”
Tell an agent
Ignore alert {id} on site {wpcom_site}.
Unignore alert {id} on site {wpcom_site}.

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-alerts-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-alerts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WordPress.com REST API — wpcom/v2 namespace Alerts API
  version: v2
  description: Derived by API Evangelist from the WordPress.com REST API route index published at https://public-api.wordpress.com/wpcom/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/wpcom/v2/
  x-derived-by: API Evangelist enrichment pipeline
servers:
- url: https://public-api.wordpress.com
security:
- bearerAuth: []
tags:
- name: Alerts
paths:
  /wpcom/v2/sites/{wpcom_site}/alerts:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteAlerts
      summary: GET /wpcom/v2/sites/{wpcom_site}/alerts
      tags:
      - Alerts
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
    post:
      operationId: postWpcomV2SitesbyWpcomSiteAlerts
      summary: POST /wpcom/v2/sites/{wpcom_site}/alerts
      tags:
      - Alerts
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                slug:
                  type: string
                version:
                  type: string
              required:
              - type
    put:
      operationId: putWpcomV2SitesbyWpcomSiteAlerts
      summary: PUT /wpcom/v2/sites/{wpcom_site}/alerts
      tags:
      - Alerts
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                slug:
                  type: string
                version:
                  type: string
              required:
              - type
    patch:
      operationId: patchWpcomV2SitesbyWpcomSiteAlerts
      summary: PATCH /wpcom/v2/sites/{wpcom_site}/alerts
      tags:
      - Alerts
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                slug:
                  type: string
                version:
                  type: string
              required:
              - type
  /wpcom/v2/sites/{wpcom_site}/alerts/fix:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteAlertsFix
      summary: GET /wpcom/v2/sites/{wpcom_site}/alerts/fix
      tags:
      - Alerts
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: threat_ids
        in: query
        required: true
        schema:
          type: array
          items:
            type: integer
    post:
      operationId: postWpcomV2SitesbyWpcomSiteAlertsFix
      summary: POST /wpcom/v2/sites/{wpcom_site}/alerts/fix
      tags:
      - Alerts
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                threat_ids:
                  type: array
                  items:
                    type: integer
              required:
              - threat_ids
    put:
      operationId: putWpcomV2SitesbyWpcomSiteAlertsFix
      summary: PUT /wpcom/v2/sites/{wpcom_site}/alerts/fix
      tags:
      - Alerts
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                threat_ids:
                  type: array
                  items:
                    type: integer
              required:
              - threat_ids
    patch:
      operationId: patchWpcomV2SitesbyWpcomSiteAlertsFix
      summary: PATCH /wpcom/v2/sites/{wpcom_site}/alerts/fix
      tags:
      - Alerts
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                threat_ids:
                  type: array
                  items:
                    type: integer
              required:
              - threat_ids
  /wpcom/v2/sites/{wpcom_site}/alerts/{id}:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteAlertsbyId
      summary: GET /wpcom/v2/sites/{wpcom_site}/alerts/{id}
      tags:
      - Alerts
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
    post:
      operationId: postWpcomV2SitesbyWpcomSiteAlertsbyId
      summary: POST /wpcom/v2/sites/{wpcom_site}/alerts/{id}
      tags:
      - Alerts
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                ignore:
                  type: boolean
                  default: false
                unignore:
                  type: boolean
                  default: false
                fix:
                  type: boolean
                  default: false
    put:
      operationId: putWpcomV2SitesbyWpcomSiteAlertsbyId
      summary: PUT /wpcom/v2/sites/{wpcom_site}/alerts/{id}
      tags:
      - Alerts
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                ignore:
                  type: boolean
                  default: false
                unignore:
                  type: boolean
                  default: false
                fix:
                  type: boolean
                  default: false
    patch:
      operationId: patchWpcomV2SitesbyWpcomSiteAlertsbyId
      summary: PATCH /wpcom/v2/sites/{wpcom_site}/alerts/{id}
      tags:
      - Alerts
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
      parameters:
      - name: wpcom_site
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                ignore:
                  type: boolean
                  default: false
                unignore:
                  type: boolean
                  default: false
                fix:
                  type: boolean
                  default: false
components:
  schemas:
    WPRestError:
      type: object
      description: WordPress REST API error envelope (observed on public-api.wordpress.com).
      properties:
        code:
          type: string
          example: rest_unauthorized
        message:
          type: string
          example: Authentication required.
        data:
          type: object
          properties:
            status:
              type: integer
              example: 401
  securitySchemes:
    oauth2:
      type: oauth2
      description: WordPress.com OAuth 2.1, per https://public-api.wordpress.com/.well-known/openid-configuration
      flows:
        authorizationCode:
          authorizationUrl: https://public-api.wordpress.com/oauth2-1/authorize
          tokenUrl: https://public-api.wordpress.com/oauth2-1/token
          refreshUrl: https://public-api.wordpress.com/oauth2-1/token
          scopes:
            global: ''
            auth: ''
            openid: ''
            profile: ''
            email: ''
            users: ''
            sites: ''
            posts: ''
            comments: ''
            taxonomy: ''
            follow: ''
            sharing: ''
            freshly-pressed: ''
            notifications: ''
            insights: ''
            read: ''
            stats: ''
            media: ''
            menus: ''
            batch: ''
            videos: ''
    bearerAuth:
      type: http
      scheme: bearer