Automattic Subscribers API

The subscribers API from Automattic — 19 operation(s) for subscribers.

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 20

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}/subscribers List a site's subscribers · GET /wpcom/v2/sites/{wpcom_site}/subscribers #
Ask an LLM
“Who are the subscribers on my site?”
“Can I filter a site's subscribers by type?”
Tell an agent
List subscribers on site {wpcom_site}.
Show site {wpcom_site} subscribers matching {filter}.
POST /wpcom/v2/sites/{wpcom_site}/subscribers/add Add subscribers to a site · POST /wpcom/v2/sites/{wpcom_site}/subscribers/add #
Ask an LLM
“How do I add new subscribers to my site by email?”
“Can I bulk add several email addresses as subscribers?”
Tell an agent
Add {emails} as subscribers to site {wpcom_site}.
Bulk subscribe these email addresses to {wpcom_site}: {emails}.
POST /wpcom/v2/sites/{wpcom_site}/subscribers/comp Subscribe a user to a site plan · POST /wpcom/v2/sites/{wpcom_site}/subscribers/comp #
Ask an LLM
“How do I subscribe a user to a paid plan on my site?”
“Can I give a user a plan without an expiration date?”
Tell an agent
Subscribe user {user_id} to plan {plan_id} on site {wpcom_site}.
Give {user_id} a subscription to plan {plan_id} on {wpcom_site} with no expiration: {no_expiration}.
GET /wpcom/v2/sites/{wpcom_site}/subscribers/count Count a site's subscribers · GET /wpcom/v2/sites/{wpcom_site}/subscribers/count #
Ask an LLM
“How many subscribers does my site have?”
“What is the total subscriber count for a site?”
Tell an agent
Count the subscribers on site {wpcom_site}.
Tell me how many subscribers site {wpcom_site} has.
GET /wpcom/v2/sites/{wpcom_site}/subscribers/counts Get subscriber counts by status · GET /wpcom/v2/sites/{wpcom_site}/subscribers/counts #
Ask an LLM
“How many subscribers are active versus pending on my site?”
“Can I break down a site's subscriber counts by subscription status?”
Tell an agent
Get subscriber counts for site {wpcom_site} by status {subscriber_status}.
Show counts of {subscription_status} subscriptions on {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/subscribers/import Check a subscriber import job · GET /wpcom/v2/sites/{wpcom_site}/subscribers/import #
Ask an LLM
“Has my subscriber import finished, and what did it find?”
“Where can I see the results of a subscriber import job?”
Tell an agent
Check subscriber import job for site {wpcom_site}.
Show the results of the import job on site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/subscribers/import Import subscribers from a file · POST /wpcom/v2/sites/{wpcom_site}/subscribers/import #
Ask an LLM
“How do I import a list of subscribers from a file?”
“Can I preview how many subscribers would be imported without saving them?”
Tell an agent
Import subscribers {emails} into site {wpcom_site}.
Parse {emails} for site {wpcom_site} without importing: {parse_only}.
POST /wpcom/v2/sites/{wpcom_site}/subscribers/import/reset-state Reset a job's import state · POST /wpcom/v2/sites/{wpcom_site}/subscribers/import/reset-state #
Ask an LLM
“How do I clear a failed subscriber import so I can retry it?”
“Can I reset an import's progress back to zero?”
Tell an agent destructive · confirm first
Reset the import state of site {wpcom_site}.
Clear the import progress on site {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/subscribers/import/reset_state Reset an import's state via the underscore path · POST /wpcom/v2/sites/{wpcom_site}/subscribers/import/reset_state #
Ask an LLM
“There's a reset-state endpoint with a underscore in it, what does it do?”
“Can I clear import progress using the underscored import path?”
Tell an agent destructive · confirm first
Reset the state of site {wpcom_site} using the underscored import path.
Clear progress on site {wpcom_site} through the underscore import reset.
GET /wpcom/v2/sites/{wpcom_site}/subscribers/import/{id} Get a subscriber import job · GET /wpcom/v2/sites/{wpcom_site}/subscribers/import/{id} #
Ask an LLM
“What did my subscriber import job actually import?”
“Can I fetch the results of a subscriber import by its job ID?”
Tell an agent
Get subscriber import job {id} on site {wpcom_site}.
Show the results of import {id} for {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/subscribers/individual Look up a single subscriber · GET /wpcom/v2/sites/{wpcom_site}/subscribers/individual #
Ask an LLM
“How do I find one subscriber on my site by subscription ID?”
“Can I look up a subscriber by user ID?”
Tell an agent
Look up subscriber {subscription_id} on site {wpcom_site}.
Find the subscriber with user ID {user_id} on {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/subscribers/individual-stats Get stats for one subscriber · GET /wpcom/v2/sites/{wpcom_site}/subscribers/individual-stats #
Ask an LLM
“What are the stats for a single subscriber?”
“Can I get stats for one subscriber by subscription ID?”
Tell an agent
Get stats for subscriber {subscription_id} on site {wpcom_site}.
Show stats for user ID {user_id} on {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/subscribers/list List a site's subscribers · GET /wpcom/v2/sites/{wpcom_site}/subscribers/list #
Ask an LLM
“Who are the email subscribers of my site?”
“Can I search or filter a site's subscriber list?”
Tell an agent
List the subscribers of site {wpcom_site}.
Find subscribers on site {wpcom_site} matching {filters}.
GET /wpcom/v2/sites/{wpcom_site}/subscribers/products List subscriber products on a site · GET /wpcom/v2/sites/{wpcom_site}/subscribers/products #
Ask an LLM
“What paid subscriber products are available on my site?”
“Which plans can I sell to subscribers?”
Tell an agent
List subscriber products on site {wpcom_site}.
Show the plans available for subscribers on {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/subscribers/remove Remove a subscriber from a site · POST /wpcom/v2/sites/{wpcom_site}/subscribers/remove #
Ask an LLM
“How do I remove a subscriber from my site?”
“Can I unsubscribe a user from a paid subscription on my site?”
Tell an agent destructive · confirm first
Remove subscriber {user_id} from site {wpcom_site}.
Unsubscribe user {user_id} from paid subscriptions {paid_subscription_ids} on {wpcom_site}.
POST /wpcom/v2/sites/{wpcom_site}/subscribers/remove-comp Remove a subscriber from a comp · POST /wpcom/v2/sites/{wpcom_site}/subscribers/remove-comp #
Ask an LLM
“How do I remove a subscriber from a comp plan?”
“Can I unsubscribe a user from a comp by comp ID?”
Tell an agent destructive · confirm first
Remove subscriber from comp {comp_id} on site {wpcom_site}.
Unsubscribe the user on comp {comp_id} for {wpcom_site}.
GET /wpcom/v2/sites/{wpcom_site}/subscribers/stats Get subscriber stats for a site · GET /wpcom/v2/sites/{wpcom_site}/subscribers/stats #
Ask an LLM
“What subscriber stats can I pull for my WordPress.com site?”
“Can I narrow subscriber stats to one subscription or one user?”
Tell an agent
Get the subscriber stats report for site {wpcom_site}.
Pull subscriber stats on site {wpcom_site} filtered to subscription {subscription_id}.
GET /wpcom/v2/sites/{wpcom_site}/subscribers/totals Get total subscriber counts · GET /wpcom/v2/sites/{wpcom_site}/subscribers/totals #
Ask an LLM
“What are the total subscriber counts for my site?”
“How many subscribers does my site have in total?”
Tell an agent
Get total subscriber counts for site {wpcom_site}.
Show the overall subscriber totals for {wpcom_site}.
POST /wpcom/v2/subscribers/emails/resend/subscription-confirmation Resend a subscription confirmation email · POST /wpcom/v2/subscribers/emails/resend/subscription-confirmation #
Ask an LLM
“How do I resend a subscription confirmation email to a subscriber?”
“Can I resend a subscription confirmation using the activation key?”
Tell an agent
Resend the subscription confirmation email for {email_address} with key {key}.
Send a new subscription confirmation to {email_address} using activation key {key} for post {post_id}.
POST /wpcom/v2/subscribers/emails/resend/subscription-management Resend a subscription management email · POST /wpcom/v2/subscribers/emails/resend/subscription-management #
Ask an LLM
“How do I resend the manage-subscription email to a subscriber?”
“Can I resend a subscription management link using an expired token?”
Tell an agent
Resend the subscription management email for {email_address} with token {token}.
Send a new manage link to {email_address} using expired token {token}.

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-subscribers-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-subscribers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WordPress.com REST API — wpcom/v2 namespace Subscribers 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: Subscribers
paths:
  /wpcom/v2/sites/{wpcom_site}/subscribers:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteSubscribers
      summary: GET /wpcom/v2/sites/{wpcom_site}/subscribers
      tags:
      - Subscribers
      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: page
        in: query
        required: false
        schema:
          type: string
          default: 1
        description: The current page.
      - name: per_page
        in: query
        required: false
        schema:
          type: string
          default: 100
        description: The amount of items to show per page.
      - name: search
        in: query
        required: false
        schema:
          type: string
        description: Search for subscribers
      - name: sort
        in: query
        required: false
        schema:
          type: string
          enum:
          - date_subscribed
          - email
          - name
          - plan
          - subscription_status
          default: date_subscribed
        description: Sort subscribers by a specific field
      - name: sort_order
        in: query
        required: false
        schema:
          type: string
          enum:
          - asc
          - desc
        description: Sort order
      - name: filter
        in: query
        required: false
        schema:
          type: string
          enum:
          - all
          - wpcom
          - email
          - paid
          - comp
          - free
          - email_subscriber
          - reader_subscriber
          - unconfirmed_subscriber
          - blocked_subscriber
        description: Filter subscribers by a specific subscriber type
      - name: filters
        in: query
        required: false
        schema:
          type: array
          items:
            type: string
        description: Array of filters to apply (combined with AND logic). If provided, overrides the single filter parameter.
      - name: use_new_helper
        in: query
        required: false
        schema:
          type: boolean
          default: false
        description: Use the new helper to get subscribers
      - name: no_cache
        in: query
        required: false
        schema:
          type: boolean
          default: false
        description: Do not use the cache
      - name: include
        in: query
        required: false
        schema:
          type: array
          default: []
          items:
            type: string
        description: An array of additional fields to include
  /wpcom/v2/sites/{wpcom_site}/subscribers/add:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteSubscribersAdd
      summary: POST /wpcom/v2/sites/{wpcom_site}/subscribers/add
      tags:
      - Subscribers
      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:
                emails:
                  type: array
                  items:
                    type: string
              required:
              - emails
  /wpcom/v2/sites/{wpcom_site}/subscribers/comp:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteSubscribersComp
      summary: POST /wpcom/v2/sites/{wpcom_site}/subscribers/comp
      tags:
      - Subscribers
      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:
                user_id:
                  type: integer
                plan_id:
                  type: integer
                no_expiration:
                  type: boolean
                  default: false
              required:
              - user_id
              - plan_id
  /wpcom/v2/sites/{wpcom_site}/subscribers/count:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteSubscribersCount
      summary: GET /wpcom/v2/sites/{wpcom_site}/subscribers/count
      tags:
      - Subscribers
      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
  /wpcom/v2/sites/{wpcom_site}/subscribers/counts:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteSubscribersCounts
      summary: GET /wpcom/v2/sites/{wpcom_site}/subscribers/counts
      tags:
      - Subscribers
      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: subscription_status
        in: query
        required: false
        schema:
          type: string
          enum:
          - all
          - active
          - inactive
          - pending
          default: active
        description: Filter subscriptions based on status
      - name: subscriber_status
        in: query
        required: false
        schema:
          type: string
          enum:
          - all
          - active
          - blocked
          default: all
        description: Filter subscribers based on status
  /wpcom/v2/sites/{wpcom_site}/subscribers/import:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteSubscribersImport
      summary: GET /wpcom/v2/sites/{wpcom_site}/subscribers/import
      tags:
      - Subscribers
      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: postWpcomV2SitesbyWpcomSiteSubscribersImport
      summary: POST /wpcom/v2/sites/{wpcom_site}/subscribers/import
      tags:
      - Subscribers
      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:
                emails:
                  type: array
                  items: {}
                  description: A list of emails to add as subscribers to the current site.
                categories:
                  type: array
                  items: {}
                  description: A list of category IDs the emails should be subscribed to.
                parse_only:
                  type: boolean
                  default: false
                  description: If true, the import will only parse the file and return the number of subscribers that would be imported.
  /wpcom/v2/sites/{wpcom_site}/subscribers/import/reset-state:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteSubscribersImportResetState
      summary: POST /wpcom/v2/sites/{wpcom_site}/subscribers/import/reset-state
      tags:
      - Subscribers
      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
  /wpcom/v2/sites/{wpcom_site}/subscribers/import/reset_state:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteSubscribersImportResetState2
      summary: POST /wpcom/v2/sites/{wpcom_site}/subscribers/import/reset_state
      tags:
      - Subscribers
      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
  /wpcom/v2/sites/{wpcom_site}/subscribers/import/{id}:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteSubscribersImportbyId
      summary: GET /wpcom/v2/sites/{wpcom_site}/subscribers/import/{id}
      tags:
      - Subscribers
      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
  /wpcom/v2/sites/{wpcom_site}/subscribers/individual:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteSubscribersIndividual
      summary: GET /wpcom/v2/sites/{wpcom_site}/subscribers/individual
      tags:
      - Subscribers
      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: subscription_id
        in: query
        required: false
        schema:
          type: integer
          default: 0
      - name: user_id
        in: query
        required: false
        schema:
          type: integer
          default: 0
  /wpcom/v2/sites/{wpcom_site}/subscribers/individual-stats:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteSubscribersIndividualStats
      summary: GET /wpcom/v2/sites/{wpcom_site}/subscribers/individual-stats
      tags:
      - Subscribers
      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: subscription_id
        in: query
        required: false
        schema:
          type: integer
          default: 0
      - name: user_id
        in: query
        required: false
        schema:
          type: integer
          default: 0
  /wpcom/v2/sites/{wpcom_site}/subscribers/list:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteSubscribersList
      summary: GET /wpcom/v2/sites/{wpcom_site}/subscribers/list
      tags:
      - Subscribers
      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: page
        in: query
        required: false
        schema:
          type: integer
          default: 1
      - name: per_page
        in: query
        required: false
        schema:
          type: integer
          default: 10
      - name: sort
        in: query
        required: false
        schema:
          type: string
          enum:
          - date_subscribed
          - name
          - plan
          - subscription_status
          default: date_subscribed
      - name: sort_order
        in: query
        required: false
        schema:
          type: string
          enum:
          - asc
          - desc
          default: desc
      - name: search
        in: query
        required: false
        schema:
          type: string
          default: ''
      - name: filters
        in: query
        required: false
        schema:
          type: array
          default:
          - all
          items:
            type: string
      - name: use_new_helper
        in: query
        required: false
        schema:
          type: boolean
          default: true
  /wpcom/v2/sites/{wpcom_site}/subscribers/products:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteSubscribersProducts
      summary: GET /wpcom/v2/sites/{wpcom_site}/subscribers/products
      tags:
      - Subscribers
      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
  /wpcom/v2/sites/{wpcom_site}/subscribers/remove:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteSubscribersRemove
      summary: POST /wpcom/v2/sites/{wpcom_site}/subscribers/remove
      tags:
      - Subscribers
      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:
                user_id:
                  type: integer
                  default: 0
                email_subscription_id:
                  type: integer
                  default: 0
                paid_subscription_ids:
                  type: array
                  default: []
                  items:
                    type: string
  /wpcom/v2/sites/{wpcom_site}/subscribers/remove-comp:
    post:
      operationId: postWpcomV2SitesbyWpcomSiteSubscribersRemoveComp
      summary: POST /wpcom/v2/sites/{wpcom_site}/subscribers/remove-comp
      tags:
      - Subscribers
      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:
                comp_id:
                  type: integer
              required:
              - comp_id
  /wpcom/v2/sites/{wpcom_site}/subscribers/stats:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteSubscribersStats
      summary: GET /wpcom/v2/sites/{wpcom_site}/subscribers/stats
      tags:
      - Subscribers
      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: subscription_id
        in: query
        required: false
        schema:
          type: integer
          default: 0
      - name: user_id
        in: query
        required: false
        schema:
          type: integer
          default: 0
  /wpcom/v2/sites/{wpcom_site}/subscribers/totals:
    get:
      operationId: getWpcomV2SitesbyWpcomSiteSubscribersTotals
      summary: GET /wpcom/v2/sites/{wpcom_site}/subscribers/totals
      tags:
      - Subscribers
      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
  /wpcom/v2/subscribers/emails/resend/subscription-confirmation:
    post:
      operationId: postWpcomV2SubscribersEmailsResendSubscriptionConfirmation
      summary: POST /wpcom/v2/subscribers/emails/resend/subscription-confirmation
      tags:
      - Subscribers
      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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                email_address:
                  type: string
                  format: email
                  description: The email address used to subscribe to the blog
                post_id:
                  type: string
                  description: The post ID. Only available if the subscription was made using a subscription block in a post
                key:
                  type: string
                  description: The activation key of the original subscription confirmation email
              required:
              - email_address
              - key
  /wpcom/v2/subscribers/emails/resend/subscription-management:
    post:
      operationId: postWpcomV2SubscribersEmailsResendSubscriptionManagement
      summary: POST /wpcom/v2/subscribers/emails/resend/subscription-management
      tags:
      - Subscribers
      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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                email_address:
                  type: string
                  format: email
                  description: The email address used to request the manage link
                token:
                  type: string
                  description: Expired token used to check the validity of the email parameter
              required:
              - email_address
              - token
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