Automattic Host Partners API

The host-partners API from Automattic — 39 operation(s) for host-partners.

Operations 44

GET /wpcom/v2/host-partners GET /wpcom/v2/host-partners #
POST /wpcom/v2/host-partners/for/{client_id}/metrics/site/{site} POST /wpcom/v2/host-partners/for/{client_id}/metrics/site/{site} #
GET /wpcom/v2/host-partners/for/{client_id}/site-meta/{site}/{key} GET /wpcom/v2/host-partners/for/{client_id}/site-meta/{site}/{key} #
GET /wpcom/v2/host-partners/jetpack/licenses GET /wpcom/v2/host-partners/jetpack/licenses #
DELETE /wpcom/v2/host-partners/jetpack/{license_key} DELETE /wpcom/v2/host-partners/jetpack/{license_key} #
GET /wpcom/v2/host-partners/members GET /wpcom/v2/host-partners/members #
POST /wpcom/v2/host-partners/members/invite POST /wpcom/v2/host-partners/members/invite #
GET /wpcom/v2/host-partners/members/invites/mine GET /wpcom/v2/host-partners/members/invites/mine #
DELETE /wpcom/v2/host-partners/members/invites/{invite_id} DELETE /wpcom/v2/host-partners/members/invites/{invite_id} #
POST /wpcom/v2/host-partners/members/invites/{invite_id}/accept POST /wpcom/v2/host-partners/members/invites/{invite_id}/accept #
POST /wpcom/v2/host-partners/members/invites/{invite_id}/claim POST /wpcom/v2/host-partners/members/invites/{invite_id}/claim #
DELETE /wpcom/v2/host-partners/members/{user_id} DELETE /wpcom/v2/host-partners/members/{user_id} #
POST /wpcom/v2/host-partners/members/{user_id} POST /wpcom/v2/host-partners/members/{user_id} #
PUT /wpcom/v2/host-partners/members/{user_id} PUT /wpcom/v2/host-partners/members/{user_id} #
PATCH /wpcom/v2/host-partners/members/{user_id} PATCH /wpcom/v2/host-partners/members/{user_id} #
POST /wpcom/v2/host-partners/metrics/site/{site} POST /wpcom/v2/host-partners/metrics/site/{site} #
DELETE /wpcom/v2/host-partners/payment-method DELETE /wpcom/v2/host-partners/payment-method #
POST /wpcom/v2/host-partners/payment-method POST /wpcom/v2/host-partners/payment-method #
GET /wpcom/v2/host-partners/payment-methods GET /wpcom/v2/host-partners/payment-methods #
GET /wpcom/v2/host-partners/site-meta/{site}/{key} GET /wpcom/v2/host-partners/site-meta/{site}/{key} #
POST /wpcom/v2/host-partners/wpcloud POST /wpcom/v2/host-partners/wpcloud #
POST /wpcom/v2/host-partners/wpcloud/api-access POST /wpcom/v2/host-partners/wpcloud/api-access #
GET /wpcom/v2/host-partners/wpcloud/api-keys GET /wpcom/v2/host-partners/wpcloud/api-keys #
POST /wpcom/v2/host-partners/wpcloud/api-keys/action POST /wpcom/v2/host-partners/wpcloud/api-keys/action #
GET /wpcom/v2/host-partners/wpcloud/api-keys/mfa GET /wpcom/v2/host-partners/wpcloud/api-keys/mfa #
POST /wpcom/v2/host-partners/wpcloud/api-keys/mfa/start POST /wpcom/v2/host-partners/wpcloud/api-keys/mfa/start #
POST /wpcom/v2/host-partners/wpcloud/api-keys/mfa/validate POST /wpcom/v2/host-partners/wpcloud/api-keys/mfa/validate #
GET /wpcom/v2/host-partners/wpcloud/billing GET /wpcom/v2/host-partners/wpcloud/billing #
GET /wpcom/v2/host-partners/wpcloud/billing/invoices GET /wpcom/v2/host-partners/wpcloud/billing/invoices #
POST /wpcom/v2/host-partners/wpcloud/billing/invoices/{invoice_id}/payment POST /wpcom/v2/host-partners/wpcloud/billing/invoices/{invoice_id}/payment #
GET /wpcom/v2/host-partners/wpcloud/billing/invoices/{invoice_id}/usage-report GET /wpcom/v2/host-partners/wpcloud/billing/invoices/{invoice_id}/usage-report #
GET /wpcom/v2/host-partners/wpcloud/clients GET /wpcom/v2/host-partners/wpcloud/clients #
GET /wpcom/v2/host-partners/wpcloud/inventory GET /wpcom/v2/host-partners/wpcloud/inventory #
GET /wpcom/v2/host-partners/wpcloud/news GET /wpcom/v2/host-partners/wpcloud/news #
GET /wpcom/v2/host-partners/wpcloud/onboarding GET /wpcom/v2/host-partners/wpcloud/onboarding #
POST /wpcom/v2/host-partners/wpcloud/onboarding POST /wpcom/v2/host-partners/wpcloud/onboarding #
GET /wpcom/v2/host-partners/wpcloud/pricing GET /wpcom/v2/host-partners/wpcloud/pricing #
GET /wpcom/v2/host-partners/wpcloud/pricing/simple GET /wpcom/v2/host-partners/wpcloud/pricing/simple #
GET /wpcom/v2/host-partners/wpcloud/stripe/configuration GET /wpcom/v2/host-partners/wpcloud/stripe/configuration #
GET /wpcom/v2/host-partners/wpcloud/stripe/setup-intent GET /wpcom/v2/host-partners/wpcloud/stripe/setup-intent #
POST /wpcom/v2/host-partners/wpcloud/support POST /wpcom/v2/host-partners/wpcloud/support #
GET /wpcom/v2/host-partners/wpcloud/usage GET /wpcom/v2/host-partners/wpcloud/usage #
GET /wpcom/v2/host-partners/wpcloud/warden/events GET /wpcom/v2/host-partners/wpcloud/warden/events #
DELETE /wpcom/v2/host-partners/wpcloud/{wpcom_user_id} DELETE /wpcom/v2/host-partners/wpcloud/{wpcom_user_id} #

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-host-partners-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

automattic-host-partners-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WordPress.com REST API — wpcom/v2 namespace Host Partners 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: host-partners
paths:
  /wpcom/v2/host-partners:
    get:
      operationId: getWpcomV2HostPartners
      summary: GET /wpcom/v2/host-partners
      tags:
      - host-partners
      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: atomic_client_id
        in: query
        required: false
        schema:
          type: integer
        description: When supplied by a proxied Automattician, scopes the response to the given client. Ignored for non-Automattician callers.
  /wpcom/v2/host-partners/for/{client_id}/metrics/site/{site}:
    post:
      operationId: postWpcomV2HostPartnersForbyClientIdMetricsSitebySite
      summary: POST /wpcom/v2/host-partners/for/{client_id}/metrics/site/{site}
      tags:
      - host-partners
      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: client_id
        in: path
        required: true
        schema:
          type: string
      - name: site
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/host-partners/for/{client_id}/site-meta/{site}/{key}:
    get:
      operationId: getWpcomV2HostPartnersForbyClientIdSiteMetabySitebyKey
      summary: GET /wpcom/v2/host-partners/for/{client_id}/site-meta/{site}/{key}
      tags:
      - host-partners
      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: client_id
        in: path
        required: true
        schema:
          type: string
      - name: site
        in: path
        required: true
        schema:
          type: string
      - name: key
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/host-partners/jetpack/licenses:
    get:
      operationId: getWpcomV2HostPartnersJetpackLicenses
      summary: GET /wpcom/v2/host-partners/jetpack/licenses
      tags:
      - host-partners
      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: page
        in: query
        required: false
        schema:
          type: integer
          default: 1
      - name: per_page
        in: query
        required: false
        schema:
          type: integer
          default: 50
      - name: order_by
        in: query
        required: false
        schema:
          type: string
          enum:
          - issued_at
          - attached_at
          - revoked_at
          - product_id
          default: issued_at
      - name: order
        in: query
        required: false
        schema:
          type: string
          enum:
          - asc
          - desc
          default: desc
      - name: filters
        in: query
        required: false
        schema:
          type: object
  /wpcom/v2/host-partners/jetpack/{license_key}:
    delete:
      operationId: deleteWpcomV2HostPartnersJetpackbyLicenseKey
      summary: DELETE /wpcom/v2/host-partners/jetpack/{license_key}
      tags:
      - host-partners
      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: license_key
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/host-partners/members:
    get:
      operationId: getWpcomV2HostPartnersMembers
      summary: GET /wpcom/v2/host-partners/members
      tags:
      - host-partners
      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: client_id
        in: query
        required: false
        schema:
          type: integer
  /wpcom/v2/host-partners/members/invite:
    post:
      operationId: postWpcomV2HostPartnersMembersInvite
      summary: POST /wpcom/v2/host-partners/members/invite
      tags:
      - host-partners
      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:
                client_id:
                  type: integer
                login:
                  type: string
                role:
                  type: string
                message:
                  type: string
              required:
              - login
              - role
  /wpcom/v2/host-partners/members/invites/mine:
    get:
      operationId: getWpcomV2HostPartnersMembersInvitesMine
      summary: GET /wpcom/v2/host-partners/members/invites/mine
      tags:
      - host-partners
      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'
  /wpcom/v2/host-partners/members/invites/{invite_id}:
    delete:
      operationId: deleteWpcomV2HostPartnersMembersInvitesbyInviteId
      summary: DELETE /wpcom/v2/host-partners/members/invites/{invite_id}
      tags:
      - host-partners
      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: invite_id
        in: path
        required: true
        schema:
          type: string
      - name: client_id
        in: query
        required: false
        schema:
          type: integer
  /wpcom/v2/host-partners/members/invites/{invite_id}/accept:
    post:
      operationId: postWpcomV2HostPartnersMembersInvitesbyInviteIdAccept
      summary: POST /wpcom/v2/host-partners/members/invites/{invite_id}/accept
      tags:
      - host-partners
      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: invite_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                client_id:
                  type: integer
                secret:
                  type: string
              required:
              - client_id
              - secret
  /wpcom/v2/host-partners/members/invites/{invite_id}/claim:
    post:
      operationId: postWpcomV2HostPartnersMembersInvitesbyInviteIdClaim
      summary: POST /wpcom/v2/host-partners/members/invites/{invite_id}/claim
      tags:
      - host-partners
      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: invite_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                client_id:
                  type: integer
              required:
              - client_id
  /wpcom/v2/host-partners/members/{user_id}:
    delete:
      operationId: deleteWpcomV2HostPartnersMembersbyUserId
      summary: DELETE /wpcom/v2/host-partners/members/{user_id}
      tags:
      - host-partners
      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: user_id
        in: path
        required: true
        schema:
          type: string
      - name: client_id
        in: query
        required: false
        schema:
          type: integer
    post:
      operationId: postWpcomV2HostPartnersMembersbyUserId
      summary: POST /wpcom/v2/host-partners/members/{user_id}
      tags:
      - host-partners
      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: user_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                client_id:
                  type: integer
                role:
                  type: string
              required:
              - role
    put:
      operationId: putWpcomV2HostPartnersMembersbyUserId
      summary: PUT /wpcom/v2/host-partners/members/{user_id}
      tags:
      - host-partners
      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: user_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                client_id:
                  type: integer
                role:
                  type: string
              required:
              - role
    patch:
      operationId: patchWpcomV2HostPartnersMembersbyUserId
      summary: PATCH /wpcom/v2/host-partners/members/{user_id}
      tags:
      - host-partners
      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: user_id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                client_id:
                  type: integer
                role:
                  type: string
              required:
              - role
  /wpcom/v2/host-partners/metrics/site/{site}:
    post:
      operationId: postWpcomV2HostPartnersMetricsSitebySite
      summary: POST /wpcom/v2/host-partners/metrics/site/{site}
      tags:
      - host-partners
      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: site
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/host-partners/payment-method:
    delete:
      operationId: deleteWpcomV2HostPartnersPaymentMethod
      summary: DELETE /wpcom/v2/host-partners/payment-method
      tags:
      - host-partners
      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: payment_method_id
        in: query
        required: true
        schema:
          type: string
        description: The Stripe PaymentMethodId that should be detached.
    post:
      operationId: postWpcomV2HostPartnersPaymentMethod
      summary: POST /wpcom/v2/host-partners/payment-method
      tags:
      - host-partners
      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:
                payment_method_id:
                  type: string
                  description: The Stripe payment method ID that should be attached to the customer.
                use_as_primary_payment_method:
                  type: boolean
                  default: false
                  description: Set this payment method as default for the customer.
                stripe_setup_intent_id:
                  type: string
                  default: ''
                  description: The Stripe Setup Intent id for the payment method.
              required:
              - payment_method_id
  /wpcom/v2/host-partners/payment-methods:
    get:
      operationId: getWpcomV2HostPartnersPaymentMethods
      summary: GET /wpcom/v2/host-partners/payment-methods
      tags:
      - host-partners
      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'
  /wpcom/v2/host-partners/site-meta/{site}/{key}:
    get:
      operationId: getWpcomV2HostPartnersSiteMetabySitebyKey
      summary: GET /wpcom/v2/host-partners/site-meta/{site}/{key}
      tags:
      - host-partners
      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: site
        in: path
        required: true
        schema:
          type: string
      - name: key
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/host-partners/wpcloud:
    post:
      operationId: postWpcomV2HostPartnersWpcloud
      summary: POST /wpcom/v2/host-partners/wpcloud
      tags:
      - host-partners
      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:
                first_name:
                  type: string
                  description: First name of the host partner.
                last_name:
                  type: string
                  description: Last name of the host partner.
                business_name:
                  type: string
                  description: Business name of the host partner.
                business_type:
                  type: string
                  description: Business type of the host partner (e.g. host, agency...). Fixed Values.
                business_description:
                  type: string
                  description: User-provided description of the business type.
                hosting_method:
                  type: string
                  description: The method by which the host partner provides hosting (e.g., own infrastructure, 3rd party).
                consider_migrating:
                  type: string
                  description: Will the host partner consider migrating sites to WP Cloud.
                num_migrations:
                  type: string
                  description: How many sites will be migrated, if any. Not required.
                which_web_panel:
                  type: string
                  description: Which web panel the prospective partner uses, if any. Not required.
                which_web_panel_other:
                  type: string
                  description: Which other web panel the prospective partner uses, if any. Not required.
                anything_else:
                  type: string
                  description: Anything goes. The user can add whatever text theyd like here.
                lead_source:
                  type: string
                  description: Answer to How did you hear about us?
                wp_sites_management_count:
                  type: string
                  description: The number of WordPress sites managed by the host partner.
                interest_in_wpcloud:
                  type: string
                  description: The user-provided reason for the interest in WP Cloud.
                url:
                  type: string
                  description: URL associated with the host partner.
                email:
                  type: string
                  description: Email associated with the host partner.
                team_email:
                  type: string
                  description: Email alias to reach the partner team.
                ip_allowlist:
                  type: string
                  description: Plain text field listing one or more IP addresses or CIDR ranges.
                accepted_tos:
                  type: boolean
                  description: True if the TOS was accepted.
                accepted_pricing:
                  type: boolean
                  description: Date when pricing was last accepted.
                accepted_removal_subjection:
                  type: boolean
                  description: Date when removal subjection was last accepted.
                accepted_email_subscription:
                  type: boolean
                  description: The user consented to join the email newsletter.
                signed_contract:
                  type: boolean
                  description: Date when the contract was last signed.
  /wpcom/v2/host-partners/wpcloud/api-access:
    post:
      operationId: postWpcomV2HostPartnersWpcloudApiAccess
      summary: POST /wpcom/v2/host-partners/wpcloud/api-access
      tags:
      - host-partners
      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:
                first_name:
                  type: string
                last_name:
                  type: string
                email:
                  type: string
                  format: email
                ip_addresses:
                  type: string
              required:
              - first_name
              - last_name
              - email
              - ip_addresses
  /wpcom/v2/host-partners/wpcloud/api-keys:
    get:
      operationId: getWpcomV2HostPartnersWpcloudApiKeys
      summary: GET /wpcom/v2/host-partners/wpcloud/api-keys
      tags:
      - host-partners
      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: client_id
        in: query
        required: false
        schema:
          type: integer
  /wpcom/v2/host-partners/wpcloud/api-keys/action:
    post:
      operationId: postWpcomV2HostPartnersWpcloudApiKeysAction
      summary: POST /wpcom/v2/host-partners/wpcloud/api-keys/action
      tags:
      - host-partners
      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:
                client_id:
                  type: integer
                action:
                  type: string
                key_name:
                  type: string
                endpoints:
                  type: array
                  items: {}
                ip_ranges:
                  type: array
                  items: {}
                add_endpoints:
                  type: array
                  items: {}
                remove_endpoints:
                  type: array
                  items: {}
                add_ip_ranges:
                  type: array
                  items: {}
                remove_ip_ranges:
                  type: array
                  items: {}
                verification_token:
                  type: string
              required:
              - action
              - verification_token
  /wpcom/v2/host-partners/wpcloud/api-keys/mfa:
    get:
      operationId: getWpcomV2HostPartnersWpcloudApiKeysMfa
      summary: GET /wpcom/v2/host-partners/wpcloud/api-keys/mfa
      tags:
      - host-partners
      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: client_id
        in: query
        required: false
        schema:
          type: integer
  /wpcom/v2/host-partners/wpcloud/api-keys/mfa/start:
    post:
      operationId: postWpcomV2HostPartnersWpcloudApiKeysMfaStart
      summary: POST /wpcom/v2/host-partners/wpcloud/api-keys/mfa/start
      tags:
      - host-partners
      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:
                client_id:
                  type: integer
                return_url:
                  type: string
                intent:
                  type: object
              required:
              - return_url
  /wpcom/v2/host-partners/wpcloud/api-keys/mfa/validate:
    post:
      operationId: postWpcomV2HostPartnersWpcloudApiKeysMfaValidate
      summary: POST /wpcom/v2/host-partners/wpcloud/api-keys/mfa/validate
      tags:
      - host-partners
      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:
                client_id:
                  type: integer
                code:
                  type: string
                verification_token:
                  type: string
  /wpcom/v2/host-partners/wpcloud/billing:
    get:
      operationId: getWpcomV2HostPartnersWpcloudBilling
      summary: GET /wpcom/v2/host-partners/wpcloud/billing
      tags:
      - host-partners
      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'
  /wpcom/v2/host-partners/wpcloud/billing/invoices:
    get:
      operationId: getWpcomV2HostPartnersWpcloudBillingInvoices
      summary: GET /wpcom/v2/host-partners/wpcloud/billing/invoices
      tags:
      - host-partners
      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: page
        in: query
        required: false
        schema:
          type: string
          default: '1'
  /wpcom/v2/host-partners/wpcloud/billing/invoices/{invoice_id}/payment:
    post:
      operationId: postWpcomV2HostPartnersWpcloudBillingInvoicesbyInvoiceIdPayment
      summary: POST /wpcom/v2/host-partners/wpcloud/billing/invoices/{invoice_id}/payment
      tags:
      - host-partners
      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: invoice_id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/host-partners/wpcloud/billing/invoices/{invoice_id}/usage-report:
    get:
      operationId: getWpcomV2HostPartnersWpcloudBillingInvoicesbyInvoiceIdUsageReport
      summary: GET /wpcom/v2/host-partners/wpcloud/billing/invoices/{invoice_id}/usage-report
      tags:
      - host-partners
      responses:
        '200':
          description: OK
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WPRestError'
        '404':

# --- truncated at 32 KB (44 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/automattic/refs/heads/main/openapi/automattic-host-partners-api-openapi.yml