Automattic Jetpack Partners API

The jetpack-partners API from Automattic — 14 operation(s) for jetpack-partners.

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 26

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/jetpack-partners List Jetpack partner keys · GET /wpcom/v2/jetpack-partners #
Ask an LLM
“Which partner keys are registered with Jetpack?”
“Can I list every Jetpack partner key?”
Tell an agent
List all Jetpack partner keys.
Show Jetpack partner keys with all set to {all}.
POST /wpcom/v2/jetpack-partners Create a Jetpack partner key · POST /wpcom/v2/jetpack-partners #
Ask an LLM
“How do I add a new partner key to Jetpack?”
“Can I register a partner key for a new partner?”
Tell an agent
Create a Jetpack partner key.
Add a new partner key to Jetpack.
PUT /wpcom/v2/jetpack-partners Replace all Jetpack partner keys · PUT /wpcom/v2/jetpack-partners #
Ask an LLM
“How do I overwrite every Jetpack partner key at once?”
“Can I replace the full partner key list?”
Tell an agent
Replace all Jetpack partner keys.
Overwrite the entire Jetpack partner key list.
PATCH /wpcom/v2/jetpack-partners Update Jetpack partner keys · PATCH /wpcom/v2/jetpack-partners #
Ask an LLM
“Can I partially update the Jetpack partner key list?”
“How do I change some partner keys without resending the whole list?”
Tell an agent
Update the Jetpack partner key list.
Patch some partner keys in Jetpack.
GET /wpcom/v2/jetpack-partners/activations List Jetpack partner key activations · GET /wpcom/v2/jetpack-partners/activations #
Ask an LLM
“Which sites have activated a Jetpack partner key?”
“Can I see partner key activations for a given scale?”
Tell an agent
List Jetpack partner key activations.
Show partner key activations for scale {scale}.
GET /wpcom/v2/jetpack-partners/capabilities List Jetpack partner capabilities · GET /wpcom/v2/jetpack-partners/capabilities #
Ask an LLM
“What capabilities do Jetpack partners have?”
“Which partner capabilities are available?”
Tell an agent
List Jetpack partner capabilities.
Show the capabilities of Jetpack partners.
GET /wpcom/v2/jetpack-partners/{partner_id} Get a Jetpack partner · GET /wpcom/v2/jetpack-partners/{partner_id} #
Ask an LLM
“What details are stored for one Jetpack partner?”
“Can I look up a partner by its ID?”
Tell an agent
Get Jetpack partner {partner_id}.
Show the details of partner {partner_id}.
POST /wpcom/v2/jetpack-partners/{partner_id}/key Issue a license key for a partner · POST /wpcom/v2/jetpack-partners/{partner_id}/key #
Ask an LLM
“How does a partner get a license key for their products?”
“Can I issue a new key for a Jetpack partner?”
Tell an agent
Issue a license key for partner {partner_id}.
Create a new product key for partner account {partner_id}.
PUT /wpcom/v2/jetpack-partners/{partner_id}/key Replace a Jetpack partner's key · PUT /wpcom/v2/jetpack-partners/{partner_id}/key #
Ask an LLM
“How do I overwrite a partner's entire key?”
“Can I replace a partner key in full?”
Tell an agent
Replace the key of partner {partner_id}.
Overwrite partner {partner_id}'s key.
PATCH /wpcom/v2/jetpack-partners/{partner_id}/key Update a Jetpack partner key · PATCH /wpcom/v2/jetpack-partners/{partner_id}/key #
Ask an LLM
“Can I partially update a partner's key?”
“How do I change some partner key fields?”
Tell an agent
Update the key of partner {partner_id}.
Patch partner {partner_id}'s key.
GET /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id} Get a partner license key · GET /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id} #
Ask an LLM
“What features does a partner's license key carry?”
“Can I look up one Jetpack partner key by its ID?”
Tell an agent
Show license key {key_id} for partner {partner_id}.
Fetch the details of key {key_id} under partner {partner_id}.
POST /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id} Create a Jetpack partner key activation · POST /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id} #
Ask an LLM
“How do I activate a partner key on a site?”
“Can I create a partner key activation?”
Tell an agent
Create an activation of partner {partner_id}'s key {key_id}.
Activate partner key {key_id} for partner {partner_id}.
PUT /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id} Replace a partner license key · PUT /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id} #
Ask an LLM
“Can I overwrite a partner license key with a new one?”
“What happens when I reset a partner key entirely?”
Tell an agent
Replace license key {key_id} for partner {partner_id} with a new value.
Overwrite the whole key {key_id} under partner {partner_id}.
PATCH /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id} Update a partner license key · PATCH /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id} #
Ask an LLM
“Can I rotate just the expiry or status of a partner license key?”
“Is there a partial update for a partner key?”
Tell an agent
Set the expiry of key {key_id} for partner {partner_id} to next year.
Update status of key {key_id} under partner {partner_id}.
DELETE /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/activation/{activation_id} Deactivate a Jetpack partner key · DELETE /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/activation/{activati… #
Ask an LLM
“How do I deactivate a partner key on a site?”
“Can I remove a partner key activation?”
Tell an agent destructive · confirm first
Deactivate partner {partner_id}'s key {key_id} activation {activation_id}.
Remove partner key {key_id} activation {activation_id} for partner {partner_id}.
GET /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/activations List activations of a partner license key · GET /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/activations #
Ask an LLM
“Where has a partner's license key been activated?”
“Can I see which sites used a partner key, sorted by date?”
Tell an agent
List activations of key {key_id} for partner {partner_id}.
Show partners sites that activated key {key_id} under {partner_id}.
POST /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/disable Deactivate a partner license key · POST /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/disable #
Ask an LLM
“How do I revoke a partner license key?”
“Can I force a partner key to stop working?”
Tell an agent destructive · confirm first
Deactivate license key {key_id} for partner {partner_id}.
Revoke key {key_id} under partner {partner_id} so it stops.
PUT /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/disable Disable a Jetpack partner key · PUT /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/disable #
Ask an LLM
“How do I disable a partner key?”
“Can I turn off a partner key without deleting it?”
Tell an agent destructive · confirm first
Disable partner {partner_id}'s key {key_id}.
Turn off partner key {key_id} for partner {partner_id}.
PATCH /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/disable Toggle activation status of a partner key · PATCH /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/disable #
Ask an LLM
“Can I toggle a partner license key on and off?”
“Is there a state change that pauses a partner key without deleting it?”
Tell an agent
Pause key {key_id} for partner {partner_id}.
Switch activation status of key {key_id} under {partner_id}.
POST /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/enable Enable a partner key · POST /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/enable #
Ask an LLM
“How do I activate a Jetpack partner key?”
“Can I turn on a partner key by its ID?”
Tell an agent
Enable partner key {key_id} for partner {partner_id}.
Activate Jetpack partner key {key_id} under partner {partner_id}.
PUT /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/enable Enable a Jetpack partner key · PUT /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/enable #
Ask an LLM
“How do I reactivate a disabled partner key?”
“Can I turn a partner key back on?”
Tell an agent
Enable partner {partner_id}'s key {key_id}.
Turn partner key {key_id} back on for partner {partner_id}.
PATCH /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/enable Enable a disabled Jetpack partner key · PATCH /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/enable #
Ask an LLM
“Can I re-enable a Jetpack partner key that was switched off?”
“What makes a disabled partner license key valid again?”
Tell an agent
Re-enable disabled key {key_id} belonging to partner {partner_id}.
Restore key {key_id} for partner {partner_id} to working order.
GET /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/stripe/invoices List a partner key's Stripe invoices · GET /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/stripe/invoices #
Ask an LLM
“What Stripe invoices has a partner key generated?”
“Can I see the billing history for a partner key?”
Tell an agent
List Stripe invoices for partner key {key_id} under partner {partner_id}.
Show the billing invoices of key {key_id} for partner {partner_id}.
GET /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/stripe/subscription Get a partner key's Stripe subscription · GET /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/stripe/subscription #
Ask an LLM
“Which Stripe subscription is a partner key on?”
“Can I read the subscription details of a partner key?”
Tell an agent
Get the Stripe subscription for partner key {key_id} under partner {partner_id}.
Show the subscription plan of key {key_id} for partner {partner_id}.
GET /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/stripe/upcoming-invoice Get a partner key's next Stripe invoice · GET /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/stripe/upcoming-invoice #
Ask an LLM
“What is the next invoice Stripe will bill for a partner key?”
“Can I preview the upcoming charge for a partner key?”
Tell an agent
Get the upcoming Stripe invoice for partner key {key_id} under partner {partner_id}.
Show the next charge Stripe will bill for key {key_id} of partner {partner_id}.
GET /wpcom/v2/jetpack-partners/{partner_id}/stripe/customer Get a partner's Stripe customer · GET /wpcom/v2/jetpack-partners/{partner_id}/stripe/customer #
Ask an LLM
“Which Stripe customer record belongs to a partner?”
“Can I look up a partner's Stripe customer ID?”
Tell an agent
Get the Stripe customer for partner {partner_id}.
Show the Stripe customer record of partner {partner_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:automattic-jetpack-partners-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-jetpack-partners-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WordPress.com REST API — wpcom/v2 namespace Jetpack…
  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: jetpack-partners
paths:
  /wpcom/v2/jetpack-partners:
    get:
      operationId: getWpcomV2JetpackPartners
      summary: GET /wpcom/v2/jetpack-partners
      tags:
      - jetpack-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: all
        in: query
        required: false
        schema:
          type: boolean
          default: false
    post:
      operationId: postWpcomV2JetpackPartners
      summary: POST /wpcom/v2/jetpack-partners
      tags:
      - jetpack-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'
    put:
      operationId: putWpcomV2JetpackPartners
      summary: PUT /wpcom/v2/jetpack-partners
      tags:
      - jetpack-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'
    patch:
      operationId: patchWpcomV2JetpackPartners
      summary: PATCH /wpcom/v2/jetpack-partners
      tags:
      - jetpack-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/jetpack-partners/activations:
    get:
      operationId: getWpcomV2JetpackPartnersActivations
      summary: GET /wpcom/v2/jetpack-partners/activations
      tags:
      - jetpack-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: key_id
        in: query
        required: false
        schema:
          type: string
      - name: scale
        in: query
        required: false
        schema:
          type: string
          default: month
  /wpcom/v2/jetpack-partners/capabilities:
    get:
      operationId: getWpcomV2JetpackPartnersCapabilities
      summary: GET /wpcom/v2/jetpack-partners/capabilities
      tags:
      - jetpack-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/jetpack-partners/{partner_id}:
    get:
      operationId: getWpcomV2JetpackPartnersbyPartnerId
      summary: GET /wpcom/v2/jetpack-partners/{partner_id}
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/jetpack-partners/{partner_id}/key:
    post:
      operationId: postWpcomV2JetpackPartnersbyPartnerIdKey
      summary: POST /wpcom/v2/jetpack-partners/{partner_id}/key
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
    put:
      operationId: putWpcomV2JetpackPartnersbyPartnerIdKey
      summary: PUT /wpcom/v2/jetpack-partners/{partner_id}/key
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
    patch:
      operationId: patchWpcomV2JetpackPartnersbyPartnerIdKey
      summary: PATCH /wpcom/v2/jetpack-partners/{partner_id}/key
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}:
    get:
      operationId: getWpcomV2JetpackPartnersbyPartnerIdKeybyKeyId
      summary: GET /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        schema:
          type: string
    post:
      operationId: postWpcomV2JetpackPartnersbyPartnerIdKeybyKeyId
      summary: POST /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        schema:
          type: string
    put:
      operationId: putWpcomV2JetpackPartnersbyPartnerIdKeybyKeyId
      summary: PUT /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        schema:
          type: string
    patch:
      operationId: patchWpcomV2JetpackPartnersbyPartnerIdKeybyKeyId
      summary: PATCH /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/activation/{activation_id}:
    delete:
      operationId: deleteWpcomV2JetpackPartnersbyPartnerIdKeybyKeyIdActivationbyActivationId
      summary: DELETE /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/activation/{activati…
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        schema:
          type: string
      - name: activation_id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/activations:
    get:
      operationId: getWpcomV2JetpackPartnersbyPartnerIdKeybyKeyIdActivations
      summary: GET /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/activations
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
      - name: key_id
        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: 20
      - name: plans
        in: query
        required: false
        schema:
          type: array
          items: {}
      - name: activated_after
        in: query
        required: false
        schema:
          type: string
      - name: activated_before
        in: query
        required: false
        schema:
          type: string
  /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/disable:
    post:
      operationId: postWpcomV2JetpackPartnersbyPartnerIdKeybyKeyIdDisable
      summary: POST /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/disable
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        schema:
          type: string
    put:
      operationId: putWpcomV2JetpackPartnersbyPartnerIdKeybyKeyIdDisable
      summary: PUT /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/disable
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        schema:
          type: string
    patch:
      operationId: patchWpcomV2JetpackPartnersbyPartnerIdKeybyKeyIdDisable
      summary: PATCH /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/disable
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/enable:
    post:
      operationId: postWpcomV2JetpackPartnersbyPartnerIdKeybyKeyIdEnable
      summary: POST /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/enable
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        schema:
          type: string
    put:
      operationId: putWpcomV2JetpackPartnersbyPartnerIdKeybyKeyIdEnable
      summary: PUT /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/enable
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        schema:
          type: string
    patch:
      operationId: patchWpcomV2JetpackPartnersbyPartnerIdKeybyKeyIdEnable
      summary: PATCH /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/enable
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/stripe/invoices:
    get:
      operationId: getWpcomV2JetpackPartnersbyPartnerIdKeybyKeyIdStripeInvoices
      summary: GET /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/stripe/invoices
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/stripe/subscription:
    get:
      operationId: getWpcomV2JetpackPartnersbyPartnerIdKeybyKeyIdStripeSubscription
      summary: GET /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/stripe/subscription
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/stripe/upcoming-invoice:
    get:
      operationId: getWpcomV2JetpackPartnersbyPartnerIdKeybyKeyIdStripeUpcomingInvoice
      summary: GET /wpcom/v2/jetpack-partners/{partner_id}/key/{key_id}/stripe/upcoming-invoice
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
      - name: key_id
        in: path
        required: true
        schema:
          type: string
  /wpcom/v2/jetpack-partners/{partner_id}/stripe/customer:
    get:
      operationId: getWpcomV2JetpackPartnersbyPartnerIdStripeCustomer
      summary: GET /wpcom/v2/jetpack-partners/{partner_id}/stripe/customer
      tags:
      - jetpack-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: partner_id
        in: path
        required: true
        schema:
          type: string
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