Automattic · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for WordPress.com REST API — wpcom/v2 namespace Memberships API

14 actions 14 updates phrasing extends openapi/automattic-memberships-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Automattic's API. It is a proposal applied on top of the contract, not a document Automattic publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 14

$.info
$.paths['/wpcom/v2/sites/{wpcom_site}/memberships/comp/{comp_id}'].get
$.paths['/wpcom/v2/sites/{wpcom_site}/memberships/comp/{comp_id}'].delete
$.paths['/wpcom/v2/sites/{wpcom_site}/memberships/comps'].get
$.paths['/wpcom/v2/sites/{wpcom_site}/memberships/comps/{user_id}/{plan_id}'].post
$.paths['/wpcom/v2/sites/{wpcom_site}/memberships/coupon/{coupon_id}'].put
$.paths['/wpcom/v2/sites/{wpcom_site}/memberships/coupon/{coupon_id}'].delete
$.paths['/wpcom/v2/sites/{wpcom_site}/memberships/coupons'].get
$.paths['/wpcom/v2/sites/{wpcom_site}/memberships/coupons'].post
$.paths['/wpcom/v2/sites/{wpcom_site}/memberships/coupons/apply'].post
$.paths['/wpcom/v2/sites/{wpcom_site}/memberships/earnings'].get
$.paths['/wpcom/v2/sites/{wpcom_site}/memberships/subscriber-importer/get_subscriptions'].get
$.paths['/wpcom/v2/sites/{wpcom_site}/memberships/subscriber-importer/import'].post
$.paths['/wpcom/v2/sites/{wpcom_site}/memberships/subscribers'].get

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for WordPress.com REST API — wpcom/v2 namespace Memberships API
  version: 1.0.0
extends: openapi/automattic-memberships-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-12-02'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 13
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/memberships/comp/{comp_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a membership component
      effect: read
      questions:
      - What does a specific membership component on my site cover?
      - Can I look up one membership component by its id?
      instructions:
      - text: Get membership component {comp_id} on site {wpcom_site}.
        slots:
          comp_id: path.comp_id
          wpcom_site: path.wpcom_site
      - text: Show the details of membership component {comp_id}.
        slots:
          comp_id: path.comp_id
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/memberships/comp/{comp_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a membership component
      effect: destructive
      questions:
      - How do I remove a membership component from my site?
      - Can I delete a membership component by id?
      instructions:
      - text: Delete membership component {comp_id} on site {wpcom_site}.
        slots:
          comp_id: path.comp_id
          wpcom_site: path.wpcom_site
      - text: Remove membership component {comp_id}.
        slots:
          comp_id: path.comp_id
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/memberships/comps'].get
  update:
    x-apievangelist-phrasing:
      intent: List a site's membership components
      effect: read
      questions:
      - Which membership components are set up on my site?
      - Can I see every membership component at once?
      instructions:
      - text: List membership components on site {wpcom_site}.
        slots:
          wpcom_site: path.wpcom_site
      - text: Show all membership components for site {wpcom_site}.
        slots:
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/memberships/comps/{user_id}/{plan_id}'].post
  update:
    x-apievangelist-phrasing:
      intent: Comp a user onto a membership plan
      effect: write
      questions:
      - How do I give a user a free comp on a membership plan?
      - Can a comp end on a set date instead of at the plan's renewal?
      instructions:
      - text: Comp user {user_id} onto plan {plan_id} on site {wpcom_site}.
        slots:
          user_id: path.user_id
          plan_id: path.plan_id
          wpcom_site: path.wpcom_site
      - text: Give user {user_id} a {duration} comp on plan {plan_id} for site {wpcom_site}.
        slots:
          user_id: path.user_id
          duration: requestBody.no_expiration
          plan_id: path.plan_id
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/memberships/coupon/{coupon_id}'].put
  update:
    x-apievangelist-phrasing:
      intent: Update a membership coupon
      effect: write
      questions:
      - How do I change an existing membership coupon?
      - Can I make a coupon apply only to certain plans?
      instructions:
      - text: Update coupon {coupon_id} on site {wpcom_site}.
        slots:
          coupon_id: path.coupon_id
          wpcom_site: path.wpcom_site
      - text: Set coupon {coupon_id} on site {wpcom_site} to expire {end_date}.
        slots:
          coupon_id: path.coupon_id
          end_date: requestBody.end_date
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/memberships/coupon/{coupon_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a membership coupon
      effect: destructive
      questions:
      - How do I delete a membership coupon?
      - Can I remove a coupon from a single currency?
      instructions:
      - text: Delete coupon {coupon_id} on site {wpcom_site}.
        slots:
          coupon_id: path.coupon_id
          wpcom_site: path.wpcom_site
      - text: Remove coupon {coupon_id} from site {wpcom_site} in {currency}.
        slots:
          coupon_id: path.coupon_id
          wpcom_site: path.wpcom_site
          currency: query.currency
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/memberships/coupons'].get
  update:
    x-apievangelist-phrasing:
      intent: List a site's membership coupons
      effect: read
      questions:
      - What membership coupons are set up on my site?
      - Can I see all the discount coupons for members?
      instructions:
      - text: List membership coupons on site {wpcom_site}.
        slots:
          wpcom_site: path.wpcom_site
      - text: Show every coupon for site {wpcom_site}.
        slots:
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/memberships/coupons'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a membership coupon
      effect: write
      questions:
      - How do I create a discount coupon for my members?
      - Can I limit a coupon to certain plans and emails?
      instructions:
      - text: Create coupon {coupon_code} on site {wpcom_site} for plans {plan_ids_allow_list}.
        slots:
          coupon_code: requestBody.coupon_code
          wpcom_site: path.wpcom_site
          plan_ids_allow_list: requestBody.plan_ids_allow_list
      - text: Create a {discount_type} coupon {coupon_code} on site {wpcom_site} for {email_allow_list}.
        slots:
          discount_type: requestBody.discount_type
          coupon_code: requestBody.coupon_code
          wpcom_site: path.wpcom_site
          email_allow_list: requestBody.email_allow_list
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/memberships/coupons/apply'].post
  update:
    x-apievangelist-phrasing:
      intent: Apply membership coupons to a user
      effect: write
      questions:
      - How do I apply several coupons to a user's subscription?
      - Can I test coupons against a specific plan and email?
      instructions:
      - text: Apply coupons {coupon_codes} to {user_email} on plan {plan_id} for site {wpcom_site}.
        slots:
          coupon_codes: requestBody.coupon_codes
          user_email: requestBody.user_email
          plan_id: requestBody.plan_id
          wpcom_site: path.wpcom_site
      - text: Test {coupon_codes} against plan {plan_id} for {user_email} on site {wpcom_site}.
        slots:
          coupon_codes: requestBody.coupon_codes
          plan_id: requestBody.plan_id
          user_email: requestBody.user_email
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/memberships/earnings'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a site's membership earnings
      effect: read
      questions:
      - How much have my members paid in total?
      - Can I see membership earnings in a specific currency?
      instructions:
      - text: Get membership earnings for site {wpcom_site}.
        slots:
          wpcom_site: path.wpcom_site
      - text: Show membership earnings for site {wpcom_site} in {currency}.
        slots:
          wpcom_site: path.wpcom_site
          currency: query.currency
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/memberships/subscriber-importer/get_subscriptions'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a member's subscriptions by import
      effect: read
      questions:
      - How do I import a member's subscriptions into a site?
      - Can I transfer a member's existing subscriptions into new dashboard access?
      instructions:
      - text: Import the member's subscriptions into site {site}.
        slots:
          site: path.wpcom_site
      - text: Set up a site-wide subscription transfer for a member.
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/memberships/subscriber-importer/import'].post
  update:
    x-apievangelist-phrasing:
      intent: Import a Stripe subscription as a member
      effect: write
      questions:
      - How do I add a Stripe subscription as a member?
      - Can I import a single subscription with its customer email?
      instructions:
      - text: Import Stripe subscription {subscription_id} for {customer_email} on plan {product_id} for site {wpcom_site}.
        slots:
          subscription_id: requestBody.subscription_id
          customer_email: requestBody.customer_email
          product_id: requestBody.product_id
          wpcom_site: path.wpcom_site
      - text: Add subscription {subscription_id} as a member of site {wpcom_site}.
        slots:
          subscription_id: requestBody.subscription_id
          wpcom_site: path.wpcom_site
      method: generated
      generated: '2026-12-02'
- target: $.paths['/wpcom/v2/sites/{wpcom_site}/memberships/subscribers'].get
  update:
    x-apievangelist-phrasing:
      intent: List a site's members
      effect: read
      questions:
      - Who are the members of my site?
      - Can I search members by email or name?
      instructions:
      - text: List members of site {wpcom_site}.
        slots:
          wpcom_site: path.wpcom_site
      - text: Find members on site {wpcom_site} matching {search}.
        slots:
          wpcom_site: path.wpcom_site
          search: query.search
      method: generated
      generated: '2026-12-02'

Work with this as data

Every overlay 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 openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • 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 overlay
curl "https://apis.io/api/v1/overlays/automattic-memberships-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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.